Hotkey:
Template: Alt +
Modify: WINDOW> preference> workbench> Keys> command> Edit> content assist.
My habits: Shift + space (blank ).
Simple Description: When you edit the program code, the system. Out. println () is automatically displayed when you press the sysout + template startup key ();
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.
FAST Program Execution: Ctrl + F11
Personal habits: Alt + x
Modify: WINDOW> 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.
CATEGORY required for automatic import: Ctrl + Shift + O
Simple Description:
Suppose we do not import any category, when we enter 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: Ctrl +/
Simple Description: debugging is very convenient.
Modify: WINDOW> Settings> workbench> buttons> program code> comments
Unannotate the selected text: Ctrl + easy description: Same as above.
Modify: WINDOW> Settings> workbench> buttons> program code> cancel 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.
3.0 CTRL + ALT + H, you can see the method of calling the current member, and you can go up one by one.
CTRL + O can be quickly switched to other methods.
Secrets:
One set of eclipse can be switched at the same time. It can be displayed in English, traditional Chinese, and simplified Chinese:
1. First, install the Chinese culture package.
2. Add a parameter after the desktop shortcut,
English->-nl "zh_us"
Traditional Chinese->-nl "zh_tw"
Simplified->-nl "zh_cn"
(Other languages and so on)
Like in my 2.1.2 culture, I added the parameter-N1 "zh_us" to the eclipse shortcut on my desktop ".
"C:/program files/Eclipse/eclipse.exe"-n "zh_us"
The interface is changed back to the English language.
Using eclipse, you cannot re-orchestrate the program code when editing documents in word:
Copy the entire code in the eclipse program editing area (CTRL + C) and paste (CTRL + V) directly to 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, thumbnail, and keyword color. I have tried JBuilder, gel, netbeans ...... When you copy and paste a file, the font and color of the file will not change only when the format is the same.
Plug-ins:
Plug-in installation: After downloading the package, decompress it and you will find features and Plugins, copy or move all the content to the features and plugins data folders of eclipse, and restart eclipse.
Eclipse can build a GUI plug-in by dragging like jbuilderx:
1. jigloo SWT/swing GUI builder: http://cloudgarden.com/jigloo/index.html
Download this version: jigloo plugin for eclipse (using Java 1.4 or 1.5)
After installation, you can choose files> New> Other> GUI form to select the GUI type to be constructed.
2. Eclipse visual editor project: http://www.eclipse.org/vep/
Click Download page at the bottom, and then 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)
I have only tested eclipse 2.1.2 and it is OK!
For users of version 3.0 or later, download:
Eclipse build i20040324:
1.0.0 stream integration build i20040325 Thu, 25 Mar 2004 -- (-0500)
1.0.0 stream nightly build n20040323a Tue, 23 Mar 2004 -- (-0500)
Note: Only build i20040324 can be used normally in versions above 3.0.
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 programs:
Plug-in name: lomboz (download page)
Http://forge.objectweb.org/project/showfiles.php? Group_id = 97
Please select the lombozdownload for your desired region. lomboz.212.p1.zip indicates version 2.1.2,
Lomboz.3m7.zip indicates M7 ...... And so on.
Lomboz installation and setup:
Eclipse development JSP-teaching files
Conversion from Java to EXE:
Implementation Method: Eclipse and jsmooth (free of charge ).
1. Create a jar containing manifest by eclipse.
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 font.
(Set Courier New-regular 10)
Editor settings: WINDOW> preference Settings> JAVA> Editor
Appearance: display the row number, square brackets that emphasize symmetric display, emphasize displaying the current row, display the print margin, select it, set the tab width to 4, and set the printing distance to 80.
Program code assistance: Use presets.
Syntax: configurable keywords,
The display color of the Chinese webmaster Information Network string 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> preference 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.
Eclipse teaching file:
Expand eclipse Java development tools (Chinese)
Use eclipse to develop J2EE applications (Chinese)
Use the eclipse platform for debugging (Chinese)
XML development with eclipse (Chinese)
Develop Eclipse plug-ins (Chinese)
International your Eclipse plug-in (English)
Add the swing editor to eclipse)
How to test that your Eclipse plug-in meets international market requirements)