Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Whitespace Removal Problem

You must be registered to post a reply.
Click here to register.

Screensize:
UserName:
Password:
Format: BoldItalicizeUnderlineStrikethrough Align leftCenterAlign right Insert horizontal ruleUpload and insert imageInsert hyperlinkInsert email addressInsert codeInsert quoted textInsert listInsert Emoji
   
Message:

Forum code is on.
Html is off.

 
Check to subscribe to this topic.
   

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.

© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000