Android Studio shortcuts (including custom) Ultimate Edition

Source: Internet
Author: User

 
F F
F2 Switch between error codes
F3 Forward positioning (Shift + F3: Positioning backwards) There's a problem.
f4\ctrl+ Mouse click \ctrl+b Go To Definition, view class inheritance relationships
F5 But does not debug into the inside of the function.
F6 But not debugging does not go inside the function.
F7 Per-statement
F8 Process-wise
F9 Continue execution
F12 Go To Definition (custom)
[Ctrl] [Ctrl]
CTRL + mouse click \ Ctrl + B\ F12 Go To Definition, view class inheritance relationships
Ctrl + D Copy the position of the cursor to the next line of code
Ctrl + E View files that have been recently opened
CTRL + Shift + E View recently edited files
Ctrl + J Ctrl + J: Smart Tips
Ctrl + H Show class-level view
Ctrl + O Quick Overwrite Method
Ctrl + P can display parameter information
Ctrl + Q View Javadoc (Description of the method document)
Ctrl + R The current file is replaced. Ctrl+shift+r: Full solution replacement.
Ctrl + W Zoom in and out of the selection (you can select a word followed by a statement followed by a function).
Ctrl + X The line of code where the cursor is clipped
Ctrl + Y Delete Row
Ctrl + F7 Where to find references in a file
Ctrl + F9 Compiling the project
Ctrl + F12 \ Alt + Z File method Structure
Ctrl +. Collapse \ Expand Code Snippets
Ctrl + Plus Expand Code Snippets
Ctrl + minus Collapse Code Snippets
Ctrl +/or ALT + 1: When the line is commented, the counter-comment is pressed again
Ctrl + [ Jump to the beginning of curly braces
Ctrl +] Jump to the end of curly braces
Ctrl + Tab Open the Interface Toggle window, hold down the CTRL key, and select the appropriate window to open.
[Alt] (custom shortcut keys) [Alt]
ALT + 1 Comment/Uncomment
Alt + A Previous Bookmark
ALT + C \ ALT + F7 Find all references (variables and methods can be found)
Alt + D Next Bookmark
Alt + S Insert bookmark \ Delete Bookmark
Alt + F Browse all Bookmarks
Alt + Q See the declaration of the current method \ Class
ALT + 3 Formatting code
Alt + X Package the code within a block, such as Try/catch (if a piece of code must be selected)
Alt + Z File method Structure
Alt + Enter Importing packages
Alt + Insert Generate code (such as Get,set method, constructor, etc.)
Alt +← Back to the last place to view or edit
Alt +→ Move forward to the last place you viewed or edited
ALT + up or ALT + down Can be moved quickly between methods
Alt + F1 Position the element you are editing in each panel
Alt + F3 Quick Search
Alt + F7 Find all references (variables and methods can be found)
Alt + F8 Calculate variable values
[Shift] [Shift]
Shift+f6 Renaming classes, methods, and variables automatically updates the name where it is used.
Double Shift Global lookup, this view and alt+h slightly different, this is the global file lookup, to the file name level.
Shift + Click + TAB tab Close File
Shift + mouse Scrolling Enables horizontal scrolling of the editing interface.
[Ctrl + Alt] [Ctrl + Alt]
Ctrl + Alt + B Jump to the implementation of an abstract method
Ctrl + ALT + H or ALT + C Find All references
Ctrl + Alt + O To remove unused packages
Ctrl + Alt + L Format code (may conflict with QQ Lock)
Ctrl + Alt + S Open the Settings interface
Ctrl + Alt + V Introduce variables. For example, a variable is assigned to SQL in parentheses. This key combination can be used to refactor variables to simplify the complexity of the code when the arguments passed in when the method is called are more complex expressions. Select the expression before you can combine the keys.
Ctrl + Alt + T Package the code within a block, such as Try/catch (if a piece of code must be selected)
Ctrl + Alt + Space Class name Auto-complete
Ctrl + Alt + F7 View the usage of a class, method, and member variable throughout the project.
[Ctrl + Shift] [Ctrl + Shift]
Ctrl + Shift + I Quick view of the method body, want to see how a method is implemented, you can move the cursor to the method, press this key combination.
Ctrl + Shift + J Remove whitespace between rows and rows (group rows)
Ctrl + Shift + K Push file to server (git)
Ctrl+shift+r Full solution replacement.
Ctrl + Shift + U Uppercase and lowercase conversions
Ctrl+shif +↑ Where the cursor is located the line of code moves up (only within the method's internal movement)
Ctrl+shif +↓ Where the cursor is located the line of code moves down (only within the method's internal movement)
Ctrl + Shift +/ /**/Module Comment, counter-comment and press once
Ctrl+shift+f7 Highlight the current element's use in the current file
Ctrl+shift+backspace You can jump to where you last edited.
Ctrl + Shift + Insert Select Clipboard contents and insert
Ctrl + Shift + Space Smart tips can be given in many cases
[Alt+shift] [Alt+shift]
Alt + Shift +↑ Where the cursor is located the line of code moves down (the entire document moves)
Alt + Shift +↓ Where the cursor is located the line of code moves down (the entire document moves)
Alt + Shift + X Running (run)
Alt + Shift + D Debug Run (Debug)
Alt + Shift + C View recent changes to the project.
[Ctrl + Alt + Shift] [Ctrl + Alt + Shift]
Ctrl + Alt + Shift + S Open the project Structure interface

Some of them are primitive shortcuts, and some are customized according to their own habits. The custom method is as follows:

Ctrl + Alt + S Open the setup form →keymap, in the right-hand list, right-click →add Keyboard Shortcut on the action that you want to define the shortcut, and then place the cursor directly above the first stroke to the shortcut you want to define.

Android Studio shortcuts (including custom) Ultimate Edition

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.