Eclips uses secrets (absolute classic) to post
Author: Sungo
Foreword: I have been using JBuilderx as the main idea, but I used Eclipse to find it ... Eclipse is also so easy to use ... gradually fell in love with it ... Eclipse Advantages: Free, program code Typographic function, Chinese cultural package, can add a lot of powerful plug-in, support a variety of operating systems (Windows, Linux, Solaris, Mac OSX) .., etc.
Open this discussion, I hope to collect some of the use skills of Eclipse ... Welcome everyone to continue to add ... Because Eclipse's version is numerous, I hope that the advanced advanced can explain the version you are using. ~
Eclipse website: http://www.eclipse.org/; Eclipse Chinese Teaching: JavaWorld Station Article Reference
(Use version: Eclipse 2.1.2 Release Chinese)
Hotkey: Template: Alt / Modification: 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 automatically appear: system.out.println () ;. Set the format of Template: Window -> Predictive Set -> Java-> Editor -> Template.
Program code automatic version: CTRL SHIFT F Modification: Window -> Prediction Set -> 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 air bobs), the option cancels the number of spaces below 4, so that the row is protruded in a space 4 when auto-arrangement.
Quick execution program: Ctrl F11 personal habits: Alt X modification: window -> preference setting -> Workbench-> button -> Execution -> The previous startup job last. Simple explanation: When executed, it will ask you to perform the mode, set it, then just press this hotkey, it will execute quickly.
Automatic remitting the required category: Ctrl Shift o Easy 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 say that there is no way to enter the category. At this time, we will automatically help our Import category when you press CTRL Shift O.
View the original code of the category: CTRL mouse left mock click Easy Description: You can see the original code of the category.
Tap the selected text: Ctrl / Easy Description: It is convenient to debug. Modification: Window -> Pixin Setting -> Workbench -> Button -> Program Code -> Note
View segmentation: 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. Teaching: A set of Eclipse can switch, English, traditional, and simplified: 1. First install the Chinese cultural package. 2. Additional parameters after the shortcuts of the desktop, English-> -nl "zh_us" Traditional -> -nl "zh_tw" Simplified -> -nl "zh_cn". (Other languages are pushed out in this class) After I am 2.1.2 Chinese, I added the parameter -N1 "zh_us" on my desktop Eclipse shortcut. "C: / program files / eclipse / eclipse.exe" -n "zh_us" interface will change back to English.
With Eclipse, you don't have to reorganize the program code when you Word Edit: Copy the program code of the Eclipse program editing area (Ctrl V), directly (Ctrl V) to Word or WordPad, you will find In the program code format in Word, like Eclipse, including font, regeneration, keyword colors. I have tried JBuilder, Gel, NetBeans ... When using copy, only the constitutive format is the same, the font, color, etc. will not change.
Equipment: Floor installation: After downloading the plug-in package, you will find it to decompress, you will find the 2 data clips of Features, Plugins, copy or move the things in the Eclipse, and the plugins data ends, 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) After installation, you can use the file -> New> Other-> GUI Form Select the GUI type to construct.
2. Eclipse Visual Editor Project: http://www.eclipse.org/VEP/; Click Download Page below, then select Latest Release 0.5.0 to enter the download. In addition to Ve-Runtime 0.5.0.zip to download, the following 2 also: EMF Build 1.1.1: (Build Page) Gef Build 2.2: (Download Zip)
3.0 M8 version, please download: EMF Build I200403250631 GEF Build I20040330 VE-Runtime-1.0M1
After the installation is successful, you can start UI design by file-> new-> Visual class. After the installation is successful, you can start designing the GUI type to be constructed by newness -> Java-> AWT and SWING. VE must cooperate with the corresponding version to use it normally, otherwise there will still have problems even if the installation is successful.
Use Eclipse to develop JSP programs: plug-in name: Lomboz http://forge.objectWeb.org/Project/showFiles.php?group_id=97; please select the Lomboz download that suits you. 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 document Java turn EXE article: Implementation: Eclipse with jsmooth (free). 1. First created by Eclipse, containing the JAR of Manifest. Production Teaching 2. Use JSMooth will be packaged into EXE. JSMooth Download Page: http://jsmooth.sourceforge.net/index.php; 3. Making completed EXE files, can be executed on Windows with device JRE.
Eclipse-Java Editor Best Settings: Editor Dictionary Settings: Workbench -> Font -> Java Editor Text Dictionary. (Suggested setting Courier New -Regular 10)
Editor Related Settings: Window -> Prediction -> Java-> Editor
Appearance: The line number is displayed, emphasizes the square brackets of the symmetrical display, emphasizes the current row, showing the margin, checking it, Tab width 4, printing the spagnetic 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 version, the most conforming to the Java design conventions: automatic typography settings: window -> preference setting -> 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 Teaching Document: Eclipse 3.0 Series Hot Keys - Chinese and British Confidentiality Edition (BY Sungo) ~ New ~ WINDOW GCC CDT Develops C, C (by Sungo) ~ New ~
Others: Java Development Tools (Chinese) expanded Eclipse Using Eclipse Development J2EE Application (Chinese) Use the Eclipse platform to use Eclipse to use Eclipse to develop (Chinese) Development Eclipse plug-in (Chinese) Internationalize your Eclipse plug-in Procedure (English) How to add Swing Editor How to test your Eclipse Plug-in compliance with the international market demand (English)
Eclipse Related Website: http://eclipse-plugins.2y.net/eclipse/index.jsp; http://www.eclipseplugincentral.com/; Eclipse Related Teaching [简体]
Write the program is very tired, want to take a break? ? Playing small game is a good choice, hereby introducing plug-in using Eclipse playing Game.
Supplement: Eclipse-Games: http://eclipse-games.sourceforge.net/; version selection: Latest Release 3.0.1 (Release Notes) Sat, 3 Jan 2004
After the plug-in installation, re-open Eclipse. Window -> Self - order -> Other-> Check Game Actions. Then the Eclipse is turned off, and then start, you can start playing. (4 types: mining I, mining mines II, gluttoned snake, warehouse.) (Eclipse 2.1.2 Chinese Cultation Play Game - Warehouse)
Supplement: (Eclipse) Eclipse version: 2.1.3 Release.
JDK1.4 newly joined Assertion mechanism (Keyword: assert), because JDK1.4 compiler presets are compatible with 1.3, so use Assert must be plus-Source 1.4 parameters when compiling.
C: /> javac -source 1.4 XXX.java must be started to start up - EA or the -EnableAssrtions parameter.
C: /> java -ea xxx
To use the ASSERTION mechanism in Eclipse, make the following settings: Set 1: (Compilation Settings) Windows-> Preference-> Java-> Compiler-> Compliance and ClassFiles page. The ..jdk Compliance Level-> Compiler Compliance Level is set to 1.4.
Settings 2: (Perform Settings) Run-> Run -> (x) = Arguments page, add -DA parameters in VM Arguments, press Run Button to see the execution result after starting assertion.
(Eclipse 2.1.3 Release Assertion test)
The new version (M8 ) Eclipse can set up VM Arguments to provide a way to add VM Arguments when Eclipse is started (the same mode as increasing the Eclipse preset memory size) This will not need to set up VM Arguments each time RUN.