Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 VA Snippets: //? shortcut only works for some ?

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
davidbak Posted - Apr 30 2008 : 5:57:19 PM
It is carefully documented that for VA Snippets, if your shortcut starts with // then it can only be one of //+, //-, and //*.

Why the limitation on the character following the //? I'd like to use //b for /// \\brief, //f for /// \\file, etc. etc.

-- David
3   L A T E S T    R E P L I E S    (Newest First)
feline Posted - May 02 2008 : 12:27:45 PM
This is a reasonable argument. However in my experience problems start when you work in a team. Programmers never seem to agree on code formatting styles, so you may find yourself moving between files with "//hello", "// hello" and "/* hello */" format comments at "random".

The second point here is that experience indicates most of our users never edit Snippets, so an approach that asks them to edit Snippets is not ideal.

Like any compromise it has its good points and its bad points.
davidbak Posted - May 02 2008 : 11:49:23 AM
I can see that reasoning - but then again, maybe not. Presumably the person who added the shortcut //b did so deliberately and can see the results ... and remove the shortcut if it gets in the way.

For example, I routinely type a blank after // and then the text of the comment, that is, always "// text goes here" and never "//text goes here". So using shortcuts //b, //f, etc would never get in my way when writing comments.

If a person didn't have that habit (space after //) the shortcuts would get in his way, and then he would delete the shortcuts and be happy again. As long as there were no "//x" style shortcuts installed with the product it would be ok.

-- David
feline Posted - May 02 2008 : 11:34:36 AM
It is a compromise, between having snippets help you when triggering comments, but avoiding snippets being active, and getting in the way, while writing comments.

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