This will open a new Keyboard Shortcuts tab which lists all available commands along with their assigned hotkey so you can easily change them.įor our purpose, scroll until you see Toggle Block Comment.
( Code > Preferences > Keyboard Shortcuts on macOS builds). Open Visual Studio Code and go to File > Preferences > Keyboard Shortcuts. If the default keyboard shortcut to convert lines into comment block doesn't fit your workflow, you can always change it. Change Block Comment keyboard shortcut in VSCode
The Android Studio keymap settings window.
Studio > Preferences) and navigate to the Keymap pane.įigure 1. To open the keymap settings, choose File > Settings (on Mac, Android
You can choose from a number of preset keymaps or modify a preset keymap toĬreate a new custom keymap in the keymap settings for Android Studio. Project quick fix (show intention actions and quick fixes) Select successively increasing code blocksĭecrease current selection to previous state Smart code completion (filters the list of methods and variables by expected type) Surround with (if.else / try.catch / etc.)Ĭontrol+Shift+minus or Control+Shift+plusĬommand+Shift+minus or Command+Shift+plus Generate code (getters, setters, constructors, hashCode/equals, toString, new file, new class) Toggle between Portrait and Landscape modes Toggle between Design and Blueprint modes Return to editor window from a tool window Search everything (including code and menus)Ĭontrol+Right Arrow or Control+Left Arrow Inspect current file with current profile Default keyboard shortcuts for Windows/Linux and For more about customizing your keyboard shortcuts, see Table 1 below, you can select from a number of preset keymaps or create a custom
Note: In addition to the default keymaps in The IntelliJ IDEA keymap reference documentation. Keep in mind, becauseĪndroid Studio is based on IntelliJ IDEA, you can find additional shortcuts in Shows the default keyboard shortcuts by operating system. Android Studio includes keyboard shortcuts for many common actions.