Pre: Eclipse is a common IDE for Java development. Find two more useful eclipse usage guides on the web.
Http://wenku.baidu.com/view/b7a23277f46527d3240ce054.html
http://wenku.baidu.com/view/56fc4d6427d3240c8447ef8e.html?from=rec&pos=0&weight=5&lastweight=2 &count=5
1. Eclipse Common shortcut keys
Delete Row: Ctrl+d selected closed element: Alt+shift+up/down/left/right Import/import:ctrl+shift+o Display Search dialog: Ctrl+h Quick Outline:ctrl+o Toggle between multiple editors: ctrl+e (edit first letter) Open resource: Ctrl+shift+r Open type: ctrl+shift+t new blank line: Shift + ENTER after the current line with a blank line, CTRL + Shift + ENTER in the current Line preceded by a blank line shortcut key ctrl+/get annotation//symbol or ctrl+shift+\ get annotation symbol * * * * with refactor under the Rename command (shortcut key: ctrl+alt+r) To modify the source file variable name, class name or function name. Debug Related: 1 in debugger, can view stack and variables 2) Step-over/in/out shortcut key is: F5,f6, 3) with the upper left corner Red Square icon to terminate the program; 3 Replace the Debug and Java perspective interface with the J-java icon in the upper-right corner.
More frequently used shortcuts:
Reference http://www.cnblogs.com/fangyukuan/archive/2010/04/05/1704852.html
The 10 most useful shortcuts in eclipse: http://www.open-open.com/bbs/view/1320934157953/
2. Eclipse Project contains a description of the file
After building Eclipse Java project, the entire project corresponds to a directory on disk that contains the following five sections:
1) directory src: here to store Java source program
2 Directory Bin: Here is the use of Javac compilation of the formation of class files
3 directory. Settings: The configuration information for various plug-ins is stored here.
4 and 5) files. Classpath and. Project: Configuration information containing Eclipse 2.1. classpath file
The contents of the . Classpath file are opened as follows. The following is a helloworld.java corresponding. classpath file, so it's simpler, but you can also see useful information:
<?xml version= "1.0" encoding= "UTF-8"?>
<classpath>
<classpathentry kind= "src" path= "src"/>
<classpathentry kind= "Con" path= "org.eclipse.jdt.launching.jre_container/ org.eclipse.jdt.internal.debug.ui.launcher.standardvmtype/javase-1.7 "/>
<classpathentry kind= "Output" path= "Bin"/>
</classpath>
This is an XML configuration file that points to the project's dependent files, which are configured to configure the entire project's operating environment.
1 The source file of the project "kind = src" is located in the directory "src";
2 The output directory of the project "kind = Output", located in "Bin";
3 The operating environment of the project "kind = con" (Con expression condition) 2.2. Project file
Open. Project
<?xml version= "1.0" encoding= "UTF-8"?>
<projectDescription>
<name>TestSDK</name>
<comment></comment>
<projects>
</projects>
<buildSpec>
<buildCommand>
<name>org.eclipse.jdt.core.javabuilder</name>
<arguments>
</arguments>
</buildCommand>
</buildSpec>
<natures>
<nature>org.eclipse.jdt.core.javanature</nature>
</natures>
</projectDescription>
1. <name> indicates the project name;
2. Comments in <comment> Engineering;
3. <natures> requires additional eclipse Plug-ins at run time
4. <buildSpec> Specific Loading information