Java Learning Notes 4_eclipse Use guide and. Classpath,.project,/SRC and/bin

Source: Internet
Author: User

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

Related Article

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.