Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Allow suggestions for named VA-Snippets in comment

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
xMRi Posted - Sep 17 2008 : 2:53:23 PM
When I write longer comments it would be useful to have suggestions for named VA-Snippets and variables or classnames.
Maybe this feature should be enabled by a special option in the settings.
10   L A T E S T    R E P L I E S    (Newest First)
xMRi Posted - Sep 24 2008 : 09:06:03 AM
That is a solution!

THX feline!

feline Posted - Sep 24 2008 : 07:23:01 AM
You can bind a keyboard shortcut to the command VAssistX.VaSnippetInsert which will list all VA Snippets for the current language.

If you use drag and drop to place the comment snippets at the top of the tree in the VA Snippet editor then they will be at the top of the menu when it appears.
xMRi Posted - Sep 24 2008 : 02:05:24 AM
Only way I could imagine, is a spereate short cut, that just opens the VA-snippet selector...
feline Posted - Sep 23 2008 : 3:41:41 PM
You could use IDE macro's, one per comment block. If there is only a small number of comment blocks and they do not change to often then this is a reasonable option. You can then use the IDE options dialog to bind a separate keyboard shortcut to each of these comment macro's.

I used Snippets when I had the same problem, but since I was using // comments I could simply start a new line and the snippets would be suggested, which is clearly not working here.
xMRi Posted - Sep 23 2008 : 02:29:21 AM
Hmmm. It is just a small number of comment snippets.

I just have for the documentation standard blocks (snippets). I just want to use them inside my documentation. Its just like a function description block. But I like to use the different parts that I have on demand.

But there is no way to do this why typing my comments.
feline Posted - Sep 22 2008 : 10:58:12 AM
Apologies, my fault, I am not making myself clear. CTRL-SPACE is never going to give you a list of snippets, it does not work like that in C++

If snippets were made active in comments then you would see a snippet listbox every time you typed a word starting with "t" or "f", for the "true" and "false" snippets, assuming you have them.

My concern is that most snippets are just going to get in the way while typing comments.

How many snippets do you want active in comments? Are there a lot, or is it only a small number? I am wondering if snippets are the best solution, or if there is a better approach.
xMRi Posted - Sep 19 2008 : 02:15:39 AM
I am using C style comments /* */ in ths case.

Again: Ctrl+Space shows me a list of smybols but no snippets!
feline Posted - Sep 18 2008 : 11:01:37 AM
This is the right forum No suggestions in comments is a feature / design decision in VA.

Are you using C style /* */ comments or C++ // style comments?

I have the same situation, sometimes I want to use VA snippets to help me write comments. I use // style comments in my code, so my VA snippets insert an entire line, or several lines. So I just start a new blank line and type the snippet shortcut and accept the listbox.

Normally if listboxes of any type start appearing when people type in comments then we get lots of bug reports about this, since they get in the way.
xMRi Posted - Sep 18 2008 : 02:21:11 AM
Sorry! This works for symbols. But I can not get my VA-Snippets in the comments.
I have a named snippet called "filec" (file comment). If I type filec in a comment region I don't get the corresponding suggestion even if I press Ctr+Space.

OK! May be now it is the wrong forum and we should move into the bugs section ;)
feline Posted - Sep 17 2008 : 6:58:31 PM
If you press CTRL-SPACE you should get a listbox, even in a comment, which is ideal for typing class and function names.

More general suggestions / snippets are likely to get in the way in comments. "for" is a good example, it is a common word in English comments, but it is also something I have several VA snippets for

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