T O P I C R E V I E W |
haraldh |
Posted - Feb 08 2012 : 8:15:59 PM i transferred my snippets from a project where the ide (vs2010) was set to tabs to one where the rule requires spaces instead.
whenever i use any of my snippets it inserts tabs instead of spaces.
VA should keep the spacing in the snippet but use spaces or tabs depending on the current settings.
this would make life MUCH easier. especially when using style-cop. |
5 L A T E S T R E P L I E S (Newest First) |
feline |
Posted - Jan 21 2013 : 12:09:04 PM Unfortunately this has not yet been done. This is still in our list of things to do, it has not been forgotten, which is something. |
mertkew |
Posted - Jan 21 2013 : 07:30:49 AM What is the status of that case=6712 ? I'm working with spaces in my projects, but the VA snippets have taps by default. |
feline |
Posted - Feb 09 2012 : 11:25:37 AM We are considering having VA Snippets respect the IDE tabs / spaces setting, and convert tabs to spaces when inserting snippets:
case=6712
According to the notes on this, some problem edge cases exist, so this is not quite as easy as it sounds. On paper it does sound simple, but working around all the different versions of the IDE does tend to complicate things. |
haraldh |
Posted - Feb 08 2012 : 10:34:48 PM yes, thanks, that helps somewhat. i can write a little routine that replaces tabs with spaces.
but in the long run this becomes tedious as i need to maintain 2 versions of my snippets, especially when adding some, which i do all the time.
i can't fully assess how easy it would be to add this feature but compared to some of VA's other features this should be a walk in the park...
|
accord |
Posted - Feb 08 2012 : 9:33:36 PM If you work with more than one project styles, one solution can be to "hot swap" snippets with the appropriate ones, as described after the jump:
http://forum.wholetomato.com/forum/topic.asp?TOPIC_ID=7024
Hope this helps a little bit. |