scoker
New Member

2 Posts |
Posted - Jun 20 2008 : 8:50:34 PM
|
I've been messing with VA Snippets only for a couple hours now, so I hope not to embarrass myself. It's absolutely perfect with one tiny little exception. There are times that I don't want whitespace to be ignored. For example I have for my Refactor Create Implementation: " //----------------------------------------------------------------------------- /*! $SymbolContext$ $SymbolName$
\\brief */ //----------------------------------------------------------------------------- $SymbolStatic$$SymbolVirtual$ $SymbolType$ $SymbolContext$( $ParameterList$ ) $MethodQualifier$ { $end$ }
"
It just sets up a very basic and (I think) pretty doxygen comment before the method implementation. My problem is two fold: one, while in my snippet code there are several tabs before the Symbol Name in the comment, they don't show up when I refactor-create an implementation. Two, and this may be some sort of bug, but although I have a tab before the $end$, refactor-create implementation leaves the cursor without any whitespace before it. Why is this tab removed when the open brace shortcut works like a charm? It's the same Snippet Code. It doesn't make sense. Anyway, my suggestion was this: perhaps there could be a checkbox in the VA Snippet Code Editor to specify whether whitespace should be ignored or included. |
|