Android Studio, you can comment or uncomment the selected lines or the current line using the following keyboard shortcuts:
- Windows/Linux:
Ctrl + /
- Mac:
Command + /
This shortcut toggles the comment status of the selected lines or the line where the cursor is currently positioned.
Android Studio, you can open an adb
(Android Debug Bridge) shell directly using the following shortcut:
- MacOS/Linux:
Command + Shift + A
- Windows:
Ctrl + Shift + A
This will open the "Search Everywhere" dialog. Then, type adb shell
and select it from the options.
Alternatively, you can use the Terminal within Android Studio:
- Open the Terminal:
- MacOS/Linux:
Option + F12
- Windows:
Alt + F12
- MacOS/Linux:
Once the Terminal is open, you can type adb shell
and press Enter to open the adb
shell.
This method is handy for quickly accessing the adb
shell directly within Android Studio without needing to leave the IDE.