T O P I C R E V I E W |
scoker |
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. |
2 L A T E S T R E P L I E S (Newest First) |
accord |
Posted - Jun 21 2008 : 09:43:33 AM I am seeing the same effect here. Thank you for the clear description.
case=17767
I think whitespaces should not be removed. |
scoker |
Posted - Jun 20 2008 : 8:55:19 PM haha, strangely enough the forum post window also removed whitespace for me. :) My snippet code was supposed to look like: " //----------------------------------------------------------------------------- /*! $SymbolContext$ ........$SymbolName$
\\brief */ //----------------------------------------------------------------------------- $SymbolStatic$$SymbolVirtual$ $SymbolType$ $SymbolContext$( $ParameterList$ ) $MethodQualifier$ { ........$end$ }
"
with the periods representing whitespace. |
|
|