Whole Tomato Software Forums
Whole Tomato Software Forums
Main Site | Profile | Register | Active Topics | Members | Search | FAQ
 All Forums
 Visual Assist
 Feature Requests
 Suggestion to improve line comment toggling

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
ahkow Posted - May 17 2014 : 08:49:06 AM
VAssistX.SelectionToggleLineComment has two problems.

1) It only recognizes // at start of line. If there is already an indented // in a line, it will not uncomment the line, but will instead add an extra // at front of line, resulting in something like this:

//   //puppy.jump();

Same thing happens when pressing the / key, which is enabled by checking "Surround selection on / * ( { and #".
Both Visual Studio and ReSharper will uncomment lines even if // is indented.


2) It doesn't comment the current line if nothing is selected.
Both Visual Studio and ReSharper comment current line if nothing is selected.


I would like to avoid using Visual Studio's line comment because it doesn't support toggling with the same shortcut key.
2   L A T E S T    R E P L I E S    (Newest First)
sean Posted - Sep 19 2014 : 12:36:38 AM
case=82361 is implemented in build 2047
feline Posted - May 19 2014 : 11:24:17 AM
These are both very good points. We are aware of point 1, and it is on our list of things to fix:

case=387

Commenting and uncommenting without a selection, that is obvious now you suggest it, and I have put in a feature request for this:

case=82361

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