Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
User name:
Password:
Save Password
Forgot your password?

 All Forums
 Visual Assist
 Feature Requests
 Whitespace Removal Problem
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

scoker
New Member

2 Posts

Posted - Jun 20 2008 :  8:50:34 PM  Show Profile  Reply with Quote
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.

scoker
New Member

2 Posts

Posted - Jun 20 2008 :  8:55:19 PM  Show Profile  Reply with Quote
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.
Go to Top of Page

accord
Whole Tomato Software

United Kingdom
3287 Posts

Posted - Jun 21 2008 :  09:43:33 AM  Show Profile  Reply with Quote
I am seeing the same effect here. Thank you for the clear description.

case=17767

I think whitespaces should not be removed.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
© 2023 Whole Tomato Software, LLC Go To Top Of Page
Snitz Forums 2000