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


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 correct sequence, but that's not working.


Answers:


To comment/uncomment one line, use: Ctrl + /.

To comment/uncomment a block, use: Ctrl + Shift + /.