How to disable IDEA automatically adding comment to newline when pressed Enter after writing a comment?
Answered
I'm not sure when exactly this change happened, but now when I program (Ruby), when I write a comment and hit Enter, IDEA thinks I want to continue commenting and adds a # to the newline.
IDEA is wrong about my intentions 99% of the time and this is very annoying.
I cannot find the option in settings to change this behavior.
Thanks.
Please sign in to leave a comment.
Check the following requests:
https://youtrack.jetbrains.com/v2/issue/RUBY-19414
https://youtrack.jetbrains.com/v2/issue/RUBY-20704
This behavior can be disabled by adding -Druby.auto.prolong.comment=false in Help | Edit Custom VM Options.
Thank you very much!
I did exactly as stated: added the line to the Edit Custom VM Options. Which refers to the rubymine.vmoptions file.
Sad to see that adding the line did nothing for me. Is there still no option to turn off or disable the bug of adding another comment line after using enter on current comment line? The issue has been discussed 4 years ago now, so expecting at least some solution.
To switch continuous comments on/off, go to
Preferences/Settings | Editor | General | Smart Keysand (un)checkContinue comments on Enter.Hi Serge,
Thank you for that, I've found it. But needed to select the programming language I use under Smart Keys.
So it will look like this: Preferences/Settings | Editor | General | Smart Keys | Ruby | Continue comments on Enter
Thanks again!