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
 Better handling of multiline comment feature
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xMRi
Tomato Guru

Germany
315 Posts

Posted - May 07 2015 :  03:16:26 AM  Show Profile  Reply with Quote
I like the multiline comment feature.

But stopping it leaves the caret at a wrong indent.

1. Stopping a multiline comment with just pressing Enter is OK, but leaves an empty comment block. I don't like this

   // Line1
   // Line2
   // 
   Code();


2. Pressing Ctrl+Shift+L. Removes the comment but sets the carte just to the start of the line. The indent is lost.

   // Line1
   // Line2
   // 
<- Caret is here


3. I prefer the Undo function. As in Word, when I don't want the any auto formatting. But again like in 2. the caret moves to the far left column.

4. Backspace isn't a solution. I need 3 keystrokes to undo the comment chars.

Solution would be, that Ctrl+Shift+L moves the caret to the correct indent or that undo also moves the caret to the correct indent. Or even a single backspace just deletes the whole inserted comment.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming

feline
Whole Tomato Software

United Kingdom
18938 Posts

Posted - May 08 2015 :  12:20:03 AM  Show Profile  Reply with Quote
This makes a great deal of sense, I have put in a feature request for this:

case=89606

it's one of those ideas that seems obvious now someone has pointed it out

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 - May 08 2015 :  12:36:20 AM  Show Profile  Reply with Quote
Does Ctrl+Backspace do what you want in that situation?
Go to Top of Page

xMRi
Tomato Guru

Germany
315 Posts

Posted - May 08 2015 :  01:14:58 AM  Show Profile  Reply with Quote
Thx Sean. This works!

In Detail:
The command Edit.WordDeleteToStart (in most cases Ctrl+Backspcae) does the Job and deletes the comment and moves the caret to the correct indent.

Martin Richter [rMVP] WWJD http://blog.m-ri.de
"A well-written program is its own heaven; a poorly written
program is its own hell!" The Tao of Programming
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