badjr
badjr

Reputation: 2276

How to configure IntelliJ IDEA comment shortcut to not go to next line?

IntelliJ IDEA's keyboard shortcut for commenting, Ctrl+/, moves the cursor to the next line after it comments out the line. Is it possible to configure it so that it stays on the same line?

Upvotes: 13

Views: 1239

Answers (1)

szmozes
szmozes

Reputation: 163

Go to File -> Settings -> Advanced Settings, and toggle Move caret down after Comment with Line Comment action in the Editor section

Source: https://youtrack.jetbrains.com/issue/IJPL-52525/Line-comment-shortcut-without-jumping-to-new-line#focus=Comments-27-5579465.0-0

Upvotes: 9

Related Questions