Android Studio shortcut keys use

Source: Internet
Author: User
Tags code tag

Recently began a full shift to the development of Android studio, often to check the shortcut keys, simply summary, self-convenient to find

Ide

Key instructions

1 F1 Help2Alt (Option) +F1 Find the directory where the files are located3Alt (Option) +1quickly open or hide the project panel4Ctrl (Command) +alt (Option) +Open the Settings dialog box5Alt (Option) +Home jump to navigation bar6 ESC cursor returns to edit box7shift+ESC cursor returns to edit box, closes useless window8shift+Click Close Tab9 F12 Move the focus from the editor to the most Recently used tool windowTenCtrl (Command) +alt (Option) +Y Synchronization OneCtrl (Command) +alt (Option) +S Open the Settings dialog box AAlt (Option) +shift+inert Open/Turn off column selection mode -Ctrl (Command) +alt (Option) +shift+s open Current project/Module Properties -Alt (Option) +shift+C Viewing the file's change history theCtrl (Command) +shift+F10 Run -Ctrl (Command) +shift+F9 Debug Run -Ctrl (Command) +alt (Option) +F12 Explorer open folder


Edit

Key instructions

1Ctrl (Command) +C Copy the current line or selected content2Ctrl (Command) +D Paste the current line or selected content3Ctrl (Command) +X cut the current line or selected content4Ctrl (Command) +Y Delete Row5Ctrl (Command) +Z backwards6Ctrl (Command) +shift+Z forward7Alt (Option) +Enter Auto Fix8Ctrl (Command) +alt (Option) +L Format Code9Ctrl (Command) +alt (Option) +I automatically indent the selected code into the OrchestrationTenCtrl (Command) +alt (Option) +O optimization of imported classes and packages OneAlt (Option) +insert get some intention Action, can generate constructors, Getter, Setter, will = =change to Equals (), etc. ACtrl (Command) +shift+V Select the most recently used clipboard content and insert -Ctrl (Command) +alt (Option) +shift+V Simple Paste -CTRL (Command) +shift+insert Select the most recently used clipboard content and insert (with ctrl command) +shift+V) theCtrl (Command) +Enter Inserts a new row above the current line and moves the cursor to a new line (this function cursor is valid at the beginning of the row) -shift+Enter Inserts a new row below the current line and moves the cursor to the new line -Ctrl (Command) +J Automatic Code -Ctrl (Command) +alt (Option) +t The selected code in theTry{} 、if{} 、Else{} +Shift+alt (Option) +Insert Vertical Edit mode -Ctrl (Command) +/Comment// +Ctrl (Command) +shift+/Comment/.../ ACtrl (Command) +shift+J Merge into one line atF2/shift+f2 jump to the next/At the previous Error statement -Ctrl (Command) +shift+Back jumps to the last edit place -Ctrl (Command) +alt (Option) +Space class name auto-complete -Shift+alt (Option) +up/down content up/Move Down -Ctrl (Command) +shift+up/down statement up/Move Down -Ctrl (Command) +shift+U Case Switching in after the tab code tag is entered, press TAB to generate the Code -Ctrl (Command) +Backspace Delete by word toCtrl (Command) +shift+Enter Statement Complete +Ctrl (Command) +alt (Option) +j Surround with dynamic templates


File

Key instructions

1Ctrl (Command) +F12 Show the structure of the current file2Ctrl (Command) +H Display class inheritance structure diagram3Ctrl (Command) +Q Show Comment Document4Ctrl (Command) +P method Parameter hints5Ctrl (Command) +U Open the parent class of the current class or an implemented interface6Alt (Option) +left/Right Toggle Code View7Ctrl (Command) +alt (Option) +left/Right returns to the last edited position8Alt (Option) +up/down fast move location between methods9Ctrl (Command) +B quickly open the class or method at the cursorTenCtrl (Command) +W Check Code, continuous press will have other effects OneCtrl (Command) +shift+W deselect the word cursor ACtrl (Command) +-/+ collapse/Unwind Code -Ctrl (Command) +shift+-/+ Folding/Expand All Code -Ctrl (Command) +shift+. FoldingExpand the code in the current curly brace theCtrl +]/[Jump to code block end/starting at -F2 or shift+F2 highlighting error or warning quick location -Ctrl (Command) +shift+C Copy Path -Ctrl (Command) +alt (Option) +shift+C Copy Reference, you must select the class name +Alt (Option) +up/down fast move location between methods -shift+F1 The browser to open the class or method that the editor uses at the cursor character of the Java document +Ctrl (Command) +g anchor Row


Find

Key instructions

1Ctrl (Command) +F find text in the current window2Ctrl (Command) +shift+F find text in a specified environment3 F3 down find where the keyword appears4shift+F3 up a keyword where it appears5Ctrl (Command) +R replaces text in the current window6Ctrl (Command) +shift+R replaces text in the specified window7Ctrl (Command) +N Find Class8Ctrl (Command) +shift+N Finding Files9Ctrl (Command) +shift+alt (Option) +N Find a method or variable in an itemTenCtrl (Command) +B Find the source of the variable OneCtrl (Command) +alt (Option) +B quickly open the class or method at the cursor ACtrl (Command) +shift+B jump to class or method implementation -Ctrl (Command) +E recently opened files -Alt (Option) +f3 Quick Find, effects and CTRL +F Same the F4 jump to the location where the variable is defined -Alt (Option) +F7 Querying the current element references in the project -Ctrl (Command) +F7 queries the current element's references in the current file, and then presses F3 to select -Ctrl (Command) +alt (Option) +F7 Check the reference of the current element in the project +Ctrl (Command) +shift+F7 Highlight matching characters, press ESC to highlight disappear -Ctrl (Command) +alt (Option) +F7 Find all the calling places for a method +Ctrl (Command) +shift+alt (Option) +N Find a method or variable in a class ACtrl (Command) +shift+O Pop-up display find content atCtrl (Command) +alt (Option) +up/Down Quick Jump search Results -Ctrl (Command) +shift+s advanced Search, search structure


Refactoring

Key instructions

1 F5 Replication2 F6 Mobile3Alt (Option) +Delete Safe Delete4Ctrl (Command) +U go to parent class5Ctrl (Command) +O overriding methods of the parent class6Ctrl (Command) +I Implementation Method7Ctrl (Command) +alt (Option) +N Inline8Ctrl (Command) +alt (Option) +shift+T Pop-up refactoring menu9Shift+f6 Reconstruction- RenamingTenCtrl (Command) +alt (Option) +M Extraction Code Composition Method OneCtrl (Command) +alt (Option) +C Change a variable to a constant ACtrl (Command) +alt (Option) +V defines a variable that references the return value of the current object or method -Ctrl (Command) +alt (Option) +F Change a local variable to a member variable of a class -Ctrl (Command) +alt (Option) +p change variables to parameters of a method


Debugging

Keys      Description

  1   2  shift+f8 jumps out of the function, jumps to the next breakpoint   3  Alt ( Option) +shift+f8 force jump out of function   4  f7 Enter code   5  shift+f7 Smart Entry code   6  Alt (Option) +shift+f7 Force entry code   7  Alt (Option) +f9 run to Cursor   Ctrl (Command) + Alt (Option) +F9 force run to Cursor   Ctrl (Command) +f2 stop running  


Vcs

| key | instructions |

| Alt (Option) + ~| | VCS Operation Menu | | Ctrl (Command) +k| Commit Changes | | Ctrl (Command) +t| Update Project | | Ctrl (Command) +alt (Option) +shift+d| Show Changes |



Recently began a full shift to the development of Android studio, often to check the shortcut keys, simply summary, self-convenient to find

Android Studio shortcut keys use

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.