Android Studio shortcut key Daquan and Eclipse control

Source: Internet
Author: User
Tags try catch

Ctrl + Space Code hints ( with Eclipse in alt+/ )
Find files within the Ctrl+shjft+n project (Ctrl+shift+r with Eclipse)

Doubleshift Global Lookups
CTRL+F12 showing the structure of the current file (ctrl+0 with Eclipse)
ctrl+alt+lFormatting                                (withEclipseinctrl+shift+f)
Ctrl+alt+ooptimizing the imported packages                 (withEclipseinctrl+shift+o)
Ctrl+qView Documents                           (withEclipseinF2)
ALT+F7 Search is tuned (works) (with Eclipse Ctrl+shift + G)

Ctrl+f7 Search to be transferred (current file)

CTRL+ALT+F7 Search for transferred (project) suspended window display results
Alt+insertGenerate Code                          (withEclipseinalt+shift+s) (Getset)
Alt+enterQuick Fix                           (withEclipseinF1)

ctrl+alt+t Package the code together ( alt+shift+z with Eclipse ) ( add try Catch if, while,for,runnable, etc. )

Ctrl+alt+m Extraction method (same as alt+shift+m in Eclipse)

alt+shift+ Move up the code up (with eclipse ALT + up)

alt+shift+ Move Down the code down (with eclipse ALT + down)

Ctrl + Shift + U uppercase and lowercase conversions ( with Eclipse in ctrl+shift+x/y)

Ctrl+alt+v quickly generate local variables ( with Eclipse in ctrl+2 plus L)

Ctrl+alt+c Quick Build Constants

ctrl+alt+f Quick Build member variable ( ctrl+1 with Eclipse in field)

Shift+f6 Renaming

. Cast forcing type conversion shortcut keys such as: Input Findviewbyid (r.id.iv_drag). Cast generates ()Findviewbyid (R.id.iv_drag)

. var generate variable shortcut keys such as: Input Findviewbyid (R.id.iv_drag). var generates view view = Findviewbyid (R.id.iv_drag);

ctrl+/ single-line comment, counter-comment and press once

ctrl+shift+/ Module Comment, counter-comment and press once

Ctrl + left/right Quick Move ( do not check the code )

Ctrl + shift+left/right Quick Move ( Check code )

Ctrl + O Quick Overwrite Method

ctrl+shift+ Enter automatically completes the current line (the end of the line plus; and places the cursor at the end of the line)

ctrl+shift+ space legend and automatically completes the forward

Ctrl+j Template Code Hints Pending: Switch template code not found

Ctrl+p Method Parameter Hints

Ctrl+alt+i Quick look at the source of the class

Ctrl+w expansion of the selected range at the first level

ctrl+[or] jumps to the beginning or end of curly braces
Alt+↑ or ↓ move between methods

Ctrl + F Find

ctrl+shift+f Advanced Find

Ctrl + R Find + Replace

Ctrl+shift+r Advanced Find + Replace

F2 quickly navigate to a file error or warning location

Ctrl+shift+backspace jump to the last modified place

ctrl+shift+← back

ctrl+shift+→ forward

Ctrl+x cut as you move forward
Ctrl+y Delete When moving forward
Ctrl+d copying when moving forward

Ctrl+e Show recently opened files

Ctrl+shift+e display of recently modified files

Ctrl+alt+s opening the Settings interface

Ctrl+alt+shift+s Open the Project structure interface

CTRL+F9 Compilation Project

SHIFT+F9 Debug Run (Debug)

SHIFT+F10 Running (run)

ALT+SHIFT+F9 Debug Project (manually select project)

ALT+SHIFT+F10 Run Project (manually select project)

Ctrl+shift+k push file to server (git)

CTRL + N Quick Find class name, file

Ctrl+tab Open the Interface Toggle window, hold down the CTRL key and select the appropriate window to open.

alt+← or → toggle open files View

Alt+1 Switch Project View

ALT+7 Switch Structure view
Ctrl+_f4 Close the current window

Plug - ins:

  1. Android Layout ID Converter automatically generated by XML file all Findviewbyid 1.4 versions with ID control are not available in Astudio1.3
  2. Android ToolBox Plugin Build Viewholder 1.1.4 version is not available in Astudio1.3
  3. Androidpostfix completion "". Toast generation Toast.maketext "". Log Generation LOG.D (_)
  4. Gsonformat JSON string one-key generation JavaBean


Red text for common, blue background for Add or modify, yellow background to be resolved

Android Studio shortcut key Daquan and Eclipse control

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.