When hitting enter on a line containing nothing but a comment, make the next line have a comment #11129
Replies: 3 comments 4 replies
-
I think we should expect the same behavior that is common in other programs like VS Code or Android Studio. From my experience, I haven't use any IDE or code editor with a feature like this, but I can think in some situations where this could be problematic. For example, if someone wanted to add new lines between functions and comments, trying to add more space to improve redability or organization (which I think is a common task) or any other reason, this feature would inadvertently create extra comment lines. This forces the user to move the caret to the start of the next line manually to insert a new line as intended, which can be quite annoying. |
Beta Was this translation helpful? Give feedback.
-
I don't agree with this for single line comments, but it's pretty normal ide behavior for documentation comments (those that start with |
Beta Was this translation helpful? Give feedback.
-
See also: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently, when creating comments in scripts, to create a block of single-line comments, the user needs to manually hit the '#' key every time they go to a new line. The following is a visual example of my proposed enhancement.
We start with a standard "comments before the function" scenario.

Hitting enter on line 9 causes this to happen:

I'd like this to happen instead:

Specifically, when hitting enter in the script editor when the cursor is on a line containing nothing but a comment, I'd like the new line to start out being a comment automatically.
Beta Was this translation helpful? Give feedback.
All reactions