Read this article, Java programming speed I was shocked

Source: Internet
Author: User

Memorize in heart, play all over the world, (start to pretend)

Save Ctrl+s (this doesn't have to be explained!!!!) )
Comment Code ctrl+/
Uncomment ctrl+/
code-assisted alt+/
Quick Fix ctrl+1
Code Formatting ctrl+shift+f
Organize import ctrl+shift+o
Toggle Window Ctrl+f6 < can be changed to Ctrl+tab convenient >
ctrl+shift+m Importing unreferenced packages
ctrl+w closing a single window
F3 jump to the declaration of a class, variable
F11 running the last program
Ctrl + F11 debugging the last program
Alt + back to next edit point
ctrl+shift+t Finding classes in a project

The most classic shortcut keys

ctrl+1 Quick Fix (the most classic shortcuts, you don't have to say more)

ctrl+d: Delete the current row

ctrl+alt+↓ Copy the current row to the next row (replication incremented)

ctrl+alt+↑ Copy the current line to the previous row (replication incremented)

alt+↓ the current line and the next line of interaction (especially useful, can be omitted first cut, then pasted)

alt+↑ the current line and the upper row interaction position (IBID.)

alt+← the previous edited page

alt+→ Next Edit page (of course, for the above article)

Alt+enter Displays the properties of the currently selected resource (project, or file or file)

Shift+enter Inserts a blank row on the next line of the current row (at which point the mouse can be at any position in the current row, not necessarily the last)

shift+ctrl+enter Insert blank line in current line (principle above)

ctrl+q positioning to the last edited place

ctrl+l positioning in a row (for people with programs over 100 have the gospel)

ctrl+m maximize the current edit or view (and vice versa)

ctrl+/comment on the current line, and then uncomment it

ctrl+o Quick Display OutLine

Ctrl+t quickly displays the inheritance structure of the current class

ctrl+w Closing the current editer

Ctrl+k The selected word quickly navigates to the next

Ctrl+e Quick display of the current Editer drop-down list (in bold if the current page does not appear)

ctrl+/(numpad) collapses all code in the current class

ctrl+x (keypad) expands all code in the current class

Ctrl+space Code Helper to complete some code insertion (but general and input method conflict, you can modify the input method hotkey, you can also take up

alt+/to replace)

ctrl+shift+e Display Manager that manages all of the currently open view (you can choose to close, activate, and so on)

Ctrl+j forward Incremental lookup (after pressing CTRL+J, each letter editor you enter provides a quick match to navigate to a word, if not

there, then in the Stutes line display did not find, check a word, especially practical, this function idea two years ago.

Ctrl+shift+j Reverse Incremental lookup (same as above, except forward)

Ctrl+shift+f4 Close all open editer

Ctrl+shift+x turns the currently selected text to lowercase

Ctrl+shift+y turns the currently selected text to lowercase

ctrl+shift+f formatting of the current code

Ctrl+shift+p is positioned to the match (for example {}) (after the cursor is positioned behind the match and back to the front, the counter


The following shortcut keys are commonly used in refactoring, I like and commonly used to tidy up (note: General refactoring of the shortcut keys are alt+shift

the beginning of the)

alt+shift+r Rename (it's my favorite one, especially the variable and class rename, which can save a lot of labor than the manual method .)


Alt+shift+m Extraction Method (This is one of the most common methods of refactoring, especially useful for a whole bunch of mud codes)

Alt+shift+c Modify the function structure (more practical, there are n functions called this method, modified once done)

alt+shift+l Extract Local variables (you can directly extract some magical numbers and strings into a variable, especially when multiple calls are made)

alt+shift+f Change the local variable in class to a field variable (more useful function)

alt+shift+i Merge variables (this may be a bit inappropriate inline)

alt+shift+v moving functions and variables (not commonly used)

alt+shift+z reconstruction of Regret medicine (Undo)

ALT + LEFT ARROW, RIGHT arrow to toggle tab in edit window
ALT + up and down arrows to automatically select the row of your mouse and move it up and down
Ctrl+f6 can pop up the menu, which lists the editing windows that can be toggled, so that you can not use the mouse

ctrl+f7 can switch between views, such as Edit view, output view, drawing view
Ctrl+f8 can be toggled in different viewing views, that is, in Java view, Debug view, etc.

Ctrl+m can toggle between maximizing the current window and restoring the current window
ctrl+e Popup Input window, you can enter the code window you want to edit, and the Ctrl+f6

can be the same, but one is the choice of the way, one is the input way, the switch window
Ctrl+t can directly display the class diagram of the contents of the cursor, can be entered directly, and jump into the input

Tolerance Section
hold down the CTRL key, then point to the variable name, the method name, and the class name to jump quickly in the source code
Ctrl + F11 Quick Execute program
ctrl+shift+f Program code automatic typesetting
Ctrl+shift+o automatically joins the reference. Description: Suppose we do not import any category when we are in the process of

Preface: Resourceattirbute ra =new resourceattribute (); Eclipse will prompt that there are no reference categories,

as long as we press CTRL+SHIFT+O, it will automatically help us import this category. Very convenient
ctrl+/notes the selected block: It is convenient to debug.
Alt +/is the most common code you should use to help
Ctrl+h Search, open the Search dialog box
ctrl+shift+space parameter hint, if in the method body at this time, will appear the method parameter hint, the current cursor is located

position parameters are shown in bold

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 +?
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

scope function shortcut keys
Global magnification ctrl+=
Global Shrink ctrl+-

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+-

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

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+↓

scope function shortcut keys
Global Save Ctrl+x
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

scope function shortcut keys
Global All Build ctrl+b

Source Code
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.

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

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

If you have help, please pay attention!

Read this article, Java programming speed I was shocked

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: 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.