CLion block comment behaviour

已回答

In IntelliJ IDEA Ultimate, I am used to having block comment (ctrl+shift+/) act like this:

/*
val code = "to be commented"
*/

But when I try to use the block comment on CLion, this will be the resulting block comment:

/* val code = "to be commented"
*/

So in essence the first comment marker does not jump above the line that needs to be commented. Is there a way to make CLion's block comment act the same way as in IntelliJ IDEA Ultimate? 

0

Hello!

How do you select the code? What shortcut do you use to comment the selected code? Please provide screenshots or a screencast.

0

Hey,

I use vim plugin's shift + v to select the lines, then apply the comments through "Comment with Block Comment" IDE keybinding.

 

0

Sorry for the delay in response.

The Rust team created a related issue in their tracker - https://github.com/intellij-rust/intellij-rust/issues/7838, please follow it.

0

请先登录再写评论。