– Ctrl + Alt + Shift + C — comment selection.
– Ctrl + Alt + Shift + R — uncomment selection
Syntax. A comment starts with . You can add textual notes as comments between the characters
5 Answers. I use Shift + Ctrl + / to Add Block Comment in both XML and JSP files (works at the line level or for a selected block). Just in case, if you are looking for a particular shortcut, you can use Shift + Ctrl + L to Show Key Assist (i.e. the Commands and their Bindings)
- Ctrl + Alt + Shift + C — comment selection. - Ctrl + Alt + Shift + R — uncomment selection
In the Android Studio, select the block, then Ctrl + Slash to comment it (or Ctrl + Shift + Slash). One can run into problems using -- within this type of comment. Better to use - -> if you need to temporarily nest a comment. In HTML anyway (a subset of xml), including -- inside a comment is not valid