Eclipse shortcut keys

Source: Internet
Author: User
Tags delete key

"Ct rl+t" Search implementation Class 1 for the current interface. "Alt +/" this shortcut for the user to edit a good helper, to provide users with the content of the assistant, do not worry about the method and the name of the property, when not the whole class, methods and attributes of the name, more experience the "ALT +/" shortcut to bring the benefits of it. 2. "Ct rl+o" shows an outline of the methods and properties in a class that can quickly locate the methods and properties of a class and is useful for finding bugs. 3. "Ct rl+/" quickly add comments, can be the cursor row or selected lines quickly add comments or uncomment, when debugging may always need to comment on some things or uncomment, now well, do not need to repeat each line of comments. 4. "Ct rl+d" delete the current line, which is also the author's favorite one, do not have to delete a row and press so many times the delete key. 5. "CT rl+m" window to maximize and restore, the user in the window to operate, always feel that the current window is small (especially when writing code), now well, try "Ct rl+m" shortcut keys. View and locate shortcut keys in the program, quickly locate the location of the code, quickly find the place where the bug is very difficult, Eclipse provides a powerful search function, you can use the following shortcut keys to help complete the job of locating. 1. "Ct rl+k", "CT rl++shift +k" quick down and up to find the selected content, no longer need to use the mouse to click the Find dialog box. 2. The "Ct rl+shift +t" Find Workspace (Workspace) in the build path can find Java class files, not to find the class and pain, and you can use "*", "?" "And so on wildcard characters. 3. "CT rl+shift +r" Find the file "CT rl+shift +t" Find the class, find all the files in the workspace (Workspace) (including Java files), or use wildcard characters. 4. "Ct rl+shift +g" finds references to classes, methods, and properties. This is a very useful shortcut key, for example, to modify the code that refers to a method, you can quickly locate all references to this method through the "Ct rl+shift +g" shortcut key. 5. "CT rl+shift +o" rapid generation of import, when copying a program from the Internet, do not know how to import into the called class, try "ct rl+shift +o" shortcut keys, there will be surprises. 6. "CT rl+shift +f" format code, write the code of the format specification is a compulsory lesson for every programmer, when you see a piece of code is very uncomfortable, select and press "CT rl+shift +f" shortcut key can format this code, if the code is not selected by defaultFormats the current file (Java file). 7. "ALT +shift +w" finds the path in the project where the current file is located, quickly locates the location of the browser view, which is useful if you want to find a package that contains a file (especially in larger projects). 8. "Ct Rl+l" is positioned to a line in the current editor and is also valid for non-Java files. 9. "Alt +←", "Alt +→" back history and forward history are very useful in tracking code, and users may find several related places, but they may not be able to remember that the two shortcuts can be used to locate the order of lookups. 10. "F3" quickly locates a class, method, and property of the cursor position. 11. "F4" displays the inheritance relationship of the class and opens the Class inheritance view. debugging shortcut keys in Eclipse, there are some shortcuts related to running debugging. 1. "Ct rl+shift +b": Sets a breakpoint at the current line or cancels the set breakpoint. 2. "F11": Debug the Last executed program. 3. "Ct rl+f11": Run the last executed program. 4. "F5": Trace into the method, when the program executes to a method, you can press the "F5" key to trace to the method. 5. "F6": Step Into the program. 6. "F7": Executes the method, returning to the next statement that called this method. 7. "F8": Continue execution to the next breakpoint or end of the program. Common editor shortcuts often the text editor provides some shortcut keys for editing, as well as text editing in Eclipse. 1. "Ct rl+c": Copy. 2. "Ct rl+x": Cut. 3. "Ct rl+v": Paste. 4. "Ct Rl+s": Save the file. 5. "Ct rl+z": withdrawn. 6. "Ct rl+y": Repeat. 7. "Ct rl+f": Find. Other shortcut keys in Eclipse, there are many shortcut keys that cannot be enumerated, and can be found using the help documents, as well as several commonly used shortcut keys. 1. "Ct Rl+f6": Switch to the next editor. 2. "Ct rl+shift +f6": Switch to the previous editor. 3. "Ct rl+f7": Switch to the next view. 4. "Ct rl+shift +f7": Switch to the previous view. 5. "Ct Rl+f8": Switch to the next perspective. 6. "Ct rl+shift +f8": Switch to the previous perspective. Line Comment/Pin comment ct rl+/block comment/Pin comment ct rl+sh ift +/CT rl+sh ift +\ find Find replace CT Rl+h CT rl+f Find related information ct RL + SHIFT + T finds the corresponding class by class name, including in that package, as well as hints. Find the next/back CT Rl+k ct rl+sh ift +k jump to a line ct rl+l, ha used to edit plus, from time to moment will knock down CT rl+g, find the current element of the Declaration of CT rl+g or CT RL plus the left mouse button to find all the reference ct of the current element Rl+sh ift +g Reorganize import Ct rl+sh ift +o, can help you remove all unused import declarations at once! Go back to the point of the last view CT rl+q look at the source is very useful to copy a code CT Rl+alt + Rapid Correction ct rl+1 introduction of a Class (interface) CT RL + sh IFT + M Add header Note sh ift + Alt + j Ct RL + SH If T + G: View reference CT RL + sh IFT + N: Rename ct RL + sh IFT + O: Import class CT RL + sh IFT + R: Start last Run CT RL + sh IFT + F: Formatted code CT RL + C: copy C T RL + V: Paste CT RL + x: Cut CT RL + A: Select CT RL + f: Find CT RL + z: Undo ct rl + y: Redo ct RL + S: Save-------------------------------- -------------------------------use the most should be the CT rl+sh IFT +s also has the format to use also quite many. ---------------------------------------------------------------CT RL + sh IFT + F format code CT RL + SH IFT + O organization import F3 open claim A Lt + sh ift + R rename variable---------------------------------------------------------------up------------------------------ ---------------------------------Alt +/---------------------------------------------------------------ALT + Left ALT + Righ T CT RL + q------------------------------------------------------- --------CT RL + sh IFT + G: View reference CT RL + sh IFT + N: Rename ct RL + sh IFT + F: Formatted code CT RL + c: Copy ct RL + V: Paste CT RL + A: Full selection ct RL + F: Find CT RL + z: Undo CT RL + S: Save Alt +/Smart tip---------------------------------------------------------------CT RL + SH IFT + G: View reference CT RL + sh IFT + N: Rename ct RL + sh IFT + O: Import class CT RL + sh IFT + R: Start last Run CT RL + sh IFT + F: Formatted code CT RL + C : Copy CT RL + V: Paste CT RL + x: Cut CT RL + A: Select CT RL + f: Find CT RL + z: Undo ct rl + y: Redo ct RL + S: Save Alt +/Smart Hint F3 open declaration ALT + SH ift + R rename variable in fact the most commonly used is the following: CT RL + sh IFT + O: Import class CT RL + sh IFT + F: Formatted code CT RL + c: Copy ct RL + V: Paste CT RL + x: Shear CT R L + z: Undo CT RL + S: Save ALT +/smart tip---------------------------------------------------------------CT rl+m: Workspace maximized/Minimized Alt +/: Smart tip F3: View declaration Crt l+1: Fix error sh ift +alt +t: Refactor sh ift +alt +m: Extract function sh ift +alt +r: rename sh ift +alt +c: Change function Mark Ct RL +sh It f+f: Formatting code---------------------------------------------------------------CT RL + sh IFT + O: Import class at L +/: Hint CT RL + sh IFT + t: Find related information-- -------------------------------------------------------------Eclipse Accelerator Guide editing scopes feature shortcuts global find and replace CT rl+f text editor Find previous CT Rl+sh ift +k Text editor Find Next CT rl+k global undo CT rl+z Global Replication CT rl+c Global Restore previous selection Alt +sh ift +↓ Global Shear CT rl+x Global Fast correction CT rl1+1 Global Tolerance Auxiliary ALT +/global all checked Ct rl+a Global Delete delet e Global context information ALT +? Alt +sh IFT +? Ct Rl+sh IFT +space Java Editor display tooltip description F2 Java Editor Select encapsulate element alt +sh IFT +↑java Editor Select previous element alt +sh IFT +←java Editor Select next element ALT + Sh ift +→ Text Editor incremental find CT rl+j Text Editor Incremental reverse lookup ct rl+sh ift +j Global Paste CT rl+v global Redo CT rl+y View scope function shortcut Global Amplification CT rl+= Global Reduction ct rl+-Window scope function shortcut Global Activation Editor F12 global Toggle Editor CT rl+sh IFT +w Global on one editor CT rl+sh IFT +f6 Global Previous View CT rl+sh IFT +f7 Global previous perspective C T rl+sh IFT +f8 Global Next editor CT RL+F6 global next View CT RL+F7 Global Next Perspective CT rl+f8 Text Editor display ruler context Menu ct rl+w Global Display View menu CT RL+F10 Global Display system Menu Alt +-Navigation scope function Shortcut Java Editor Open structure CT rl+f3 global open type CT rl+sh ift +t GlobalOpen type Hierarchy F4 global open Declaration F3 Global Open External Javadoc Sh IFT +F2 Global Open Resource CT rl+sh ift +r global back History alt +← Global forward history alt +→ Global previous CT rl+, Global Next Ct rl+. Java Editor Display outline CT rl+o Global in hierarchy Open type CT rl+sh ift +h Global go to matching parentheses CT rl+sh ift +p Global go to previous edit position CT rl+q Java Editor go to previous member CT Rl+s H IFT +↑java Editor go to next member CT rl+sh ift +↓ text editor go to Line CT Rl+l search scope function shortcut key global presence in file CT rl+sh ift +u Global Open Search dialog box CT rl+h global work Declarations in the work area CT rl+g Global Workspace Reference ct rl+sh ift +g Text Editing scope feature shortcut text Editor overwrite toggle Insert Text editor Roll Line CT rl+↑ Text editor Scroll line CT rl+↓ file scope function Shortcut keys Global Save CT rl+x CT rl+s Global Print CT rl+p global off CT rl+f4 global all save CT rl+sh ift +s Global all off CT rl+sh ift +f4 Global Properties Alt +ent ER Global New CT Rl+n project scope function shortcut key global all build CT rl+b Source code scope function shortcut key Java Editor formatted CT rl+sh ift +f java Editor Uncomment CT rl+ Java Editor Note CT R l+/Java Editor Add import CT rl+sh ift +m Java Editor Organization Import CT rl+sh IFT +o Java editor use T Ry/cat CH block to surround not set, too common, so listed here, recommend yourself set. The CT rl+1 can also be used for automatic correction. Run scope function Shortcut Global step back F7 Global single-step skip F6 Global single-Step jump F5 Global single-step jump Select Ct rl+f5 global Debug last start F11 Global continue F8 Global use filter step Sh IFT +F5 Global Add/RemoveBreakpoint CT rl+sh IFT +b Global Display CT rl+d global run last start CT rl+f11 global run to Row CT rl+r Global perform CT rl+u refactoring scope function shortcut Global undo refactoring Alt +sh IFT +z Global Extraction method Alt +sh IFT +m global Pull local variable alt +sh IFT +l global inline alt +sh IFT +i global move alt +sh IFT +v global rename alt +sh IFT +r global Redo Alt +s H IFT +y

Eclipse shortcut keys

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.