Skip to the main content

Android Studio

Comment lines with line comments

Cmd/

Mac Desktop app Android Studio default keymap

Practice this

To comment lines with line comments in Android Studio, press Ctrl + Slash. On a Mac, press Cmd + Slash instead.

Where it works: Editor

Every documented variant

Variants of this shortcut
System Environment Keys
Mac Desktop app Cmd/
Windows Desktop app Ctrl/

Where this comes from

Keyboard shortcuts - Android Studio - Android Developers

Documentation checked on 2026-09-14. That is a documentation review, not a test run inside the application.

Report a correction