Netman168 original from csdn
Edit
Shortcut for scope Function
Globally search and replace Ctrl + F
Search for the previous Ctrl + Shift + K in the text editor
Search for the Next Ctrl + K in the text editor
Globally undo Ctrl + z
Global copy Ctrl + c
Select Alt + Shift + continue for global recovery.
Globally cut Ctrl + x
Global quick correction ctrl1 + 1
Global content assist Alt +/
Globally select Ctrl +
Delete globally
Global context information Alt +?
Alt + Shift +?
CTRL + Shift + Space
Java editor display tooltip description F2
Java editor selects the encapsulation element Alt + Shift + Transform
Java editor selects the previous element Alt + Shift + ↓
Select the next element Alt + Shift + →
Text Editor incremental search Ctrl + J
Text Editor incremental reverse lookup Ctrl + Shift + J
Globally paste Ctrl + V
Global redo Ctrl + Y
View
Shortcut for scope Function
Zoom in globally Ctrl + =
CTRL +-
window
shortcut for scope function
global activation editor F12
global switch editor Ctrl + Shift + W
Ctrl + Shift + F6
Ctrl + Shift + F7 on the Global View
Ctrl + Shift + F8 on the global perspective
Ctrl + F6 on the global Editor
CTRL on the global next view + F7
next global perspective Ctrl + F8
display the ruler context menu in the text editor Ctrl + W
global display View menu Ctrl + F10
global Display System Menu alt +-
Navigation
Shortcut for scope Function
Open the structure Ctrl + F3 in the Java editor.
Global Open type ctrl + Shift + T
Global Open Type hierarchy F4
Global open declaration F3
Open external javadoc SHIFT + F2 globally
Globally open resource Ctrl + Shift + R
Global rollback history Alt + rollback
Global forward history Alt + →
CTRL +,
CTRL +.
Java editor display outline Ctrl + O
Globally open the type ctrl + Shift + H in the hierarchy
Globally move to matching parentheses Ctrl + Shift + P
Go global to the previous editing location Ctrl + q
Go to the previous Member Ctrl + Shift + ← in the Java editor.
Go to the next member in the Java editor Ctrl + Shift + ←
Text Editor to Ctrl + L
Search
Shortcut for scope Function
Globally displayed in the file Ctrl + Shift + u
Global Search dialog box Ctrl + H
Declare Ctrl + G in the global Workspace
Reference Ctrl + Shift + G in the global Workspace
Text editing
Shortcut for scope Function
Text Editor rewrite switch insert
CTRL + ← on the text editor
CTRL + ←
File
Shortcut for scope Function
Save Ctrl + x globally
CTRL + S
Print Ctrl + P globally
Globally Disable Ctrl + F4
Globally save Ctrl + Shift + S
Globally Disable Ctrl + Shift + F4
Global attribute Alt + enter
Globally create Ctrl + n
Project
Shortcut for scope Function
Global build Ctrl + B
Source code
Shortcut for scope Function
Java editor format Ctrl + Shift + F
Java editor uncomment Ctrl + \
Java editor comment Ctrl +/
Add and import Ctrl + Shift + M to the Java Editor
Java editor organization import Ctrl + Shift + O
The Java editor uses try/catch blocks to enclose unset ones, which is too common. Therefore, we recommend that you set them here.
You can also use Ctrl + 1 for automatic correction.
Run
Shortcut for scope Function
F7 is returned in one global step.
Skip F6 in one global step
Global One-Step Jump to F5
Global One-Step Jump-in and select Ctrl + F5
Global debugging last started F11
Continue F8 globally
Shift + F5 in one step using filters globally
Globally Add/remove breakpoints Ctrl + Shift + B
Global display Ctrl + d
Global run last started Ctrl + F11
Run Ctrl + R globally
Execute Ctrl + u globally
Reconstruction
Shortcut for scope Function
Global undo reconstruction Alt + Shift + z
Global extraction method Alt + Shift + m
Global extraction of local variables Alt + Shift + L
Global inline Alt + Shift + I
Move Alt + Shift + V globally
Globally rename Alt + Shift + R
Global redo Alt + Shift + Y
Hot Key: Template: Alt +/modification: window-> preference settings-> workbench-> buttons-> edit-> content assistance. My habits: Shift + space (blank ). Easy Description: EditProgramCodeWhen you press the sysout + template startup key, system. Out. println (); is automatically displayed ();. Set the template format: WINDOW> preference Settings> JAVA> editor> template. Automatic Program code layout: Ctrl + Shift + F modify: window-> Settings-> workbench-> buttons-> program code-> Format. Personal habits: Alt + Z. Automatic typographical settings: WINDOW> preference Settings> JAVA> program code format creation program. Style page-> hide the tab (rather than the space key). deselect this option and enter 4 as the number of spaces. In this way, Space 4 is used for automatic orchestration. Quick execution of the program: Ctrl + F11 habits: Alt + x changes: window-> preference settings-> workbench-> buttons-> execute-> Start the previous job. Simple Description: During the first execution, it will ask you about the execution mode. After setting it, it will be executed quickly by pressing this hot key.
... I think it's really good to go ^ ___ ^ The category required for automatic import: Ctrl + Shift + O Simple Description: Suppose we didn't import any category, when we put in the program:
Bufferedreader Buf =
New bufferedreader (New inputstreamreader (system. In ));
At this time, eclipse will warn that there is no import category. At this time, we only need to press Ctrl + Shift + O, and it will automatically help us import the category. View the original code of the category: Ctrl + left mouse click Simple Description: You can see the original code of the category you are using. Annotate the selected text with Ctrl +/. Note: Debug is very convenient. Modify location: window-> Settings-> workbench-> buttons-> program code-> annotation visual switch: Ctrl + F8 personal habits: Alt + S. Modify: WINDOW> Settings> workbench> buttons> WINDOW> next view. Simple Description: It is convenient for us to quickly switch between editing, debugging, and other visual scenes. Secret Technology: a set of eclipse can be switched at the same time, English, traditional, simplified display:
1. First, install the Chinese culture package.
2. Add a parameter after the shortcut of the desktop, English->-nl "zh_us" Traditional->-nl "zh_tw" simplified->-nl "zh_cn ".
(Other languages and so on) I added the parameter-N1 "zh_us" to the eclipse shortcut on my desktop after I learned Chinese in 2.1.2 ".
The "C: \ Program Files \ eclipse \ eclipse.exe"-n "zh_us" interface changes back to the English language. Using eclipse, you do not have to re-orchestrate the program code During word Editing: copy the entire program code in the eclipse program editing area (CTRL + C) and directly paste (CTRL + V)
On word or Wordpad, you will find that the program code format in Word is exactly the same as that set in eclipse, including the font, contraction, and keyword color. I have tried to copy and paste JBuilder, gel, netbeans.... The style and color will not change only when the scale-in format is the same. Plug-in: plug-in installation: After downloading the package, decompress it and you will find features,
Plugins: copy or move everything in the two data folders to the features and plugins data folders of eclipse, and then restart eclipse. Eclipse can build a GUI plug-in by dragging like jbuilderx:
1. jigloo SWT/swing GUI builder: plugin for eclipse (using Java 1.4 or 1.5) after installation, you can select the GUI type to be constructed from the file-> New-> Other-> GUI form.
2. Eclipse visual editor project: Select Download page from http://www.eclipse.org/vep/and click latest release 0.5.0 to download. In addition to ve-runtime-0.5.0.zip, the following two items are required:
EMF build 1.1.1: (build page) (download zip)
GEF build 2.1.2: (build page) (download zip)
3.0 M8 version, please download:
EMF build i200403250631
GEF build i20040330
After the VE-runtime-1.0M1 is installed successfully, you can start the uidesign with file-> New-> visual class. After the installation is successful, you can choose new> JAVA> AWT and swing to start designing the GUI type you want to build. The corresponding version of VE must be used together before it can be used normally. Otherwise, even if the installation is successful, problems still occur. Use eclipse to develop JSP program: plug-in name: lomboz (download page) http://forge.objectweb.org/project/showfiles.php? Group_id1_97please select the lombozdownload of zookeeper. lomboz.212.p1.zip indicates version 2.1.2,
Lomboz.3m7.zip indicates M7... and so on.
Lomboz installation and Setup Teaching: Eclipse development JSP-Teaching File
Java to EXE: Implementation Method: eclipse with jsmooth (free of charge ).
1. Create a jar containing manifest by eclipse. Production Teaching
2. Use jsmooth to package the prepared jar into exe.
Jsmooth download page: http://jsmooth.sourceforge.net/index.php
3. The created EXE file can be executed on windows with the JRE device.
Eclipse-Java editor best settings: Editor font settings: workbench-> font-> JAVA editor text font.
(Courier New-regular 10 is recommended) Editor settings: WINDOW> preference Settings> JAVA> editor appearance: display the line number, square brackets that emphasize symmetric display, emphasize displaying the current line, and display the print margin. Select it, Set Tab width to 4, and print the code field to 80. Program code assistance: Use presets. Syntax: You can set the display color of keywords, strings, and so on. Note: use the default settings. Input: select all fields. Floating Description: by default. Tutorial: select the default settings. The effect of automatic typographical layout is best suited to Java design conventions: Automatic typographical settings: window-> preferred settings-> JAVA-> program code production format. Line feed: all are not checked. Branch: the maximum length of a row is 80. Style: only insert a blank check box after forced transformation. Number of inner spaces: Set to 4.
Frequently Used eclipse shortcuts
Save disk Ctrl + S (remember)
Comment code Ctrl +/
Uncomment Ctrl + \ (eclipse3 has been merged to Ctrl +)
Code-assisted Alt +/
Quick Fix Ctrl + 1
Code formatting Ctrl + Shift + F
Sort and import Ctrl + Shift + O
Switch the window Ctrl + F6 <you can change it to Ctrl + tab for convenience>
CTRL + Shift + M import unreferenced package
CTRL + W close a Single Window
F3 jump class and variable Declaration
F11 run the last program
CTRL + F11 debug the last program
Alt + back to the next editing point
CTRL + Shift + t search for classes in the project