Javaku shortcut keys

Source: Internet
Author: User
Tags delete key try catch

Eclipse's editing capabilities are powerful, and mastering the Eclipse shortcut key capabilities can greatly improve development efficiency. There are several shortcut keys related to editing in Eclipse. 1. "alt+/" This shortcut for the user to edit the good helper, can provide users with the content of the auxiliary, 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 of "alt+/" shortcut key benefits. 2. "Ctrl+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 when looking for bugs. 3. "ctrl+/" 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. "Ctrl+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. "Ctrl+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 good, try "ctrl+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. "Ctrl+k", "ctrl++shift+k" quickly down and up to find the selected content, it is no longer necessary to use the mouse to click the Find dialog box. 2. The Java class file can be found in the "Ctrl+shift+t" lookup workspace (Workspace) build path, not to find the class, and you can use "*", "? "And so on wildcard characters. 3. "Ctrl+shift+r" and "ctrl+shift+t" correspond to find all files (including Java files) in the workspace (Workspace), or you can use wildcard characters. 4. "Ctrl+shift+g" finds references to classes, methods, and properties. This is a very useful shortcut key, such as to modify the code that refers to a method, you can quickly locate all references to this method by using the "ctrl+shift+g" shortcut key. 5. "Ctrl+shift+o" rapid generation of import, when copying a program from the Internet, do not know how to import into the called class, try "ctrl+shift+o" shortcut keys, there will be surprises. 6. "Ctrl+shift+f" format code, write the code of the format specification is a required lesson for every programmer, when you see a piece of code very uncomfortable, select and press "ctrl+shift+f" shortcut key can format this code, if not selected codeFormat the current file (Java file). 7. "Alt+shift+w" Find the path in the project where the current file is located, you can quickly locate the location of the browser view, if you want to find a file "Play" Java series ————————————————————————————— 2 "More java–android Data download, access to the Silicon Valley (China) official website www.atguigu.com download area in the package, this shortcut key is very useful (especially in larger projects). 8. "Ctrl+l" is positioned to a row 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 the user may have found several associated places, but it may not be clear that these 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. "Ctrl+shift+b": Sets a breakpoint at the current line or cancels the set breakpoint. 2. "F11": Debug the Last executed program. 3. "Ctrl+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. "Ctrl + C": Copy. 2. "Ctrl+x": Cut. 3. "Ctrl + V": Paste. 4. "Ctrl+s": Save the file. 5. "Ctrl + Z": Undo. 6. "Ctrl+y": Repeat. 7. "Ctrl+f": Find. Other shortcut keys in Eclipse there are many shortcut keys that cannot be enumerated, and users can find out how to use them through the Help document, as well as several common shortcut keys as follows. 1. "Ctrl+f6": Switch to the next editor. 2. "Ctrl+shift+f6": Switch to the previous editor. 3. "CTRL+F7": Switch to the next view. 4. "CTRL+SHIFT+F7": Switch to the previous view. 5. "Ctrl+f8": Switch to the next perspective. 6. "Ctrl+shift+f8": Switch to the previous perspective. "Play" Java series ————————————————————————————— 3 "More java–android download, access to the Silicon Valley (China) official website www.atguigu.com Download Area" There are more shortcuts in Eclipse, The use of all shortcuts can be found through the help document, but it is not possible to master the use of all shortcuts, and it is not necessary to take a moment to familiarize yourself with the shortcut keys listed in this section, which will make 1 more effort. Edit->content Assist-> Add alt+/Code Association 2. window, Next Editor, add ctrl+tab switch Windows 3. Run/debug Toggle Line breakpoint, add Ctrl + ' delete breakpoint 4 when debugging. Source-> Surround with Try/catch Block-ctrl+shift+v add try Catch box 5. Source-Generate Getters and Setters-ctrl+shift+. Add the Get Set method-----------useful shortcut keys-----------alt+/Code Assistant to complete some code insertion (but the general and input methods have conflicts, you can modify the input method hotkey, you can also take up alt+/to replace) Ctrl+1: The cursor stops at a variable, press The CTRL+1 key can provide a quick refactoring scheme. Select several rows and press Ctrl+1 to place the code in a block of code such as, while, if, do, or try. Double-click the opening parenthesis (parentheses, brackets, curly braces) to select everything in parentheses. Alt+enter displays the properties of the currently selected resource (project, or file or file)-----------Ctrl series-----------ctrl+k: Hover the cursor over the variable and press Ctrl+k to find the next same variable ctrl+shift+ K: Opposite to Ctrl+k lookup ctrl+e quickly displays the current Editer drop-down list (if the current page is not displayed in bold) Ctrl+shift+e displays the manager that manages all of the currently open View (you can choose to close, activate, and so on) ctrl+q Position to last edited Place ctrl+l positioned in a row (for people with programs over 100 have the Gospel) Ctrl+m maximize the current edit or View (ctrl+/the current line, then uncomment the ctrl+t to quickly display the inheritance structure of the current class Ctrl+shift-t: Open type. If you are not intentionally skiving, or forget to open the way through the source tree (Sourcetree) it. Ctrl+o: Open a small window in your code like outline view Ctrl + Mouse pause: You can display the source code for classes and methods Ctrl+h: Open the Search window ctrl+/(keypad) collapses all codes in the current class ctrl+x (keypad) Expands all code in the current class-----------Ctrl+shift series-----------ctrl+shift+f formatting the current code ctrl+shift+x all the currently selected text into a lowercase "topsy" Java series —————————— ——————————————————— 4 "More java–android download, access to the Silicon Valley (China) official website www.atguigu.com Download Area" Ctrl+shift+y the currently selected text to lowercase ctrl+shift+o: Import Importctrl+shift+r quickly: Open Resource-----------F shortcut series-----------F3: Open the file that declares the reference F4: Open the Type hierarchy F5: Step into F6: Step over F7: Step out of F8: Continue, if there is no breakpoint, the program will run out of-----------line edit with-----------ctrl+d: Delete the current row ctrl+alt+↓ copy the current row to the next row (copy increase) ctrl+alt+↑ Copy the current line to the previous row ( Copy increase) alt+↓ the current line and the next line of interaction (especially useful, you can omit to cut first, then paste) alt+↑ the current line and the previous row interaction position (IBID.) shift+enter insert 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) Ctrl+shift+enter insert a blank line in the current line (same principle as above)-----------infrequently used-----------alt+← the previous edited page alt+→ the next edited page (of course, for the above article) Ctrl+shift+s: Save all Ctrl+w Close the current EDITERCTRL+SHIFT+F4 close all open editerctrl+shift+g: Search in Workspace reference ctrl+shift+p navigate to the match for (for example{}) (the cursor will be in the match, back to front, or vice-versa)-----------Incremental lookup-----------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, then in the Stutes line display did not find, look up a word, particularly useful, this function idea two years ago Ctrl+shift+j reverse incremental lookup (and the same, but from the back forward)

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