"Android Studio" Android Studio common shortcut keys

Source: Internet
Author: User

1. Keyboard shortcuts
Description Windows/linux
1.1 General
Save All Control + S
Synchronous Control + Alt + Y
Maximize/Minimize Editor Control + Shift + F12
Add to Favorites Alt + Shift + F
Check the current file using the current configuration file Alt + Shift + I
Fast switching mode Control + ' (anti-quote)
Open the Settings dialog box Control + Alt + S
Open the Project Structure dialog box Control + Alt + Shift + S
Switch between a label and a tool window Control + Tab
1.2 Navigating and searching within Studio
Search all content (including code and menus) Press two times Shift
Find Control + F
Find the next F3
Find Previous Shift + F3
Replace Control + R
Find operations Control + Shift + A
Search by symbol name Control + Alt + Shift + N
Find class Control + N
Finding files (not classes) Control + Shift + N
Find in Path Control + Shift + F
Open the file Structure pop-up menu Control + F12
Navigating through an open editor label Alt + right/left arrow
Skip to Source code F4/control + Enter
Open the current Editor tab in a new window Shift + F4
Recently opened file pop-up menu Control + E
Recently edited file pop-up menu Control + Shift + E
Go to previous edit location Control + Shift + Backspace key
Close the Activity Editor tab Control + F4
Returning from the tool window to the editor window Esc
Hide the active or previous active tool window Shift + ESC
Go to Line Control + G
Open type Hierarchy Control + H
Open a Method hierarchy Control + Shift + H
Open Call Hierarchy Control + Alt + H
1.3 Writing code
Generate code (getter, setter, constructor, Hashcode/equals, toString, new file, new Class) Alt + Insert
Replacement method Control + O
Implementation method Control + I
Control statement (IF...ELSE/TRY...CATCH/ETC.) Control + Alt + T
Delete the line at the caret Control + Y
Collapse/Expand Current code block Control + minus/Plus
Collapse/Expand All code blocks Control + Shift + minus/Plus
Copy the current row or select Control + D
Basic code Auto-complete Control + Space Key
Smart Code AutoComplete (filter methods and variable lists by expected type) Control + Shift + SPACEBAR
Completion statement Control + Shift + Enter
Quick Document Finder Control + Q
Show parameters for the selected method Control + P
Go to declaration (direct) Control + B or CONTROL + click
Go to implementation Control + Alt + B
Go to Super class method/Superclass Control + U
Open Quick Definition Lookup Control + Shift + I
Toggle the visibility of the Project tool window ALT + 1
Toggle Bookmarks F11
Toggle Bookmarks by mnemonic Control + F11
Add comments/Uncomment by line comment Control +/
Add comments/Uncomment with block comments Control + Shift +/
Select a continuously increasing block of code Control + W
Returns the current selection to the previous state Control + Shift + W
Move to code block start position Control + [
Move to code block end position Control +]
Select from current position to code block start position Control + Shift + [
Select from current position to code block end position Control + Shift +]
Delete from current position to end of word Control + Delete
Remove from current position to beginning of word Control + Backspace key
Optimize import Control + Alt + O
Project Quick Fix (explicit operation and quick fix) Alt + Enter
Reformat code Control + Alt + L
Auto Shrink Control + Alt + I
Indent/Cancel Indent Tab/shift + Tab
Smart Row Merging Control + Shift + J
Smart Line Splitting Control + Enter
Start a new line Shift + Enter
Next/Previous highlighted error F2/shift + F2
1.4 Build and run
Build Control + F9
Build and run Shift + F10
1.5 Commissioning
Debugging Shift + F9
Skip Over F8
Progressive implementation F7
Smart Progressive Execution Shift + F7
Jump Shift + F8
Run To Cursor position Alt + F9
Evaluate an expression Alt + F8
Continue running the program F9
Toggle Breakpoint Control + F8
viewing breakpoints Control + Shift + F8
1.6 Refactoring
Copy F5
Move F6
Safe removal Alt + Delete
Renaming Shift + F6
Change signature Control + F6
Inline Control + Alt + N
Extraction method Control + Alt + M
Extracting variables Control + Alt + V
Extract fields Control + Alt + F
Extracting constants Control + Alt + C
Extracting parameters Control + Alt + P
1.7 Version Control/local History
Submit the project to the VCS Control + K
Update Project from VCS Control + T
View Recent Changes Alt + Shift + C
Open VCS pop-up menu Alt + ' (anti-quote)

2. Configure custom Key mappings

You can choose from a variety of preset key mappings, or you can modify the preset key mappings in the key mapping settings of Android Studio to create a new custom key mapping.

To turn on the key mapping settings, click File > Settings > Keymap

  

    1. Key Mapping drop-down menu: Select the desired key mapping from this menu to toggle between the preset key mappings.
    2. action list: Right-click action to modify it. You can add more keyboard shortcuts to an action, add a mouse shortcut to associate an action with a mouse click, or remove the current shortcut key. If you are using a preset key mapping, the shortcut key for the modify operation will automatically create a copy of the key map and add your modifications to the copy.
    3. Copy button: Select a key mapping from the drop-down menu to use as a starting point, then click Copy to create a new custom key mapping. You can modify the key mapping name and shortcut keys.
    4. reset button: Select a key mapping from the drop-down menu and click Reset to revert it to its original configuration.
    5. search box: type text here to search for keyboard shortcuts by action name.
    6. Press the shortcut key to search: Click Find Actions by Shortcut and type a shortcut key to search for the action by pressing the shortcut key.

3. Android Studio Website detailed

The following is the Android Studio website on its shortcut key introduction, the content more detailed, the current domestic need to go agent to access.

Https://developer.android.google.cn/studio/intro/keyboard-shortcuts.html#_2

"Android Studio" Android Studio common 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.