Summary of shortcut keys in Java _java

Source: Internet
Author: User
Tags comments lowercase

Add the necessary annotations to a good habit that must be possessed by a responsible, morally exemplary front end

Can greatly improve the maintainability of the code, readability.

Java code Comment shortcut key: ctrl+shift+/first familiar with HTML, CSS, JS annotation writing: 1, HTML annotation syntax:

<!--annotation content-->2, CSS annotation syntax

/* Comment Content * *
/*----------Text styles start----------*/3, JavaScript annotations

Comment Content
/* Comment Contents * * Next is a summary of how comments are written in the locations used in these types of code. (according to personal habits may not be the same) 1, HTML comments used in the location: 1 generally used in some of the main node after the end of the tag, such as:

<div class= "wrap" > <div class= "main" > ...</div><!--main end--> <div><!--wrap end-- >2) used at the end of some loops, such as:

<ul class= "List" > <li>111111</li> <li>222222</li> <li>333333</li> </ul ><!--List loop-->

2. CSS annotations are typically used to define the top of a module style, indicating which module the style is acting on, such as:

/* General-comments//comment{...}///photo{...}/* Share//share{...}/* Vote/vote{...} 3. JavaScript annotations generally add annotations to the top of a functional function, describing the function, author, author information, and modification time.

========================================================//Truncate character//STEEPVI//rtx:*******//2010-1 0-14//======================================================== Finally, the annotation is also the character that will have the flow generated. Therefore, when the page is published to the official address, it is best to add a step-by-step optimization process. CTRL +/
CTRL + SHIFT + C
The following is a list of all the shortcut keys in MyEclipse: ctrl+1 quick fix (most classic shortcuts, no more) Ctrl+d: Delete the current row ctrl+alt+↓ copy the current row to the next line (increased replication) ctrl+alt+↑ copy the current row to the previous line (increased replication) Alt+↓ the current line and the following line of interaction (especially practical, you can save the first cut, and then paste) alt+↑ the current row and the previous line of interaction (IBID.) alt+← the last 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 in the current row (at which point the mouse can be either at any position in the current row, not necessarily the last) Shift+ctrl+enter insert a blank row in the current row (principle above) ctrl+q Navigate to the last edited place Ctrl+l positioned on a line (for more than 100 of the program) Ctrl+m maximize the current edit or view (and then vice versa) ctrl+/Comment The current line, and then uncomment the Ctrl+o quick display OutLine ctrl+t Quickly display the inheritance structure of the current class Ctrl+w close the current Editer ctrl+k refer to the selected word quickly navigate to the next ctrl+e quickly display the Drop-down list for the current editer (if the current page does not appear in bold) ctrl+/(keypad) Collapses all code in the current class ctrl+x (keypad) expands all code in the current class Ctrl+space

Code Assistant completes some code inserts (but general and the input method has the conflict, may modify the input method The hot key, also may take up alt+/to replace) ctrl+shift+e Display manages the manager of all currently open view (can choose to turn off, activate, etc.) Ctrl+j forward Incremental lookup ( When you press CTRL+J, each letter editor you enter provides a quick match to locate a word, and if not, it is not found in Stutes line, and when you look up a word, it is particularly practical, this function idea was available two years ago) Ctrl+shift+j Reverse Incremental lookup ( Same as the previous one, except to look forward from the back. Ctrl+shift+f4 closes all open Editer ctrl+shift+x the currently selected text all sour lowercase ctrl+shift+y changes the currently selected text to lowercase ctrl+shift+f Format the current code ctrl+shift+p navigate to the matching character (for example, {}) (when positioned from the front, the cursor is in the match, back to the front, and vice versa)


The following shortcuts are commonly used in refactoring, I like and commonly used to tidy up (note: General refactoring shortcuts are alt+shift the beginning of the) alt+shift+r rename (is my own favorite use of a, especially the variables and classes of the rename, Save a lot of labor than manual method (this is one of the most commonly used methods in refactoring, especially for a large pile of mud code) alt+shift+c Modify the function structure (more practical, there are n functions called this method, modify a fix) ALT + Shift+l extract Local variables (you can simply extract some magic numbers and strings into a variable, especially when multiple calls) alt+shift+f change the locals variable in class to a field variable (a more practical function) Alt+shift+i the merge variable ( That might be a little inappropriate. inline) alt+shift+v move functions and variables (not commonly used) Alt+shift+z the reconstructed Regret medicine (Undo)


Edit scope feature shortcut key global find and replace ctrl+f text editor find the previous Ctrl+shift+k text editor find next ctrl+k global undo Ctrl+z Global Replicate Ctrl + C + + global restore previous selection alt+shift+↓ Global shear CTRL+X Global Fast correction ctrl1+1 Global content assist alt+/Global Delete Ctrl + a global deletion of delete global context information ALT +? Alt+shift+? Ctrl+shift+space Java Editor Display tooltip description F2 Java Editor Select encapsulation element Alt+shift+↑java Editor Select the previous element Alt+shift+←java editor Select the next element alt+shift+→ text Editor Incremental Lookup ctrl+j Text Editor Incremental reverse lookup ctrl+shift+j Global Paste Ctrl + V global Redo Ctrl+y
View the scope feature shortcut key global zoom ctrl+= Global Shrink ctrl+-


Window scope feature shortcut key Global Activation Editor F12 Global Toggle Editor Ctrl+shift+w Global Previous editor Ctrl+shift+f6 Global previous View CTRL+SHIFT+F7 Global previous perspective Ctrl+shift+f8 Global Next editor Ctrl+f6 Global next View Ctrl+f7 Global Next Perspective ctrl+f8 Text Editor display ruler context menu Ctrl+w Global Display View menu CTRL+F10 Global Display System menu alt+-


Navigation scope function Shortcut key Java Editor Open struct CTRL+F3 global open type Ctrl+shift+t global open types Hierarchy F4 Global open Declaration F3 Global Open External Javadoc shift+f2 Global Open Resource Ctrl+shi Ft+r Global fallback History alt+← Global forward history alt+→ a CTRL + on the global next Ctrl +. The Java editor shows the outline Ctrl+o global to open a type in a hierarchy ctrl+shift+h global to matching parentheses ctrl+shift+p Global to previous edit location Ctrl+q Java Editor go to previous member Ctrl+shift+↑ja VA editor go to next member ctrl+shift+↓ text editor go to row ctrl+l


Search scope feature shortcuts globally appear in a file ctrl+shift+u the Global Open Search dialog box ctrl+h a declaration in a global workspace ctrl+g a reference in a global workspace ctrl+shift+g
Text editing scope function shortcut key text Editor overwrite toggle Insert Text Editor Roll line ctrl+↑ Text Editor Roll ctrl+↓


File scope function shortcut key global save ctrl+x ctrl+s Global print ctrl+p global shutdown CTRL+F4 Global all save Ctrl+shift+s Global all CTRL+SHIFT+F4 Global Properties Alt+enter Global New CTRL + N
Project scope function shortcut key global all build Ctrl+b


Source scope feature shortcut keys Java Editor format ctrl+shift+f Java editor Uncomment ctrl+\ Java editor Comment ctrl+/Java Editor add import ctrl+shift+m Java Editor Organization guide The Ctrl+shift+o Java Editor uses try/catch blocks to surround settings that are too common, so list here and recommend yourself. You can also use ctrl+1 automatic correction.
Run Scope feature shortcut global step back F7 global Stepping F6 Global Stepping F5 Global step Jump Select Ctrl+f5 Global Debug last started F11 global continue F8 Global use filter step SHIFT+F5 Global Add/Remove Breakpoints Ctrl+shift+b Global Display Ctrl+d global run last started CTRL+F11 global run to row ctrl+r Global execution ctrl+u
Refactoring scope function shortcut key global undo Refactoring Alt+shift+z Global Extraction method ALT+SHIFT+M Global extract Local variables alt+shift+l global inline alt+shift+i Global move alt+shift+v Global rename alt+shift+r global redo Alt+shift+y

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.