-
-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Commenting to move to next line as in Idea #233
Comments
uff, VS Code is so stupid :( |
I was a very happy when I found the IntelliJ IDEA Keybindings (as a former IDEA user) The only thing anoing was the commmentLine didn't move cursor down!
|
Thanks @stenaksel. This was driving me crazy.
|
Fixed #233 that Commenting to move to next line as in Idea
@wibotwi @stenaksel @close2 I add "cursorDown" for this. Please check v1.5.11 |
@kasecato is there any way to disable that feature after updating to v1.5.11? I want to keep the cursor on the same line after applying a one-line-comment |
I also would like to disable this feature. While I can see it might be useful when commenting out a line of code, it's pretty annoying when adding a new comment via |
just checked IDEA, it actually doesn't move to new line if you hit Cmd+/ on empty line |
@dspigarelli I found a workaround, just in case anybody else is interested. Add this entry to your {
"key": "ctrl+/",
"command": "editor.action.commentLine",
"when": "editorTextFocus && !editorReadonly"
} |
Thanks for the suggestion, @ivan-nosar. However, it didn't seem to work for me when I added it to |
Reverted on v1.5.12. |
@kasecato I don't really understand why you reverted this commit. The correct behavior is to move to the next line. If some users don't like intellij keybindings, they should either not use intellij keybindings or customize their bindings (as they would need to do in intellij as well). I would imagine that commenting an empty line happens far less often than commenting a line of code. |
@close2 It seems like the functionality as implemented in this PR doesn't behave exactly like intellij. If this change behaved like intellij for commenting both an empty line (i.e. stay on line) and an existing line of code (i.e. skip down a line), I don't think there would be any issue with it. |
To fully support this feature, we need to have LSPs support per-language Statements |
Found this thread: https://www.reddit.com/r/vscode/comments/7nlp9k/when_commenting_a_line_move_the_cursor_to_the/
They suggested:
Can we add this to vscode-intellij-idea-keybindings ?
The text was updated successfully, but these errors were encountered: