Ctrl + / to comment-uncomment line Follow
When I press Ctrl + / to comment-uncomment current line of code a caret moves to the next line of code.
Can I disable this behaviour so that the caret position remains in place?
Failed to find this in settings.
Please sign in to leave a comment.
Unfortunately, there's no option to change that, but I found several discussions where users suggest creating a macro as a workaround:
https://intellij-support.jetbrains.com/hc/en-us/community/posts/205819109-Disable-caret-moving-at-comment-hotkey
https://youtrack.jetbrains.com/issue/IDEA-119435/Keep-caret-position-when-commenting-code
https://stackoverflow.com/questions/27532129/intellij-disable-cursor-moving-after-commenting-a-line-with-a-shortcut/27545802#27545802