Android Studio shortcut keys

Source: Internet
Author: User

Android Studio shortcut keys


# idea shortcut keys

Description: Italic text indicates that there is no effect when the test is not effective or when there is no pre-condition when the test is not achieved.

# # IDE

Key | description
---|---
f1| Help
alt+f1| find the directory where the files are located
alt+1| quickly open or hide the engineering panel
ctrl+alt+s| Open the Settings dialog box
alt+home| Jump to navigation bar
esc| cursor back to edit box
shift+esc| the cursor back to the edit box, close the useless window
shift+click| closing Tabs
f12| move the focus from the editor to the most Recently used tool window
ctrl+alt+y| Synchronization
ctrl+alt+s| Open the Settings dialog box
Alt+shift+inert| Open/Close column selection mode
Ctrl+alt+shift+s| open Current project/module properties
alt+shift+c| viewing the file's change history
ctrl+shift+f10| Run
Ctrl+shift+f9|debug Run
ctrl+alt+f12| Explorer open Folder

# # Edit

Key | description
---|---
ctrl+c| Copy the current line or selected content
ctrl+d| paste the current line or selected content
Ctrl+x| to cut the current line or selected content
ctrl+y| Deleting rows
Ctrl+z| backwards
Ctrl+shift+z| forward
alt+enter| Automatic correction
ctrl+alt+l| Formatting Code
Ctrl+alt+i| the selected code for automatic indent orchestration
Ctrl+alt+o| Optimizing imported classes and Packages
Alt+insert| get some intention Action, can generate constructor, Getter, Setter, change ' = = ' to ' Equals () ', etc.
Ctrl+shift+v| Select the most recently used clipboard content and insert
ctrl+alt+shift+v| Simple Paste
Ctrl+shift+insert| Select the most recently used clipboard contents and insert (same as CTRL+SHIFT+V)
ctrl+enter| inserts a new row above the current row and moves the cursor to a new line (this function cursor is valid at the beginning of the line)
shift+enter| inserts a new row below the current line and moves the cursor to the new line
ctrl+j| Automatic Code
Ctrl+alt+t| put the selected code in ' try{} ', ' if{} ', ' else{} '
Shift+alt+insert| Vertical Edit mode
CTRL + '/' | comment '//'
ctrl+shift+ '/' | comment '/*...*/'
ctrl+shift+j| Merge into one line
F2/shift+f2| jump to Next/previous Error statement
Ctrl+shift+back| jump to the last edited place
Ctrl+alt+space| class name Auto-complete
shift+alt+up/down| content Move Up/down
ctrl+shift+up/down| statement Move Up/down
ctrl+shift+u| Case Switching
After the tab| code tag input is complete, press ' Tab ' to generate the code
ctrl+backspace| Delete by word
ctrl+shift+enter| statement Completion
ctrl+alt+j| Surround with dynamic templates

# # File

Key | description
---|---
Ctrl+f12| show the structure of the current file
ctrl+h| Display class inheritance structure diagram
ctrl+q| displaying comment documents
ctrl+p| Method Parameter Hints
Ctrl+u| Open the parent class of the current class or an implemented interface
Alt+left/right| Switch Code View
Ctrl+alt+left/right| return to last edited position
Alt+up/down| fast positioning between methods
Ctrl+b| quickly open the class or method at the cursor
Ctrl+w| selected code, continuous press will have other effects
Ctrl+shift+w| deselect the word cursor
CTRL + '-'/' + ' | collapse/Unwind Code
ctrl+shift+ '-'/' + ' | collapse/Expand All code
ctrl+shift+ '. ' | collapse/Expand the code in the current curly brace
CTRL + '] '/' [' | Jump to code block end/Start
F2 or shift+f2| highlighting error or warning quick location
ctrl+shift+c| Copy Path
ctrl+alt+shift+c| copy Reference, you must select the class name
Alt+up/down| fast positioning between methods
shift+f1| the browser to open the class or method ' Java ' document where the editor cursor character is used
Ctrl+g| Locating rows

# # Find

Key | description
---|---
Ctrl+f| finding text in the current window
Ctrl+shift+f| finding text in a specified environment
F3| down find where the keyword appears
shift+f3| up a keyword where it appears
ctrl+r| replacing text in the current window
ctrl+shift+r| replacing text in a specified window
Ctrl+n| Find Class
ctrl+shift+n| Finding files
Ctrl+shift+alt+n| find a method or variable in a project
Ctrl+b| finding the source of a variable
Ctrl+alt+b| quickly open the class or method at the cursor
Ctrl+shift+b| jump to a class or method implementation
Ctrl+e| recently opened files
alt+f3| Quick Find, same effect as ctrl+f
F4| jump to the location where the variable is defined
alt+f7| querying the current element references in the project
ctrl+f7| queries the current element's references in the current file, and then presses ' F3 ' to select
ctrl+alt+f7| Check the reference of the current element in the project
ctrl+shift+f7| highlight matching characters, press ' ESC ' to highlight disappear
*ctrl+shift+o*|* Popup Display Find what *
*ctrl+alt+up/down*|* Quick Jump Search Results *
*ctrl+shift+s*|* Advanced Search, search structure *

# # Refactoring

Key | description
---|---
f5| replication
f6| Mobile
alt+delete| Safe Removal
Ctrl+u| go to Parent class
Ctrl+o| overriding methods of the parent class
Ctrl+i| Implementation method
ctrl+alt+n| Inline
Ctrl+alt+shift+t| Popup Refactoring Menu
shift+f6| Refactoring-Renaming
Ctrl+alt+m| Extraction Code Composition method
ctrl+alt+c| changing a variable to a constant
ctrl+alt+v| defines a variable that references the return value of the current object or method
ctrl+alt+f| changing a local variable to a member variable of a class
ctrl+alt+p| changing a variable to a parameter of a method

# # Debugging

Key | description
---|---
f8| Skip to Next step
Shift+f8| jump out of a function, jumps to the next breakpoint
alt+shift+f8| Force Bounce function
F7| Enter code
shift+f7| Smart Access Code
Alt+shift+f7| Force Entry Code
alt+f9| Run to Cursor
ctrl+alt+f9| force Run to Cursor
ctrl+f2| Stop Running
alt+f8| Calculating variable values

# # VCS

Key | description
---|---
ALT + ' ~ ' | ' VCS ' Action menu
ctrl+k| Commit Changes
Ctrl+t| Update Project
ctrl+alt+shift+d| Display Changes

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.