A keyboard shortcut to comment/uncomment the select text in Android Studio

后端 未结 9 1534
鱼传尺愫
鱼传尺愫 2021-01-31 13:48

How do I comment out several lines of text selected in the IDE with a control key combination?

I thought that Ctrl + Alt + C was the cor

9条回答
  •  渐次进展
    2021-01-31 14:11

    You can also use regions. See https://www.myandroidsolutions.com/2014/06/21/android-studio-intellij-idea-code-regions/

    Select a block of code, then press Code > Surround With... (Ctrl + Alt + T) and select "region...endregion Comments" (2).

提交回复
热议问题