Eclipse website:
http://www.eclipse.org/
Eclipse Chinese Teaching: JavaWorld Station Article Reference
(Use version: Eclipse 2.1.2 Release Chinese)
Hotkey:
Template: alt /
Modify: Window -> Prediction -> Workbench -> Button -> Edit -> Content Auxiliary.
Personal habits: Shift Space.
Simple explanation: When editing the program code, play the SYSOUT TEMPLATE launcher,
It will appear automatically: system.out.println () ;.
Set the format of Template: Window -> Predictive Set -> Java-> Editor -> Template.
Program code automatic version: Ctrl Shift f
Modify: Window -> Predictment -> Workbench -> Button -> Program Code -> Format.
Personal habits: alt z.
Automatic Typing Settings: Window -> Predictive Set -> Java-> Program Code Format Producer.
Style page -> will insert Tab (rather than airbels), this option cancels
Number of spaces below 4, which is rumored in space 4 when automatic arrangement.
Quick execution program: Ctrl F11
Personal habits: Alt X
Modify: Window -> Predictive Setting -> Workbench -> Button -> Execution -> The previous startup job is started.
Simple explanation: When executed, it will ask you to perform mode,
After setting, just press this hotkey, it will execute quickly.
.. I feel very pleasant ^ ___ ^
Automatic remitting the required category: Ctrl Shift O
Simple explanation:
Suppose we don't have any type of import, when we are in the program:
BufferedReader BUF = New BufferedReader (NEW INPUTSTREADER (System.in);
At this time, Eclipse will warn that there is no way to enter the category, then we only need to press CTRL Shift O
It will automatically help us Import categories.
View the original code of the category: Ctrl mouse left mouse click
Simple explanation: You can see the original code of your category.
Tap the selected text: Ctrl /
Simple explanation: It is very convenient when Debug.
Modification: Window -> Pixin Setting -> Workbench -> Button -> Program Code -> Note
Cancel annotation of the selected text: Ctrl
Simple explanation: Ib.
Modification: Window -> Pixin Setting -> Workbench -> Button -> Program Code -> Cancel Note
View sector: Ctrl F8
Personal habits: alt s.
Modify: Window -> Predictive Setting -> Workbench -> Button -> Window -> Next View.
Simple explanation: It can be convenient for us to quickly switch editing, amplifies and more.
Tech article:
A set of Eclipse can simultaneously switch, English, traditional, and simplified display:
1. First install the Chinese cultural package first.
2. Adding parameters after the shortcuts of the desktop,
English-> -nl "zh_us"
Traditional -> -nl "zh_tw"
Simplified -> -nl "zh_cn".
(Other languages are pushed by this class)
Like I 2.1.2 Chinese, I added the parameter-N1 "zh_us" in the Eclipse shortcuts in my desktop.
"C: program fileseeclipse.exe" -n "zh_us"
The interface will change back to English.
With Eclipse, you don't have to rearrange the program code when you edit your text:
Copy the program code of the Eclipse program editing area (Ctrl C), directly post (Ctrl V) to
On Word or WordPad, you will find the program code format in Word, follow Eclipse
The setting is exactly the same, including font, regeneration, keyword colors. I have tried JBuilder.
, GEL, NETBEANS ... When using copy, only the constitutive format, the word, color
Color, etc. will not change.
Equipment:
Floor installation: After downloading the plug-in package, you will find Features,
Plugins 2 data clips, copy or move to Eclipse's Features
After the PLUGINS data end, restart Eclipse.
Let Eclipse can use drag-mounted plug-in as 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)
You can construct the GUI type to be constructed by the file after installation.
2. Eclipse Visual Editor Project:
http://www.eclipse.org/VEP/
Click Download Page below, then click Latest Release 0.5.0 to enter the download.
In addition to Ve-Runtime 0.5.0.zip to download, the following two must:
EMF Build 1.1.1: (Build Page) (Download Zip)
Gef Build 2.1.2: (Download Zip)
I only tested the Eclipse 2.1.2 version, which is OK!
For the 3.0 version of the user, please download:
Eclipse Build I20040324:
1.0.0 Stream Integration Build I20040325 THU, 25 Mar 2004 - 12:09 (-0500)
1.0.0 Stream Nightly Build N20040323A TUE, 23 Mar 2004 - 13:53 (-0500)
Note: 3.0 or higher, only Build i20040324 can be used normally.
After the installation is successful, you can start from the new -> Java-> AWT and Swing
The GUI type to be constructed begins with design. VE must cooperate
The version can be used normally, otherwise it will still be used even if it is installed.
something wrong.
Use Eclipse to develop JSP programs:
Plug-in name: Lomboz (download page)
http://forge.objectWeb.org/project/...php?group_id=97
Please choose the Lomboz download that suits you, Lomboz.212.p1.zip Represents version 2.1.2,
Lomboz.3m7.zip represents the M7 version .... Push it in this class.
Lomboz installation and setup teaching: Eclipse development JSP-teaching documents
Java turn EXE articles:
Implementation: Eclipse is matched with JSMooth (free).
1. First created by Eclipse, containing the JAR of Manifest.
Teaching
2. Use JSMooth to package the JAR package into EXE.
JSMooth Download Page:
http://jsmooth.sourceforge.net/index.php
3. Making completed EXE files can be performed on Windows with device JRE.
Eclipse-Java editor is best setting:
Editor Chart Settings: Workbench -> Dictionary -> Java Editor Text Dictionary.
(Suggested setting Courier New -Regular 10)
Editor Related Settings: Window -> Prediction -> Java-> Editor
Appearance: display line number, strong? # 123; symmetrical displayed square bracket, strong? # 123; display the current row,
Show print margins, check it, Tab width 4, print the hoster fields 80.
Program code helps: extract.
Syntax: You can set keywords, strings, etc. display colors.
Note: Extra setup.
Enter: All fields are checked.
Floating Instructions: Extra setup.
Guide: Extra setting.
Make the effect of the automatic discharge, most in line with the Java design conventions:
Automatic Typing Settings: Window -> Predictive Set -> Java-> Program Code Production Format.
Return: All do not check.
Branch: Row length limit: 80.
Style: Only insert blank check after mandatory transition.
Number of internal stasks: Set to 4.
Eclipse shortcut
=============================================================================================================================================================================================================
Menus
F10 Main Menu
Shift F10 Context Menu
Ctrl f10 view menu
Alt - Active View's Menu
=============================================================================================================================================================================================================
Workspace navigation
F12 Activate Editor
Ctrl Shift W Switch Editor
Ctrl f6 Next Editor
Ctrl Shift F6 Prev Editor
Ctrl F7 Next Workspace
Ctrl Shift F7 Prev Workspace
Ctrl F8 Next Perspective
Ctrl Shift F8 Prev Perspective
Alt Left Back
Alt Right Forward
Files
Alt Shift S Show in ...
Ctrl Shift R Jump To FileCtrl N New File
Ctrl s save file
Ctrl Shift S Save All Files
Ctrl F4 Close File
Ctrl Shift F4 Close All Files
Find
Ctrl L goto line
Ctrl f find
Ctrl J Incremental Find
Ctrl Shift J Incremental Find Prev
Ctrl K Find Next
Ctrl Shift K Find Prev
Ctrl H Search Workspace
Ctrl (dot) Navigate Next NEXT
Ctrl (Comma) Navigate Prev
=============================================================================================================================================================================================================
Java navigation
F3 Goto Declaration
Ctrl Shift U Find References in File
Ctrl Shift G Find References in Workspace
Ctrl T Popup Type Hierarchy
Ctrl Shift T Open Type
Ctrl o Outline of current Source
Ctrl f3 Outline of current Cursor Position
F2 Show Javadoc
F4 Show Heirachy
=============================================================================================================================================================================================================
General editing
Alt Arrow Move Line (s) Up or Down
Ctrl Alt Arrow Duplicate Line (s) Up or Down
Shift Enter Insert Line Below
Ctrl Shift Enter Insert Line Above
Ctrl Shift Q Toggle Quick Diff
Ctrl Shift Y Convert to LowerCase
Ctrl Shift X Convert to Uppercase
Java editing
Ctrl 1 Quick fix (Works Even WHEN ARE NO ERRORS
Ctrl Shift M Add import
Ctrl Shift f Reformat
Ctrl / Comment
Ctrl uncomment
Ctrl Shift Space Parameter Hints
Ctrl HyperLink Identifier
============================================================================================================================================================================================================= Debugger
F5 Step Into
F6 Step over
F7 Run to Return
F8 Resume
F9 RELAUNCH LAST
F11 Run / Debug Last
Ctrl F11 Run
Ctrl Shift B Toggle Breakpoint
Ctrl D display
Ctrl q Inspect
Ctrl R Run to Line
Ctrl u Run Snippet
=============================================================================================================================================================================================================
Refactor
Alt T Rectoring Menu
Ctrl Shift Z undo Refactor
Ctrl Shift Y Redo Refactor
Alt Shift R Rename
Alt Shift V Move
Alt Shift I Inline
Alt Shift M Extract Method
Alt Shift L Extract Local
=============================================================================================================================================================================================================
MISC
F5 Refresh
F1 Infopo
F2 Show Resizeable HOVER
F5: STEP IN
F6: Step over
F7: ......
F8: ......
Ctrl Space: Code Assistant
Ctrl O: Open class structure in the editor, apply when the edit box is maximized, the jump function is used ...
Ctrl T: It is also used in the editor, open the inheritance tree of the selected element, and quickly locate the method of the parent class in the subclass.
Ctrl Shift R: Find non-Java files such as XML, JSP.
Ctrl Shift H: Opens the class tree that makes the class, which is applicable to the understanding of the hierarchy of the class without source code, and F4 is unable to implement.
Ctrl H: Search all files, containing keywords, I am used to search for XML and other configuration files ....
Alt <- (left and right arrows): The return of the editor is the famous back!
Ctrl F6: Switch Edit Editor, I changed to Table Ctrl
Ctrl M: Edit box Maximize ...
Ctrl B: Insert breakpoint
INSERT: Click Insert to switch the shape of several cursors, each shape represents an insert mode, the default is Smart Insert. Ctrl /: Comment
Ctrl : Cancel Notes
Ctrl Space: Code Assistant
It is best not to use this shortcut to make Code Assistant, easy to conflict with the input method. I usually set to Ctrl J, the same as JBuilder.
I have other settings in my custom:
Ctrl Tab: Code Format
Ctrl i: Organization Import
Ctrl Shift M automatically searches for the package to which the mouse is located and automatically imported, join the Import statement.
Ctrl Shift O, change the import * to the class or interface determined by IMPORT
Ctrl Shift P Find another half bracket
Ctrl 1 Smart FIX (common)
Alt / Because Ctrl Space always appears in the Chinese system, this replacement is used.
Press and hold Ctrl, automatically jump to this or method with mouse points Method or class.