Http://www.cnblogs.com/fangyukuan/archive/2010/04/05/1704852.html effect is very good
Edit related 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 is a good helper for the user to edit, 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 the "alt+/" shortcut to bring the benefits of it.
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, can quickly add a comment or uncomment the line of the cursor or the selected line, you may always need to annotate something or uncomment it when debugging, and now it's okay to repeat the comments on 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 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"
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, 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"
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 is very uncomfortable, select and press "ctrl+shift+f" shortcut key can format this code, if the code is not selected the default format of the current file (Java file).
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 projects).
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 useful in tracking code, and users may find several associated places, but they may not be able to remember the order in which they are located by these two shortcut keys.
10. "F3"
A class, method, and property that quickly locates 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 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 shortcut keys
Usually the text editor provides some shortcut keys related to editing, which you can also use to edit text 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
There are many shortcuts in eclipse that cannot be enumerated, and users can find out how to use them through the Help document, as well as several common shortcut keys.
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 shortcuts in eclipse, which can be used to find all the shortcuts through the Help document, but it is not possible to master all the shortcuts, and it is not necessary to take the time to familiarize yourself with the shortcut keys listed in this section.
View the list of shortcut keys
Ctrl+shift+l
------------------------------------------------------------------------------
http://blog.csdn.net/inowcome/article/details/6699227
In eclipse it's not easy to find the files you specify in a large number of projects, but Eclipse offers powerful search capabilities.
We can set the search condition by wildcards or regular expressions, here is an example of the operation:
Ctrl+h Open the Search interface
Search results:
Search by text content that a file may contain
Using file search will satisfy most of the features of our search. Using the functionality of this tab, we can provide a file that may contain text content
For a fuzzy query, this process allows you to further control the scope of the search, such as setting up a search for only XML files. Note the need to write *.xml and not just. xml
There are two points to note:
- Containing text: fill in *
- File name patterns: can be filled according to the situation, such as only know the file name, do not know the extension, can be written as: hello.*
This makes it easy to search for the files we need (assuming it exists, of course).
tab Java Search uses
---------------------------------------------------------------
http://www.open-open.com/bbs/view/1320934157953
10 most useful shortcut keys in eclipse
1. Ctrl+shift+r: Open Resource
This is probably the most time-saving combination of all shortcut keys. This set of shortcuts lets you open any file in your workspace, and you only need to press the first few letters of the file name or mask name, such as Applic*.xml. The drawback is that this set of shortcuts is not available in all views.
2. Ctrl+o: Fast Outline
If you want to see the methods of the current class or a particular method, but do not want to pull the code down, and do not want to use the search function, then use Ctrl+o bar. It can list all the methods and properties in the current class, you just enter the method name you want to query, and click Enter to jump directly to where you want to go.
3. Ctrl+e: Quick Convert Editor
This set of shortcut keys will help you navigate between the open editors. Use ctrl+page down or ctrl+page up to browse the tabs before and after, but ctrl+e is more efficient when many files are open.
4. Ctrl+2,l: Assigning a value to a local variable
During development, I often write methods, such as calendar.getinstance (), and then assign the results of a method to a local variable by ctrl+2 shortcut keys. This saves me the input class name, the variable name, and the time the declaration was imported. The ctrl+f effect is similar, but the effect is to assign the result of the method to a field in the class.
5. Alt+shift+r: Renaming
Renaming properties and methods was a hassle a few years ago, requiring a lot of searching and replacing so that the code became fragmented. Today's Java IDE provides source-processing functionality, as is eclipse. Now, the renaming of variables and methods is very simple, and you'll get used to renaming each time a better alternative name appears. To use this feature, move the mouse over the property name or method name, press Alt+shift+r, enter a new name, and then click Enter. This is done. If you rename a property in the class, you can click Alt+shift+r two times, this will call out the Source Processing dialog box, you can implement the get and set method of automatic renaming.
6. Alt+shift+l and Alt+shift+m: Extracting local variables and methods
Source processing also includes the ability to extract variables and methods from chunks of code. For example, to create a constant from a string, select the text and press Alt+shift+l. If the same string appears elsewhere in the same class, it is automatically replaced. The method extraction is also a very convenient function. Breaking up large methods into smaller, well-defined methods can greatly reduce complexity and improve the testability of your code.
7. Shift+enter and Ctrl+shift+enter
Shift+enter creates a blank line below the current line, regardless of whether the cursor is at the end of the row. Ctrl+shift+enter inserts a blank line before the current line.
8. ALT + arrow key
This is also a magic weapon to save time. This combination moves the contents of the current line up or down. In the Try/catch section, this shortcut is especially useful.
9. Ctrl+m
Large display screen can improve productivity is known to everyone. Ctrl+m is the shortcut key for maximizing the editor window.
CTRL +. And Ctrl+1: Next error and quick change
CTRL +. Moves the cursor to the next report fault or warning in the current file. This set of shortcut keys I generally use with ctrl+1, that is, modify the proposed shortcut keys. The new version of Eclipse suggestions are good to help you solve a lot of problems, such as missing parameters in the method, Throw/catch exception, non-executed methods and so on.
More shortcut key combinations can be viewed at Eclipse Press Ctrl+shift+l.
Let's use the frequency to see some of my favorite hotkey combinations. (Note: The following are tested on Eclipse3.02 and one version)
1. control-shift-t: Opens type (open type). If you don't intentionally skiving, forget to open it through the source tree. Using Eclipse to easily open an implementation class for an interface, press CTRL+T to list the implementation class of the interface
2. control-shift-r: Open resources (not just for Java files). tip: Use the yellow two-headed arrow button in the Navigator view to associate your editing window with the navigator. This allows you to open files that correspond to the hierarchy of the Navigator, which makes it easier to organize information. If this affects speed, turn it off.
----------------
Ctrl+l jumps to the number of lines (with the tool in Show view and the code in the mouse point to see the line number)
Ctrl+h Search
CTRL + left mouse button to jump to the defined place
F3 fast to the defined place
========================================================================
http://yuanzhifei89.iteye.com/blog/974082
Eclipse Tuning
In general, when you do not set up eclipse, the use of eclipse will always feel that the boot is slow, good card, in fact, as long as the relevant parameters of eclipse configuration, there will be a great improvement.
Faster start-up speed
1. When eclipse starts, it always searches for the JRE it runs on, often the search process slows eclipse startup. (When not set, wait for the 2-3s to appear the progress bar, after set up directly appears the progress bar)
Just add the-VM parameter to the Eclipse.ini.
Search for resources in Eclipse project (class method, file name, string in file)