Eclips uses tips (absolutely classic)

Source: Internet
Author: User
Guidance:
   Preface:
Originally, I used jbuilderx as the main IDE, but after using eclipse, I found that... eclipse is also so easy to use... gradually fell in love with it ......
Advantages of Eclipse: free of charge, program code layout function, cultural package available, many powerful plug-ins can be added, support for a variety of operating systems (Windows, Linux, Solaris, Mac OSX)... and so on.
The purpose of this discussion string is to combine some of Eclipse's usage skills... you are welcome to continue adding... due to the large number of eclipse versions, we hope to provide some advanced information to explain the version you are using ~
Eclipse Website: http://www.eclipse.org /;
Chinese culture teaching in Eclipse: Reference to articles in javaworld
(Version used: Eclipse 2.1.2 release + 文)
   Hotkey:
1. template: Alt +/
Modify: WINDOW> Settings> workbench> buttons> 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.
2. 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.
  
3. 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 as long as you press this hot key... I think it's a good deal ^ ___ ^
4. categories required for automatic import: Ctrl + Shift + O
Note: if we do not import any category, when we enter the following 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.
5. 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.
6. annotate the selected text: Ctrl +/
Simple Description: debugging is very convenient.
Modify: WINDOW> Settings> workbench> buttons> program code> comments
7. 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.
   Secrets:
1. A set of eclipse can be switched at the same time. It can be displayed in English, traditional Chinese, and simplified Chinese:
First, install the Chinese culture package.
Add parameters 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 changes back to the English language.
2. Using eclipse, you may not 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 to copy and paste JBuilder, gel, netbeans.... The style and color will not change only when the scale-in 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)
3.0 M8 version, please download:
EMF build i200403250631
GEF build i20040330
VE-runtime-1.0M1
After the installation is successful, you can start the uidesign by 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 programs:
Plug-in name: lomboz (download page)
Http://forge.objectweb.org/project/showfiles.php? Group_id = 97;
Please select the lombozdownload in the latest version. lomboz.212.p1.zip20.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.
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 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: 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> 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:
Eclipse 3.0 series hotkeys-by sungo )~ New ~
Window + GCC + CDT use eclipse to develop C and C ++ (by sungo )~ New ~
Others:
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)
Eclipse websites:
Http://eclipse-plugins.2y.net/eclipse/index.jsp;
Http://www.eclipseplugincentral.com /;
Eclipse-related teaching [Simplified]
I'm tired of writing a program. Do you want to have a rest ?? Playing a game is a good choice. The following describes how to use eclipse to play game plug-in.
   Additional plug-ins:
Eclipse-games:
Http://eclipse-games.sourceforge.net /;
Version: latest release 3.0.1 (Release Notes) sat, 3 Jan 2004
After the plug-in is installed, restart eclipse.
Window> Custom View> Other> check game actions.
Shut down eclipse and restart it to start playing grub. (There are four types: mine I, mine II, snake and warehouse .)
  
  
(Eclipse 2.1.2 + playing game in culture-warehouse fan)
Supplement: (use assertion mechanism in eclipse)
Eclipse version: 2.1.3 release.
The newly added assertion mechanism of JDK 1.3 (Keyword: assert). Because the jdk1.4 compiler is 1.4 compatible by default, the-Source parameter must be added during compilation to use assert.
C:/> javac-source 1.4 XXX. Java
The-ea or-enableassertions parameter must be added during execution.
C:/> JAVA-ea xxx
To use the assertion mechanism in eclipse, make the following settings:
Settings 1: (compilation settings)
Windows-> preferance-> JAVA-> compiler-> compliance and classfiles page. Change the. JDK compliance level-> compiler compliance level to 1.4.
Settings 2: (execute settings)
Run-> (x) = arguments page, add the-da parameter to VM arguments, and press run button to view the execution result after assertion is started.
  
  
(Eclipse 2.1.3 release + assertion test)
  
In the new version (M8 +), you can set VM arguments in eclipse.
In addition, we provide a way to add VM arguments when eclipse is started (the same way as increasing the default memory size of eclipse) so that you do not need to set VM arguments for each run.
  
  
Posted @ square inch in-heart reading (13) | comment (0) | Edit

This article is transferred from
Http://wllyy189.cnblogs.com/

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.