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
 Suggestion to improve line comment toggling
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

ahkow
Senior Member

33 Posts

Posted - May 17 2014 :  08:49:06 AM  Show Profile  Reply with Quote
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.

Edited by - ahkow on May 17 2014 08:58:38 AM

feline
Whole Tomato Software

United Kingdom
19025 Posts

Posted - May 19 2014 :  11:24:17 AM  Show Profile  Reply with Quote
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

zen is the art of being at one with the two'ness
Go to Top of Page

sean
Whole Tomato Software

USA
2817 Posts

Posted - Sep 19 2014 :  12:36:38 AM  Show Profile  Reply with Quote
case=82361 is implemented in build 2047
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