Bug 582028 - The ctrl-C comment feature should place the // directly in front of the first character, not line start
Summary: The ctrl-C comment feature should place the // directly in front of the first...
Status: NEW
Alias: None
Product: Incubator
Classification: Eclipse Project
Component: e4 (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows 10
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: E4 Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-02 20:00 EDT by David Epperly CLA
Modified: 2023-06-02 20:00 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Epperly CLA 2023-06-02 20:00:50 EDT
The ctrl-C comment feature should place the // directly in front of the first character, not line start

For example, ctrl-C to toggle ON comment should do
      //int myVar = 1;
not
//      int myVar = 1;

By doing this, when ctrl-C undoes the comment, the code is back where it was
And it survives properly when doing Source>CorrectIndentation

It's a very simple fix. Just find the first non-whitespace character and insert the // at that location.

It will save all of us doing Java, C++, and other languages many headaches.
Please, be my aspirin. Help our millions of headaches.
Deep Appreciation,
Depub2