Skip to the main content

Android Studio

Generate code such as getters or constructors

AltInsert

Windows Desktop app Android Studio default keymap

Practice this

For generate code such as getters or constructors in Android Studio, press Alt + Insert. On a Mac, press Cmd + N instead.

Where it works: Editor

Every documented variant

Variants of this shortcut
System Environment Keys
Mac Desktop app CmdN
Windows Desktop app AltInsert

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