How to comment in xml – Android Studio

If you want to comment in xml you can:

  1. Select the part of content you want to comment and press CTRL + SHIFT + /

2. Or you can put this sign: <!– at the beginning and: –> at the end of the content you want to comment like this: