Android Studio shortcut key (including custom) Release edition, androidstudio

Source: Internet
Author: User

Android Studio shortcut key (including custom) Release edition, androidstudio
 

[F] [F]
F2 Switch between Error Codes
F3 Locate forward (Shift + F3: locate backward)
F4 \ Ctrl + Click \ Ctrl + B Go to definition to view the class inheritance relationship
F5 But do not debug the function.
F6 But does not enter the function after debugging.
F7 Statement by statement
F8 Process by Process
F9 Continue execution
F12 Go to definition (custom)
   
[Ctrl] [Ctrl]
Ctrl + mouse click \ Ctrl + B \ F12 Go to definition to view the class inheritance relationship
Ctrl + D Copy the line of code at the cursor to the next line
Ctrl + E View recently opened files
Ctrl + Shift + E View recently edited files
Ctrl + J Ctrl + J: Smart prompt
Ctrl + H Display class-level view
Ctrl + O Quick overwriting Method
Ctrl + P Display parameter information
Ctrl + Q View JavaDoc (method instructions)
Ctrl + R Replace the current file. Ctrl + Shift + R: complete solution replacement.
Ctrl + W Expand and narrow the selection range (you can select a word and then the statement and then the row and then the function)
Ctrl + X Cut the line of code where the cursor is located
Ctrl + Y Delete row
Ctrl + F7 Search for references in the file
Ctrl + F9 Compile the project
Ctrl + F12 \ Alt + Z File method Structure
Ctrl +. Collapse \ expand code segment
Ctrl + Plus Expand code segment
Ctrl + Minus Collapse code segment
Ctrl +/or Alt + 1: When the line comment, repeat the reverse comment once again.
Ctrl + [ Jump to the beginning of braces
Ctrl +] Jump to the end of braces
Ctrl + Tab Open the interface switch window, hold down the Ctrl key, and select the window to open.
   
[Alt] (custom shortcut) [Alt]
Alt + 1 Comment/cancel comment
Alt + Last bookmarks
Alt + C \ Alt + F7 Search for all references (variables and methods can be searched)
Alt + D Next bookmarks
Alt + S Insert bookmarks \ Delete bookmarks
Alt + F Browse all bookmarks
Alt + Q See the Declaration of the Current Method \ class
Alt + 3 Format code
Alt + X Package the code in one piece, for example, try/catch (the premise is that you must select a piece of code)
Alt + Z File method Structure
Alt + Enter Import package
Alt + Insert Generate code (such as get, set, constructor, etc)
Alt + ↓ Back to the last view or edit location
Alt + → Go to the last view or edit location
Alt + Up or Alt + Down Fast movement between methods
Alt + F1 Locate the edited element in each panel
Alt + F3 Quick Search
Alt + F7 Search for all references (variables and methods can be searched)
Alt + F8 Calculate variable value
   
[Shift] [Shift]
Shift + F6 Rename classes, methods, and variables. The names are automatically updated when used.
Double Shift Global search, which is slightly different from Alt + H. This is a global file search, at the file name level.
Shift + Click + tab Close file
Shift + mouse scroll You can scroll horizontally on the editing page.
   
[Ctrl + Alt] [Ctrl + Alt]
Ctrl + Alt + B Jump to the implementation of the abstract Method
Ctrl + Alt + H or Alt + C Search for all references
Ctrl + Alt + O Remove unused packages
Ctrl + Alt + L Format the Code (which may conflict with QQ lock)
Ctrl + Alt + S Open the settings Interface
Ctrl + Alt + V Introduce variables. For example, assign the SQL statement in parentheses to a variable. When the parameters passed in when a method is called are complex expressions, you can use this combination of keys to refactor the variables to simplify the complexity of the Code. Select the expression before the key combination.
Ctrl + Alt + T Package the code in one piece, for example, try/catch (the premise is that you must select a piece of code)
Ctrl + Alt + Space Automatic completion of Class Name
Ctrl + Alt + F7 View the usage of a class, method, and member variable throughout the project.
   
[Ctrl + Shift] [Ctrl + Shift]
Ctrl + Shift + I To quickly view the method body and view how a method is implemented, you can move the cursor to the method and press the combination key.
Ctrl + Shift + J Remove gaps between rows (composite rows)
Ctrl + Shift + K Push files to Server (git)
Ctrl + Shift + R Replace all solutions.
Ctrl + Shift + U Case-sensitive Conversion
Ctrl + Shif + then Move the line of code above the cursor position (internal method movement only)
Ctrl + Shif + then The line of code where the cursor is located moves down (only inside the method)
Ctrl + Shift +/ /**/Module comments. Repeat the reverse comments once.
Ctrl + Shift + F7 Highlight the use of the current element in the current file
Ctrl + Shift + Backspace You can jump to the Last edited place.
Ctrl + Shift + Insert Select and insert the clipboard content
Ctrl + Shift + Space In many cases, Smart prompts are provided.
   
[Alt + Shift] [Alt + Shift]
Alt + Shift + ↓ Move the line of code down at the cursor position (move the entire document)
Alt + Shift + ↓ Move the line of code down at the cursor position (move the entire document)
Alt + Shift + X Run)
Alt + Shift + D Debug)
Alt + Shift + C View the latest changes to the project.
   
[Ctrl + Alt + Shift] [Ctrl + Alt + Shift]
Ctrl + Alt + Shift + S Open the Project Structure Interface

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

Ctrl + Alt + S open the setting form → Keymap, right-click the operation you want to define the Shortcut key in the right list → Add Keyboard Shortcut cut, then place the cursor on the First Stroke and press the shortcut key you want to define.

Related Article

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.