In the Java development environment, the use and usage of shortcut keys

Source: Internet
Author: User

(1) Ctrl+m the size of the switch window

(2) Ctrl+q jumps to the last edit

(3) F2 when the mouse is placed on a marker when the ToolTip is pressed F2 then the mouse is removed when the ToolTip will also display the show ToolTip Description. F3 jumps to the place of declaration or definition. F5 One-step debugging into the inside of the function. F6 single-Step debugging does not enter the function inside, if installed PowerWord 200 to the "Take off" shortcut keys to change to other. The F7 is returned from inside the function to the call point. F8 continues to the next breakpoint.

(4) ctrl+pg~ for XML files is the Toggle Code and Diagram window

(5) Ctrl+alt+i see information about variables in Java files

(6) Ctrl+pgup for the Code window is open "show List" drop-down box, in this drop-down box shows the most recently opened files

(7) ctrl+/is this//~ comment in the Code window. ctrl+shift+/is this/*~*/comment in the Code window, which is the <!--~--> in the JSP file window.

(8) Alt+shift+o (or click the Toggle Mark Occurrences button in the toolbar) when you click on a marker to make this marker yellow on the other side of the page, and the right border of the window will appear white squares, click this block will jump to this mark.

(9) Right-click on the left border of the window, where the breakpoint is added, select Show line numbers to add lines.

(ctrl+i) Formats the active element in format active Elements. Ctrl+shift+f formatted file format document.

(one) Ctrl+s save the current file. Ctrl+shift+s Save all unsaved files.

CTRL+SHIFT+M (placing the cursor on the class name of the package to be imported) acts as an add import statement. The Ctrl+shift+o effect is that the missing import statement is added and the extra import statement is deleted.

Ctrl+space prompt to type content Assist, this time to the input method Chinese (Simplified) Ime-ime/nonlme Toggle shortcut keys (for switching English and other text) to other changes such as 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 the Regret Medicine (Undo) into the ctrl+shift+z, while in the "Text Service and Input Languages" dialog box, the other Chinese input method under Chinese (PRC) only preserves the violet input,

Press CTRL+SHIFT+Z to switch between English and Violet Chinese at this time. The Ctrl+shift+space prompt message is the context information.

Ctrl+d Delete the current line.
(15) Double-click the left border of the window to add a breakpoint.
(16) Right-click "Campare with" or "Replace with" in. Jap. Or. java files to find the history of all operations.
(17) Select Window-show View-navigator in the menu to bring up the navigation function window. Ctrl+1 Quick Fix (the most classic shortcut key, don't say more) ctrl+alt+↑ copy the current line to the previous row (copy incremented)
Alt+↓ the current line and the following line of interaction (especially useful, you can save the first cut, then paste) alt+↑ the current line and the previous row interaction position (IBID.) alt+← previous edited page
alt+→ the next edited 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 inserts a blank line in the current line (same principle as above) ctrl+q to the last edit location

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 close the current editer

Ctrl+k the selected word quickly navigates to the next

Ctrl+e quickly displays the current Editer drop-down list (if the current page is not displayed in bold) ctrl+/(keypad) collapses all code in the current class ctrl+x (keypad) expands all code in the current class

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

CTRL+SHIFT+E Displays the 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, and if not, the Stutes Line shows no find, check a word, especially useful, 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 the currently selected text all stale lowercase ctrl+shift+y Turns the currently selected text all lowercase ctrl+shift+f formatting the current code

Ctrl+shift+p position to the match (for example {}) (after locating from the front, the cursor is in the match, back to front, or vice versa)

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 beginning of the)

Alt+shift+r rename (is my own favorite, especially the variables and classes of rename, than the manual method can save a lot of labor)

In the Java development environment, the use and usage of 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.