Use of shortcut keys for MyEclipse

Source: Internet
Author: User
Tags delete key try catch

10 shortcut keys for MyEclipse:
Ctrl + Shift + T: Open type: Displays the Open Type dialog box to open the type in the editor. The Open Type Selection dialog box shows all the types that exist in the workspace, such as classes, interfaces

such as
Ctrl + Shift + R: Open resource: Opens the Open Resource dialog box to open any resource in the workspace. Without having to browse files in the package Explorer, you can quickly open any

File. Using this shortcut, you can open a dialog box and enter the file or wildcard character you want to find.
Ctrl + O: Quick outline: Opens a lightweight outline of the currently selected type. Open a member variable (such as a field, method) directly in a file, especially if there are many similar method names.

This shortcut key will become very useful.
Ctrl + L: Enter number of rows: Go to Line: Opens a dialog box that allows you to enter the line number that the editor should jump to. Applies only to editors. Enter the line number and you can quickly jump to the source file in the

n Rows,
Ctrl + Q: Previous edit position: Displays the location of the previous edit operation, returning to the nearest modified location. Even if you look at different files, you can also use this shortcut to find

The location where you recently modified the file. Especially when the file is larger, it is more useful.
Ctrl + T: Quick type hierarchy: Opens the Lightweight hierarchy viewer for the currently selected type, enabling you to quickly go to a supertype or subtype.
Ctrl + E: Quickly jump to another editor. Note that CTRL + F6 can also implement this function, in the use of the time to pay attention to their similarities and differences.
Ctrl +./ctrl +,: Quickly navigate to an issue in a file (such as errors, warnings, and so on)
Alt +←and Alt +→: Go back and forth to the file you are viewing
F3: Quick to a type declaration. You can also hold down CTRL and click the hyperlink variable or the class or any declarations you want to see.


Eclipse itself is fast, but with MyEclipse, the memory is crazy, and the speed is slow, how to let Eclipse drag MyEclipse crazy? Here is a:
Tip: Cancel automatic validation
validation have a bunch, what XML, JSP, JSF, JS and so on, we do not have to go to the automatic check, but only when the need to check manually, the speed of upgrading a few grades immediately!
Cancellation method: Windows-->perferences-->myeclipse-->validation except manual The following check box is all selected, all other non-competitor verification method:
on the file to be verified , right-click-->myeclipse-->run Validation
Program code automatic layout: ctrl+shift+f, will automatically format the code layout, very convenient
Fast program execution: Ctrl + F11 the first time, it will ask you to execute the mode, set up, and then just press the hotkey, it will be executed quickly.
ctrl+shift+/Add segment Comment/**/
ctrl+shift+\ Remove segment Comment/**/
ctrl+/Add line comment or uncomment line
Auto-Import required categories: Ctrl+shift+m Ctrl+shift+o As if using Ctrl+shift+o can also
important tricks (machine configuration must not don't use, hehe)
in Eclipse, the default is input. Automatically prompt for class members, but sometimes we want it to be automatically prompted when we enter the first letter of the class, saving

A lot of input time (although press ALT +/will appear prompt, but still have to press the button more than once, too troublesome).
From Content Assist-auto-activation, Editor-----preferences, Windows-- Add the first word we need to prompt automatically

such as "Ahiz".
Then we go back to eclipse's development environment and enter "a" and the hint appears.
However, we can find that the input box under this auto-activation can only enter up to 5 letters, perhaps the eclipse developers worry that too much of our input will affect performance, but

The performance of the machine does not need to be white, so we have to break this limit.
In fact, the above are paved, to create a atmosphere, so that we have to do the following things are very cow-like, it is not, everything is very simple. Hey:)
In the "." Enter a few characters in the back, like "Abij", and then go back to the development environment, and choose a place to save your preferences, preferences, general, export, File,

Like C:\A.EPF.
Open A.EPF with any text editor, find the string "Abij", find it later, replace it with "abcdefghijklmnopqrstuvwxyz", in short, what you want to do!! Then back

To import the A.epf file just now, preferences, Eclipse,file, import and export. Now you'll find that you can get an automatic hint for any subtitles you enter. Cool!
Finally: The automatic prompt pop-up time is best to change to 100 milliseconds below, this will be more cool, otherwise you are finished, automatic prompt to bounce out:), but also to see the machine performance.
MyEclipse automatically prompts for background color settings (not so light again)
Window--preference--java--editor-completion proposals Background Color recommended 85,90,205
Eclipse Common shortcut keys
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 key for the user to edit the good helper, can provide users with content assistance, do not worry about the method and the name of the property, when not the whole class, methods and attributes of the name, experience a bit more

The benefits of "alt+/" shortcut keys.
2. "Ctrl+o"
shows an outline of the methods and properties in a class that quickly locates the methods and properties of a class and is useful for finding bugs.
3. "Ctrl+/"
Quickly add comments, you can quickly add a comment or uncomment the line or selected line of the cursor, while debugging may always need to comment on something or uncomment, now well, do not need

Repeat the comments for each line.
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 maximization and restore, when 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.
Viewing and locating shortcut keys
In the program, quickly locate the position of the code, quickly find the location of the bug is very difficult, Eclipse provides a powerful search function, you can use the following shortcut keys to help complete the search

Find the job of positioning.
1. "Ctrl+k", "Ctrl++shift+k"
Find the selection quickly down and up, and you no longer need to click the Find dialog box with your mouse.
2. "Ctrl+shift+t"
Find a Java class file in the search workspace (Workspace) build path, and do not suffer for the class being found, and you can use "*", "? "And so on wildcard characters.
3. "Ctrl+shift+r"
As with "Ctrl+shift+t", find all the files in the workspace (Workspace), including the Java files, or you can use a wildcard character.
4. "Ctrl+shift+g"
Find 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 the cited by the "Ctrl+shift+g" shortcut key

The location with this method.
5. "Ctrl+shift+o"
Quickly generate 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 compulsory lesson for every programmer, when see a piece of code very uncomfortable, select and press "ctrl+shift+f" shortcut key can format this paragraph

Code that formats the current file (Java file) by default if the code is not selected.
7. "Alt+shift+w"
Find the path in the project where the current file is located, and you can quickly locate the location of the browser view, which is useful if you want to find a package that contains a file (especially in larger items

Medium).
8. "Ctrl+l"
Navigates to a row in the current editor and is also valid for non-Java files.
9. "Alt+←", "alt+→"
Backward history and forward history are very useful in tracking code, and users may find several related places, but may not be able to remember the two shortcut keys to locate

The order of the search.
10. "F3"
quickly locates a class, method, and property of the cursor position.
11. "F4"
Displays the inheritance relationship for the class and opens the Class inheritance view.
Debugging shortcut keys
There are several shortcut keys in eclipse that are related to running debugging.
1. "Ctrl+shift+b": Sets a breakpoint on the current line or cancels the setting.
2. "F11": Debug the Last executed program.
3. "Ctrl+f11": Runs the program that was last executed.
4. "F5": In the trace to method, when the program executes to a method, you can press "F5" key to trace to the method.
5. "F6": Stepping through 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 program end.
Common editor Shortcuts
Typically, text editors provide some shortcut keys for editing, and you can also edit text in eclipse with these shortcut keys.
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
There are many shortcut keys in eclipse that you can't enumerate, and you can find out how to use them through the help document, and there are several common shortcut keys below.
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.
There are many shortcut keys in Eclipse, you can find all the shortcuts using the Help document, but it is not possible to master all the shortcuts, and it is not necessary, if you take the time to familiarize yourself with

The shortcut keys listed in this section will
1. Edit->content Assist-> Add alt+/Code Association
2. window, Next Editor, add ctrl+tab switch windows
3. Run/debug Toggle Line Breakpoint-Add Ctrl + ' when debugging and deleting breakpoints
4. source-> Surround with Try/catch Block--ctrl+shift+v add try Catch box
5. ctrl+shift+, Generate Getters and Setters, Source. Add a Get Set method
-----------Useful shortcut keys-----------
alt+/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+1: The cursor stops at a variable, and pressing the CTRL+1 key can provide a quick refactoring scheme. Select several rows and press Ctrl+1 to place the code into a code block for, while, if, do, or try

In
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 quick display of the current Editer drop-down list (in bold if the current page does not appear)
Ctrl+shift+e Display manager that manages all of the currently open view (you can choose to close, activate, and so on)
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+t quickly displays the inheritance structure of the current class
CTRL+SHIFT-T: Opens type (open type). If you don't intentionally skiving, forget to open it through the source tree.
Ctrl+o: Open a small window like outline view in your code
CTRL + Mouse hover: can display the source code of classes and methods
Ctrl+h: Open the Search window
ctrl+/(numpad) collapses all code in the current class
Ctrl+x (keypad) expands all code in the current class
-----------Ctrl+shift Series-----------
Ctrl+shift+f formatting of the current code
Ctrl+shift+x the text that is currently selected is all stale lowercase
Ctrl+shift+y turns the currently selected text to lowercase
Ctrl+shift+o: Importing import quickly
Ctrl+shift+r: Opening resource Open Resource
-----------F shortcut Key series-----------
F3: Open the file that declares the reference
F4: Open type hierarchy
F5: Single-step jumping in
F6: one-step skip
F7: Step Outside
F8: Continue, if there are no breakpoints behind, the program will run out
-----------Line editing with-----------
Ctrl+d: Delete When moving forward
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.)
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)
Ctrl+shift+enter Insert blank line in current line (principle above)
-----------infrequently used-----------
alt+← the previous edited page
alt+→ next Edit page (of course, for the above article)
Ctrl+shift+s: Save All
Ctrl+w Closing the current editer
Ctrl+shift+f4 Close all open editer
CTRL+SHIFT+G: Searching for references in workspace
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)
-----------Don't understand-----------
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 display in Stutes line is not found,

Look for a word, especially useful, this function idea two years ago.
CTRL+SHIFT+J Reverse incremental lookup (same as above, except forward)

Use of shortcut keys for MyEclipse

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.