Android Development Efficiency-eclipse shortcut keys

Source: Internet
Author: User

Many of those who used to develop software in Visual Studio may not be familiar with the Java development environment, and today the Android Development Network tells you some of the eclipse shortcuts that improve the efficiency of Android development, which can help us manage code and reduce keyboard input efficiently. Eclipse uses Java development in relation to Visual Studio, and there is a great lack of responsiveness and stability that we can only tolerate at this time.

The more commonly used Android123 are organized as follows:

Automatically replenish the import package Ctrl+shift+o, where O represents the meaning of organize import.

Formatting code indentation Ctrl+shift+f, in which we can remember the meaning that F is formatted as format.

Quick Find Code ctrl+f, undo to last Ctrl + Z

Intelligent Content-Aware alt+/, this shortcut can easily match the class information we use,/on the keyboard and? is the same button.

Call the Run As dialog box to use CTRL+F11, if you can use F11 directly for debug debug mode.

Generate a plate annotation alt+shift+j, single-line comment for the ctrl+/key


With eclipse development, do not know the shortcut keys can not AH.
Familiarity with shortcut keys can greatly improve efficiency:

Ctrl+m Current Window maximization
Ctrl+f7 View window Toggle
Ctrl+f8 mode switch
Ctrl+f6 edit window Toggle (the finger is too big and unsightly)
Ctrl+e edit window Toggle (This is more elegant??)
alt+← the previous edited page
alt+→ the next edited page
Ctrl+alt+↓ copy (Increase) The current line to the next line
Ctrl+alt+↑ copy (Increase) The current line to the previous row
Alt+↓ the current line and the following line (no need to cut)
Alt+↑ the current line and the previous row interaction position
Ctrl+d Delete When moving forward
Alt+enter displays the properties of the currently selected file
Shift+enter inserts a blank line in the current row (next row)
Shift+ctrl+enter inserts a blank line in the current row (previous row)
Ctrl+q positioning to the last edited place
Ctrl+l positioning in a specific row
ctrl+/Comments The current row (multiple lines), and then uncomment
Ctrl+shift+r Find Files
Ctrl+shift+t Find Class
Ctrl+k the selected word quickly navigates to the next
Ctrl+shift+k the selected word quickly navigates to the previous
Ctrl+shift+u list the results of the query when selected
ctrl+/(numpad) collapses all code in the current class
Ctrl+x (keypad) expands all code in the current class
Ctrl+shift+p to the match for (e.g. {}, ())
Ctrl+shift+x Toggle character case (uppercase)
Ctrl+shift+y Toggle character case (lowercase)
Ctrl+1 jump out of help when a row is wrong or warning
Ctrl+shift+f Format layout
Alt+shift+r rename (easy to change and class name)
Alt+shift+c Modifying a function knot
Alt+shift+m Refactoring Method (select the method to refactor and regenerate into a new method)
Alt+shift+z Reconstruction Recovery
Ctrl+w Close the current window
Ctrl+shift+f4 Close all open windows
Ctrl+shift+o:import related classes, and if the already import class, is not used, it is deleted.
Sysout->ctrl+space->system.out.println ()
Window->reference->workbench->keys interested in can customize hotkeys


Edit
scope function Shortcut keys
Global Find and replace Ctrl+f
Text Editor Find previous Ctrl+shift+k
Text Editor Find Next Ctrl+k
Global Undo Ctrl + Z
Global Replication Ctrl + C
Global Restore Previous selection alt+shift+↓
Global clipping Ctrl+x
Global Quick Fix ctrl1+1
Global Content Assist alt+/
Global all check Ctrl + A
Delete delete globally
Global context information ALT +?
Alt+shift+?
Ctrl+shift+space
Java Editor display tooltip description F2
Java Editor Select encapsulated element alt+shift+↑
The Java editor selects the previous element alt+shift+←
The Java editor selects the next element alt+shift+→
Text Editor incremental find Ctrl+j
Text Editor incremental reverse lookup ctrl+shift+j
Global Paste Ctrl + V
Global Redo Ctrl+y

View
scope function Shortcut keys
Global magnification ctrl+=
Global Shrink ctrl+-

Window
scope function Shortcut keys
Global activation Editor F12
Global Switch Editor Ctrl+shift+w
Global on an editor Ctrl+shift+f6
Globally on a view CTRL+SHIFT+F7
Global on a Perspective view Ctrl+shift+f8
Global Next editor Ctrl+f6
Global Next View Ctrl+f7
Global Next Perspective Ctrl+f8
The text editor displays the ruler context menu Ctrl+w
Global Display View menu CTRL+F10
Global Display System Menu alt+-

Navigation
scope function Shortcut keys
Java Editor Open Structure ctrl+f3
Global Open Type Ctrl+shift+t
Global Open type Hierarchy F4
Global Open claims F3
Global Open External Javadoc shift+f2
Global Open Resource Ctrl+shift+r
Global fallback history alt+←
Global forward History alt+→
Global on a CTRL +,
Global Next Ctrl +.
The Java Editor displays outline Ctrl+o
Global open type Ctrl+shift+h in the hierarchy
Global go to matching parentheses ctrl+shift+p
Global go to previous edit location Ctrl+q
The Java editor goes to the previous member Ctrl+shift+↑
The Java editor goes to the next member Ctrl+shift+↓
Text editor go to line ctrl+l

Search
scope function Shortcut keys
Global presence in file Ctrl+shift+u
Global Open Search dialog box ctrl+h
Claims in the global workspace Ctrl+g
References in the global workspace Ctrl+shift+g

Text editing
scope function Shortcut keys
Text Editor overwrite toggle Insert
Text Editor Roll Line ctrl+↑
The text editor scrolls the line ctrl+↓

File
scope function Shortcut keys
Global Save Ctrl+x
Ctrl+s
Global Print Ctrl+p
Global Shutdown CTRL+F4
Global Save All Ctrl+shift+s
Global all off CTRL+SHIFT+F4
Global Properties Alt+enter
Global New CTRL + N

Project
scope function Shortcut keys
Global All Build Ctrl+b

Source
scope function Shortcut keys
Java Editor Formatting ctrl+shift+f
Java Editor Uncomment ctrl+\
Java Editor Comment ctrl+/
Java Editor Add import ctrl+shift+m
Java Editor Organization import Ctrl+shift+o
The Java Editor uses try/catch blocks to surround the settings, which are too common, so it is recommended to set them up here.
You can also use ctrl+1 to automatically fix it.

Run
scope function Shortcut keys
Global single-Step return F7
Global single-Step skip F6
Global single-step jump into F5
Global single-Step jump selection Ctrl+f5
Global Debug Last started F11
Global Continue F8
Global use filters to step SHIFT+F5
Global Add/Remove breakpoints Ctrl+shift+b
Global Display Ctrl+d
Global Run last boot ctrl+f11
Global Run to row ctrl+r
Global Execution Ctrl+u

Refactoring
scope function Shortcut keys
Global Undo Refactoring Alt+shift+z
Global Extraction Method Alt+shift+m
Global decimation local variable alt+shift+l
Global inline Alt+shift+i
Global Mobile Alt+shift+v
Global Rename Alt+shift+r
Global Redo Alt+shift+y

Android Development Efficiency-eclipse 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.