General

Save all

  • Ctrl
  • S

Synchronize

  • Ctrl
  • Alt
  • Y

Minimize or maximize the editor

  • Ctrl
  • Shift
  • F12

Add to favorites

  • Alt
  • Shift
  • F

Inspect the current file with the current profile

  • Alt
  • Shift
  • I

Quick switch the scheme

  • Ctrl
  • `

Open the settings dialogue

  • Ctrl
  • Alt
  • S

Open the project structure dialogue

  • Ctrl
  • Alt
  • Shift
  • S

Switch between the tabs and tool window

  • Ctrl
  • Tab

Viewing Layouts

Zoom in

  • Ctrl
  • +

Zoom out

  • Ctrl
  • -

Fit to screen

  • Ctrl
  • 0

Actual size

  • Ctrl
  • Shift
  • 1

Layout Editor

Toggle between Design and Blueprint modes

  • B

Toggle between Portrait and Landscaope modes

  • O

Toggle devices

  • D

Force refresh

  • R

Toggle render errors panel

  • E

Delete constraints

  • Del

Zoom in

  • Ctrl
  • +

Zoom out

  • Ctrl
  • -

Zoom to fit

  • Ctrl
  • 0

Go to XML

  • Ctrl
  • B

Select all components

  • Ctrl
  • A

Select multiple components

  • Shift
  • (click)

Writing Code

Generate code, e.g. getters, setters, constructors, new class

  • Alt
  • Insert

Override methods

  • Ctrl
  • O

Implement methods

  • Ctrl
  • I

Surround with if...else, try...catch, etc

  • Ctrl
  • Alt
  • T

Delete line at caret

  • Ctrl
  • Y

Collapse the current code block

  • Ctrl
  • -

Expand the current code block

  • Ctrl
  • +

Collapse all code blocks

  • Ctrl
  • Shift
  • -

Expand all code blocks

  • Ctrl
  • Shift
  • +

Duplicate the current line or selection

  • Ctrl
  • D

Basic code completion

  • Ctrl
  • Space

Smart code completion, filters the list of methods and variables by expected type

  • Ctrl
  • Shift
  • Space

Complete statement

  • Ctrl
  • Shift
  • Enter

Quick documentation lookup

  • Ctrl
  • Q

Show parameters for selected method

  • Ctrl
  • P

Go to declaration, directly

  • Ctrl
  • B

Go to implementations

  • Ctrl
  • Alt
  • B

Go to super-method or super-class

  • Ctrl
  • U

Open quick definition lookup

  • Ctrl
  • Shift
  • I

Toggle project tool window visibility

  • Alt
  • 1

Toggle bookmark

  • F11

Toggle bookmark with mnemonic

  • Ctrl
  • F11

Comment or uncomment with line comment

  • Ctrl
  • /

Comment or uncomment with block comment

  • Ctrl
  • Shift
  • /

Select successively increasing code blocks

  • Ctrl
  • W

Decrease current selection to previous state

  • Ctrl
  • Shift
  • W

Move to code block start

  • Ctrl
  • [

Move to code block end

  • Ctrl
  • ]

Select to the code block start

  • Ctrl
  • Shift
  • [

Select to the code block end

  • Ctrl
  • Shift
  • ]

Delete to the end of a word

  • Ctrl
  • Del

Delete to the start of a word

  • Ctrl
  • Backspace

Optimize imports

  • Ctrl
  • Alt
  • O

Project quick fix, show intention actions and quick fixes

  • Alt
  • Enter

Reformat code

  • Ctrl
  • Alt
  • L

Auto-indent lines

  • Ctrl
  • Alt
  • I

Indent lines

  • Tab

Unindent lines

  • Shift
  • Tab

Smart line join

  • Ctrl
  • Shift
  • J

Smart line split

  • Ctrl
  • Enter

Start new line

  • Shift
  • Enter

Next highlighted error

  • F2

Previous highlighted error

  • Shift
  • F2

Build and Run

Build

  • Ctrl
  • F9

Build and run

  • Shift
  • F10

Apply changes and restart activity

  • Ctrl
  • F10

Apply code changes

  • Ctrl
  • Alt
  • F10

Debugging

Debug

  • Shift
  • F9

Step over

  • F8

Step into

  • F7

Smart step into

  • Shift
  • F7

Step out

  • Shift
  • F8

Run to cursor

  • Alt
  • F9

Evaluate expression

  • Alt
  • F8

Resume program

  • F9

Toggle breakpoint

  • Ctrl
  • F8

View breakpoints

  • Ctrl
  • Shift
  • F8

Refactoring

Copy

  • F5

Move

  • F6

Safe delete

  • Alt
  • Del

Rename

  • Shift
  • F6

Change signature

  • Ctrl
  • F6

Inline

  • Ctrl
  • Alt
  • N

Extract method

  • Ctrl
  • Alt
  • M

Extract variable

  • Ctrl
  • Alt
  • V

Extract field

  • Ctrl
  • Alt
  • F

Extract constant

  • Ctrl
  • Alt
  • C

Extract parameter

  • Ctrl
  • Alt
  • P

Version Control

Commit project to VCS

  • Ctrl
  • K

Update project from VCS

  • Ctrl
  • T

View recent changes

  • Alt
  • Shift
  • C

Open VCS pop-up

  • Alt
  • `