Android Studio Development Common shortcut keys

Source: Internet
Author: User

Most common shortcut keys

1.ctrl+e can display a list of recently edited files

2.Shift+click can close the file

3.ctrl+[ or Ctrl +] can jump to the beginning of curly braces

4.Ctrl+shift+backspace can jump to the last edited place

5.ctrl+f12 can display the structure of the current file

6.Ctrl+f7 can query the current element's reference in the current file, and then press F3 to select

7.Ctrl + N to quickly open the class

8.ctrl+shift+n can open files quickly

9.Alt+q can see the declaration of the current method

ctrl+w can select a word followed by a statement followed by a function.

alt+f1 You can position the element you are editing in each panel

ctrl+p can display parameter information

ctrl+shift+insert can select Clipboard contents and insert

Alt+insert can generate constructors/getter/setter, etc.

ctrl+alt+v can introduce variables. For example, to assign a variable to a SQL in parentheses

ctrl+alt+t can put the code inside a block, such as Try/catch

alt+up and Alt+down can be moved quickly between methods

Other:

alt+enter (Enter) import package, automatically fix CTRL + N Lookup class

ctrl+shift+n Find file ctrl+alt+l format code

Ctrl+alt+o optimized imported classes and packages Alt+insert generate code (such as Get,set methods, constructors, etc.)

ctrl+e or alt+shift+c recently changed code ctrl+r Replace text ctrl+f Find text

ctrl+shift+space Auto-complete code ctrl+backspace code hints

Ctrl+alt+space class name or interface name hint ctrl+p method parameter hint

Ctrl+shift+alt+n Find a method or variable in a class Alt+shift+c Compare recently modified code

Shift+f6 Refactoring-renaming ctrl+shift+ first key

ctrl+x Delete Row ctrl+d copy line ctrl+/ or ctrl+shift+/ Comment (//or)

ctrl+j Automatic code ctrl+e recently opened file Ctrl+h show class structure diagram

ctrl+q Show Comment document alt+f1 find code where alt+1 quickly open or hide the project panel

ctrl+alt+Left/ right returns to the location of the last browse ALT + Left/right Toggle Code View

ALT +up /down quick move positioning between methods Ctrl+up/down cursor jumps to the first or last line

The ctrl+shift+up/down code moves up/down. ctrl+b quickly open the class or method at the cursor

F2 or Shift+f2 highlight error or warning quick positioning ctrl+w selected code, continuous press will have other effects

when the code tag is entered, press Tab , generate code.

Select the text, press Ctrl+shift+f7 to highlight all the text, and press ESC to highlight the disappear.

Select the text, press alt+f3 to find the same text one by one, and highlight it.  

Android Studio Development 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.