Android development efficiency-Eclipse shortcuts

Source: Internet
Author: User

Many users who used Visual Studio to develop software may not be familiar with the Java Development Environment. Today, the android Development Network tells you some eclipse shortcuts to improve Android development efficiency, which can help us manage it efficiently.CodeAnd reduce keyboard input. Compared with Visual Studio, eclipse is developed using Java, which lacks response speed and stability. At present, we can only tolerate this.

Sort out commonly used android123 as follows:

Automatically add import package Ctrl + Shift + O, here o represents the meaning of organize import.

Format the code indent Ctrl + Shift + F. Here we can remember the meaning of F for format formatting.

Quickly search for the code Ctrl + F and undo it to the last Ctrl + z

Intelligent content-aware Alt +/, which can easily match the class information we use,/on the keyboard and? Is the same button.

You can use Ctrl + F11 to call the run as dialog box, and use F11 directly for debug debugging.

Generates a plate comment Alt + Shift + J, and a single row comment is Ctrl + /.

I am using eclipse for development. I don't know the shortcut key.
Familiarity with shortcuts can greatly improve efficiency:

CTRL + M maximize current window
CTRL + F7 window port switch
CTRL + F8 mode switch
CTRL + F6 edit window switch (too big and unsightly fingers)
CTRL + e edit window switch (this is more elegant ??)
Alt + ↓ previous edited page
Alt + → next edited page
CTRL + ALT + ↓ copy (ADD) The current row to the next row
CTRL + ALT + ↓ copy (ADD) The current row to the previous row
Alt + ↓ interaction position between the current row and the following row (no need to cut)
Alt + ↑ the interaction position between the current row and the previous row
CTRL + D Delete the current row
Alt + enter display the properties of the selected file
Shift + enter insert null rows in the current row (next row)
Shift + Ctrl + enter insert blank rows in the current row (previous row)
CTRL + q locate the Last edited location
CTRL + l locate on a specific line
CTRL +/comment out the current row (multiple rows are allowed), and then press it to cancel the comment
CTRL + Shift + R find the file
CTRL + Shift + t find class
CTRL + k select the word to quickly locate to the next
CTRL + Shift + k select the word to quickly locate the previous one
CTRL + Shift + u select and list the query results
CTRL +/(keypad) collapse all code in the current class
CTRL + × (keypad) show all the code in the current class
CTRL + Shift + P locate the matched character (for example {},())
CTRL + Shift + x switch characters in upper case)
CTRL + Shift + Y switch characters in lower case)
CTRL + 1 when an error occurs or a warning occurs, the help is displayed.
CTRL + Shift + F format Layout
Alt + Shift + R Rename (convenient when changing the volume and class name)
Alt + Shift + C modify function completion
Alt + Shift + M reconstruction method (select the method to be reconstructed and generate a new method)
Alt + Shift + z Reconstruction and Recovery
CTRL + W close current window
CTRL + Shift + F4 close all open windows
CTRL + Shift + O: import-related classes. If the imported classes are not used, delete them.
Sysout-> Ctrl + space-> system. Out. println ()
Window-> reference-> workbench-> keys can customize hotkeys if you are interested.

Edit
Shortcut for scope Function
Globally search and replace Ctrl + F
Search for the previous Ctrl + Shift + K in the text editor
Search for the Next Ctrl + K in the text editor
Globally undo Ctrl + z
Global copy Ctrl + c
Select Alt + Shift + continue for global recovery.
Globally cut Ctrl + x
Global quick correction ctrl1 + 1
Global content assist Alt +/
Globally select Ctrl +
Delete globally
Global context information Alt +?
Alt + Shift +?
CTRL + Shift + Space
Java editor display tooltip description F2
Java editor selects the encapsulation element Alt + Shift + Transform
Java editor selects the previous element Alt + Shift + ↓
Select the next element Alt + Shift + →
Text Editor incremental search Ctrl + J
Text Editor incremental reverse lookup Ctrl + Shift + J
Globally paste Ctrl + V
Global redo Ctrl + Y

View
Shortcut for scope Function
Zoom in globally Ctrl + =
CTRL +-

Window
Shortcut for scope Function
Global activation editor F12
Global switch editor Ctrl + Shift + W
Global editor Ctrl + Shift + F6
Global View Ctrl + Shift + F7
Global Perspective Ctrl + Shift + F8
The next global editor Ctrl + F6
Next Global View Ctrl + F7
CTRL + F8
Text Editor display ruler context menu Ctrl + W
Global View menu Ctrl + F10
Global display of System Menu Alt +-

Navigation
Shortcut for scope Function
Open the structure Ctrl + F3 in the Java editor.
Global Open type ctrl + Shift + T
Global Open Type hierarchy F4
Global open declaration F3
Open external javadoc SHIFT + F2 globally
Globally open resource Ctrl + Shift + R
Global rollback history Alt + rollback
Global forward history Alt + →
CTRL +,
CTRL +.
Java editor display outline Ctrl + O
Globally open the type ctrl + Shift + H in the hierarchy
Globally move to matching parentheses Ctrl + Shift + P
Go global to the previous editing location Ctrl + q
Go to the previous Member Ctrl + Shift + ← in the Java editor.
Go to the next member in the Java editor Ctrl + Shift + ←
Text Editor to Ctrl + L

Search
Shortcut for scope Function
Globally displayed in the file Ctrl + Shift + u
Global Search dialog box Ctrl + H
Declare Ctrl + G in the global Workspace
Reference Ctrl + Shift + G in the global Workspace

Text editing
Shortcut for scope Function
Text Editor rewrite switch insert
CTRL + ← on the text editor
CTRL + ←

File
Shortcut for scope Function
Save Ctrl + x globally
CTRL + S
Print Ctrl + P globally
Globally Disable Ctrl + F4
Globally save Ctrl + Shift + S
Globally Disable Ctrl + Shift + F4
Global attribute Alt + enter
Globally create Ctrl + n

Project
Shortcut for scope Function
Global build Ctrl + B

Source code
Shortcut for scope Function
Java editor format Ctrl + Shift + F
Java editor uncomment Ctrl + \
Java editor comment Ctrl +/
Add and import Ctrl + Shift + M to the Java Editor
Java editor organization import Ctrl + Shift + O
The Java editor uses try/catch blocks to enclose unset ones, which is too common. Therefore, we recommend that you set them here.
You can also use Ctrl + 1 for automatic correction.

Run
Shortcut for scope Function
F7 is returned in one global step.
Skip F6 in one global step
Global One-Step Jump to F5
Global One-Step Jump-in and select Ctrl + F5
Global debugging last started F11
Continue F8 globally
Shift + F5 in one step using filters globally
Globally Add/remove breakpoints Ctrl + Shift + B
Global display Ctrl + d
Global run last started Ctrl + F11
Run Ctrl + R globally
Execute Ctrl + u globally

Reconstruction
Shortcut for scope Function
Global undo reconstruction Alt + Shift + z
Global extraction method Alt + Shift + m
Global extraction of local variables Alt + Shift + L
Global inline Alt + Shift + I
Move Alt + Shift + V globally
Globally rename Alt + Shift + R
Global redo Alt + Shift + Y

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.