Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 VA Outline and Surround With

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
jleitert Posted - Apr 13 2014 : 02:38:36 AM
Hi, it would be nice to have the same Surround With menue items in VA Outline as in the editor window. Currently you have only Comment, #pragma and #if in there.

Thanks
5   L A T E S T    R E P L I E S    (Newest First)
jleitert Posted - May 24 2014 : 03:58:08 AM
Thank you very much!
sean Posted - May 23 2014 : 2:57:45 PM
In build 2036, we have added a Surround With Namespace command to the VA Outline context menu (case=81739).
feline Posted - Apr 15 2014 : 9:17:23 PM
The more I think about this, the more it makes sense, so I have put in a feature request to see what our developers make of it:

case=81736

Adding a flag on Snippets might happen later, but I am not sure its worth the effort at this stage.
jleitert Posted - Apr 14 2014 : 2:46:44 PM
Yes I meant "Surround With (VA)" in the editor window. And yes I understand your point about file level snippets. But I have created a VA Snippet to surround class declarations with namespaces. (e.g. namespace $end$ { $selected$ } )
Normally I use VA Outline to get an overview of files. And when I find a class that should be in a namespace, I must select the class item, choose "Select in Editor", switch to the editor, go to the "Surround With (VA)" context menu and choose my namespace snippet. It would be much easier, to have it in the VA Outline Surround With menu.

Btw. the predefined snippets in "Surround With (VA)" like: #if 0...#endif, #ifndef...#endif, #include guard in a header and {...} can be useful on file level too.

So why not having a checkbox in the snippet editor, to make snippets available in VA Outline "Surround With"?


Thanks
feline Posted - Apr 14 2014 : 1:21:16 PM
Do you mean the "Surround With (VA)" menu item that comes up when you do a normal right click in the editor window? This is showing you all of your VA Snippets that use $selected$

Normally most of these snippets are designed to work at a smaller scope than VA Outline, for example inserting an if or while block. For VA Outline you are often operating on one or more functions.

What sort of things are you trying do do here? We don't have the concept of "file level" snippets, so there is no way to filter out just the snippets that it makes sense to trigger from VA Outline.

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