Android Studio shortcut keys

Source: Internet
Author: User

Ctrl

Shortcut keys

Introduced

Ctrl + F

Text lookup in the current file (required)

Ctrl + R

Text substitution in the current file (required)

Ctrl + Z

Undo (Required)

Ctrl + Y

Delete the line of the cursor or delete the selected row (required)

Ctrl + X

Cut the row or cut selection of the cursor

Ctrl + C

Copy the row of the cursor or copy the selection

Ctrl + D

Copy the row of the cursor or copy the selection and insert the copied content under the cursor position (required)

Ctrl + W

Progressive selection code block. You can select the word or paragraph where the cursor is located, and then expand the selected range (required) on the basis of the original selection.

Ctrl + E

Displays a list of recently opened file records

Ctrl + N

Find a class file based on the class name entered

Ctrl + G

Jumps to the specified line at the current file

Ctrl + J

Inserting custom dynamic Code templates

Ctrl + P

Method parameter hints Display

Ctrl + Q

The variable that the cursor is in/class name/method name, etc. (you can also press when prompted to add) to display the contents of the document

Ctrl + U

Go to the method of the parent of the method where the cursor is currently located \/interface Definition

Ctrl + B

Enter the method where the cursor is located/the interface or definition of the variable, equivalent to Ctrl + left click

Ctrl + K

Version control commits the project and requires that this item be added to version control before it is available

Ctrl + T

Version control update project, which requires this item to be added to version control before it is available

Ctrl + H

Displays the hierarchy of the current class

Ctrl + O

Choose a method that can be overridden

Ctrl + I

Choose a method that can be inherited

Ctrl + +

Unwind code

Ctrl +-

Collapse Code

Ctrl +/

Note The line code of the cursor, which uses different annotation symbols depending on the current file type (required)

Ctrl + [

Move the cursor to the beginning of the curly brace where the current code is located

Ctrl +]

Move the cursor to the end of the curly brace where the current code is located

Ctrl + F1

Displays an error message at the error code where the cursor is located

Ctrl + F3

Switch to the next reference position of the selected word

Ctrl + F4

Close the current edit file

Ctrl + F8

In Debug mode, set the cursor's current behavior breakpoint and remove the breakpoint if it is currently a breakpoint

Ctrl + F9

Perform the Make Project action

Ctrl + F11

Select the file \/folder, use mnemonic settings \/Cancel Bookmark

Ctrl + F12

pops up the current file structure layer and can be entered directly on the popup layer for filtering

Ctrl + Tab

Edit window switch, if the process of switching and pressing the Delete, then the corresponding selected window is closed

Ctrl + Enter

Intelligent Sub-interlacing

Ctrl + End

Skip to end of file

Ctrl + Home

Skip to File header

Ctrl + Space

Base code completion, default on the Windows system by the input method, need to be modified, recommended to change to Ctrl + comma (required)

Ctrl + Delete

Delete the word after the cursor or the Chinese sentence

Ctrl + BackSpace

Delete the word in front of the cursor or Chinese sentence

Ctrl + 1,2,3...9

Position the bookmark location to the corresponding value

Ctrl + Left click

On the file header that opens, the file path pops up

Ctrl + cursor Positioning

Press Ctrl to not release, which displays a summary of the class information where the cursor is located

CTRL + LEFT ARROW key

Cursor jumps to the left-hand position of the current word/Chinese sentence

CTRL + RIGHT ARROW key

The cursor jumps to the beginning of the right of the current word/Chinese sentence

CTRL + Front arrow keys

Equivalent to the mouse wheel forward effect

CTRL + REAR ARROW keys

Equivalent to the mouse wheel backward effect

Alt

Shortcut keys

Introduced

Alt + '

Display version control common Actions menu pop-up layer

Alt + Q

pops up a hint that shows the declaration of the current class \ \ Context Information

Alt + F1

Displays the current file selection target pop-up layer, there are many targets in the pop-up layer can be selected

Alt + F2

For the previous page, display various types of browser open target selection pop-up layer

Alt + F3

Select the text, look down the same text, and highlight

Alt + F7

Find the method where the cursor is located \/variable/Where the class is called

Alt + F8

In the state of debug, select the object, pop-up can enter the calculation Expression debug box, view the debugging results of the input content

Alt + Home

Position/display to the current file Navigation Bar

Alt + Enter

IntelliJ idea provides quick fix selection based on the cursor problem, and the results of different hints are different when the cursor is positioned (required)

Alt + Insert

Code is generated automatically, such as the set/Get method of the generated object, constructor, ToString (), etc.

ALT + LEFT ARROW key

Toggle the currently open File view in the left direction

ALT + RIGHT ARROW key

Toggle the currently open File view in the right direction

ALT + Front arrow key

The current cursor jumps to the previous method name location of the current file

ALT + Rear arrow key

The current cursor jumps to the last method name location of the current file

Alt + 1,2,3...9

Displays the corresponding value of the tab, where 1 is the most used by Project

Shift

Shortcut keys

Introduced

Shift + F1

If an external document can be attached to an external document

Shift + F2

Jump to previous highlight error or warning location

Shift + F3

In Find mode, find matches the previous

Shift + F4

Open with a new Windows window to the currently open file, the old window remains

Shift + F6

Renaming files \/folders

Shift + F7

In Debug mode, smart Step into. There are multiple method calls on the line where the breakpoint is located, which method pops up

Shift + F8

In Debug mode, jump out and show the same effect as F9

Shift + F9

Equivalent to clicking the Debug button on the toolbar

Shift + F10

Equivalent to clicking the Run button on the toolbar

Shift + F11

Popup Bookmark Display Layer

Shift + Tab

Cancel Indent

Shift + ESC

Hides the current or last active tool window

Shift + End

Select cursor to current end of line position

Shift + Home

Select the cursor to the current outfit position

Shift + Enter

Start a new line. One row below the cursor line, the cursor is positioned to the new line position

Shift + Left-click

You can close the currently open file by pressing this shortcut key on the open filename

Shift + scroll wheel back and forth

Horizontal scrolling axis scrolling for the current file

Ctrl + Alt

Shortcut keys

Introduced

Ctrl + Alt + L

Format code that can be used for the current file and the entire package directory (required)

Ctrl + Alt + O

Optimized imported classes that can be used with the current file and the entire package directory (required)

Ctrl + Alt + I

Automatic code indentation in the row or selection of the cursor, sort of like formatting

Ctrl + Alt + T

Popup Wrapping Options Pop-up layer for selected code

Ctrl + Alt + J

Popup template Selection window to add the selected code to the dynamic template

Ctrl + Alt + H

Call Hierarchy

Ctrl + Alt + B

Using the method name on a call jumps to the specific implementation, you can skip the interface

Ctrl + Alt + V

Fast introduction of variables

Ctrl + Alt + Y

Sync, Refresh

Ctrl + Alt + S

Open IntelliJ Idea System settings

Ctrl + Alt + F7

Shows where to use. Find the place to be called by the class or variable, and use the popup box to find the way

Ctrl + Alt + F11

Toggle Full Screen mode

Ctrl + Alt + Enter

A row above the line where the cursor is positioned to the new row

Ctrl + Alt + Home

pops up the file pop-up layer associated with the current file

Ctrl + Alt + Space

Class name Auto-complete

Ctrl + ALT + LEFT ARROW key

Go back to the place where you last action (required)

Ctrl + ALT + RIGHT ARROW key

Move forward to the last action (required)

Ctrl + ALT + Front arrow key

In Find mode, skip to the last file found

Ctrl + ALT + rear arrow keys

In Find mode, skip to the next found file

Ctrl + Shift

Shortcut keys

Introduced

Ctrl + Shift + F

Find an entire project or a file within a specified directory based on what you enter (required)

Ctrl + Shift + R

Replace the content with the input, scoped to the entire project, or to a file within the specified directory (required)

Ctrl + Shift + J

Automatically merges the next line to the end of the current line (required)

Ctrl + Shift + Z

Cancel Undo (required)

Ctrl + Shift + W

Progressive de-selection code block. You can select the word or paragraph where the cursor is located, and then expand the unchecked range (required) on the basis of the original selection.

Ctrl + Shift + N

Locate/Open File/directory by file name, open Directory need to add a forward slash after the input content (required)

Ctrl + Shift + U

Change the selected code to a large/lowercase rotation (required)

Ctrl + Shift + T

Generates unit test classes for the current class, which can be selected if a unit test class already exists

Ctrl + Shift + C

Copy the current file disk path to the Clipboard

Ctrl + Shift + V

Popup cache of the most recently copied content manager pop-up layer

Ctrl + Shift + E

Pop-up layer showing the list of recently modified files

Ctrl + Shift + H

Show method Hierarchies

Ctrl + Shift + B

Jump to type declaration

Ctrl + Shift + I

Quickly see the definition of the method or class where the cursor is located

Ctrl + Shift + A

Find actions \/settings

Ctrl + Shift + \

Code block Comments (required)

Ctrl + Shift + [

Select the bracket position from the cursor position to the top of it

Ctrl + Shift +]

Select the bracket position from the position of the cursor to the bottom of it

Ctrl + Shift + +

Expand All Code

Ctrl + Shift +-

Collapse All code

Ctrl + Shift + F7

Highlight all of the selected text and press ESC to highlight the disappear

Ctrl + Shift + F8

In Debug mode, specify a breakpoint entry condition

Ctrl + Shift + F9

Compiling the selected file \/package \ Module

Ctrl + Shift + F12

Editor maximization

Ctrl + Shift + Space

Smart Code Hints

Ctrl + Shift + Enter

Auto-end code, automatically add semicolon at end of line (required)

Ctrl + Shift + Backspace

Go back to the last modified place

Ctrl + Shift + 1,2,3...9

Quickly add a bookmark for a specified value

Ctrl + Shift + left-click

Place the cursor on a class variable, and press the shortcut key to navigate directly to the class (required)

Ctrl + Shift + LEFT ARROW key

On the code file, the cursor jumps to the left-hand position of the current word/Chinese sentence and selects the word/Chinese sentence

Ctrl + Shift + RIGHT ARROW key

On the code file, the cursor jumps to the beginning of the right of the current word/Chinese sentence and selects the word/Chinese sentence

Ctrl + Shift + LEFT ARROW key

In the cursor focus is on the Tools tab, Zoom Out tab area

Ctrl + Shift + RIGHT ARROW key

In the cursor focus is on the Tools tab, expand the tab area

Ctrl + Shift + front arrow keys

The cursor is placed on the method name, the method is moved before the previous method, and the method is sorted

Ctrl + Shift + rear arrow keys

The cursor is placed on the method name, the method is moved before the next method, and the method ordering is adjusted

Alt + Shift

Shortcut keys

Introduced

Alt + Shift + N

Select \/Add Task

Alt + Shift + F

Show add to Favorites pop-up layer/Add to favorite folder

Alt + Shift + C

View a list of changes to the most recent action item

Alt + Shift + I

View Project Current File

Alt + Shift + F7

In Debug mode, the next step, enter the current method body, if the method body has a method, it will enter the embedded method, according to this loop into

Alt + Shift + F9

Pop-up Debug selectable menu

Alt + Shift + F10

Pop-up Run's selectable menu

Alt + Shift + Left button double-click

Select a double-click word/Chinese sentence, press and hold, you can select other words/Chinese sentence

Alt + Shift + Front arrow key

Move the row of the cursor up

Alt + Shift + Back arrow key

Move the row of the cursor down

Ctrl + Shift + Alt

Shortcut keys

Introduced

Ctrl + Shift + Alt + V

Unformatted Paste

Ctrl + Shift + Alt + N

Go to the specified variable \/method

Ctrl + Shift + Alt + S

Open Current project Settings

Ctrl + Shift + Alt + C

Copy reference information

Other

Shortcut keys

Introduced

F2

Jump to next highlight error or warning location (required)

F3

In Find mode, navigate to the next match

F4

Edit Source

F7

In Debug mode, go to the next step, if the current line breakpoint is a method, enter the current method body, if the method body has a method, it will not enter the inline method

F8

In Debug mode, go to the next step, if the current line breakpoint is a method, do not enter the current method body

F9

In Debug mode, the recovery program runs, but stops at the next breakpoint if the code below the breakpoint has a breakpoint

F11

Add Bookmark

F12

Go back to the previous tool window

Tab

Indent in

Esc

Enter the code file window from the tool window

Double-click Shift two times

Pop-up Search Everywhere pop-up layer

Android Studio shortcut keys

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.