Frequently Used Shortcuts in Android Studio and VSCode

Introduction

Recently, I’ve been working with Rails, Go, and Flutter.

I use Android Studio for Flutter development and VSCode for everything else.

Sometimes, I forget how to use a shortcut in one IDE that I frequently use in the other, so I wanted to compile a list for myself (I like Android Studio, so switching to VSCode completely is not an option).

Frequently Used Shortcuts

Assuming the OS is Mac.

Android StudioVSCode
Focus on the explorer (tool window)Command + 1Command + 0
Open the file focused on in the explorer (tool window)EnterSpace
Focus on the editorEscCommand + 1
Jump to definitionCommand + BF12 (I have set it to Command + D)
Global searchCommand + Shift + FCommand + Shift + F
File searchCommand + PCommand + Shift + O
Navigate editor tabsCommand + Shift + [, Command + Shift + ]Command + Option + ←, Command + Option + →
Quick fixOption + EnterCommand + .
Duplicate current line or selectionCommand + DShift + Option + ↓, Shift + Option + ↑
Move current line or selectionCommand + Shift + ↑, Command + Shift + ↓Option + ↑, Option + ↓

I use Vim plugins in both IDEs for navigation, text manipulation, and screen splitting, so there might be fewer IDE-specific shortcuts here.

I also use iTerm2 for terminal input. It’s convenient to quickly focus and input using Hotkey. I’ve written about iTerm2 Hotkey in this article:

Conclusion

If you’re not using shortcuts, I highly recommend starting. I was initially resistant to learning shortcuts, but now I can’t do without them.

Not only will it improve your development efficiency, but it will also make coding more enjoyable. Give it a try!

Related Posts