Eclipse Development Tools

Source: Internet
Author: User

1th Chapter EclipseDevelopment Tools1.1 EclipseOverview and Installation

Eclipse is an IDE (integrated development environment) IDE (Integrateddevelopment Environment)

Integration of code writing functions, analysis functions, compile functions, debugging functions and other integrated development software.

Eclipse Description: Free, pure Java language written, free installation, strong extensibility

Download and install, download http://eclipse.org/

Installation: Green version, decompression can be used (Eclipse)

1.2 Eclipsethe basic use1.2.1EclipseBasic Operations

Select a work space

The workspace is actually the directory where we write the source code.

Use Eclipse to complete a HelloWorld case

A: To Create a Java project: Click File or in the left-most margin, select the Java project, write a project name in the interface, and finish.

B: Create a package: Expand the project and build a package under the source bundle SRC Com.itheima

C: Create class: Build a class under the Com.ithiema package HelloWorld

Write a class name in the interface: HelloWorld, then finish.

D: Write code: Write the Main method in the HelloWorld class, write in the main method

An output statement: I am a dark horse programmer, I am proud, I am proud.

E: Compile: Automatic compilation, at the moment of saving to help you do it

F: Run Select a file to run or in the content of the file to be run

Right--Run as-javaapplication

1.2.2Code Case One
Package Com.itheima;    public class HelloWorld {public staticvoid main (string[] args) {System.out.println ("I Am a Java programmer, I am proud, I am proud"); }}

1.3      EclipseBasic configuration of the work space

A: display and hide of line numbers

display: In the left-most blank area of the code area, right-show line numbers.

Hide: Do the above action again.

B: font size and color

A:java font size and color for code areas:

Window--Preferences--general--appearance--Colors and Fonts--Java--Java Edit Text Font

B: Control Desk

Window--Preferences--general--appearance--Colors and Fonts--Debug-Console font

C: Other Files

Window--Preferences--general--appearance--Colors and Fonts--Basic--Text Font

C: form to mess up, how to do?

Window--Perspective--Reset perspective

D: What if the console can't find it?

Window--show View-console

1.4 Eclipseuse of secondary and shortcut keys in1.4.1Overview of Common auxiliary keys and shortcut keys

Content Secondary Key alt+/

Main then alt+/

Syso then alt+/

Shortcut keys

Comments

Single-line selection, ctrl+/, Cancel again

Multi-line selection, ctrl+shift+/, ctrl+shift+\

Formatting ctrl+shift+f

1.1.1Code Case Two
package com.itheima_02;/* *  Content Auxiliary Key: Alt+/ *      a:main method  *          main, then alt+/, enter  *       B: Output statement  *          syso, then alt+/, enter  *  *  shortcut keys:  *      a: Comments  *            single-line selection, ctrl+/, one more time to cancel  *            multi-line selection, ctrl+shift+/,ctrl+shift+ *      b: Formatting  *           ctrl+shift+f */public class helloworld  {    public staticvoid main (String[] args)  {         system.out.println ("HelloWorld1");         system.out.println ("HelloworLd2 ");         system.out.println (" HelloWorld3 ");         system.out.println ("HelloWorld4");         system.out.println ("HelloWorld5");     }}
1.2 EclipseDelete and import of items in

A: Delete Item

Select Item – Right-click – Delete

Remove from Project area

Remove from hard disk

B: Import Project

Right-click in the project area to find the import

Find General, expand, and find

Existing Projects into Workspace

Click Next, then select the item you want to import

Note: The project name is selected here


This article is from the "Java small white to the Great God Experience" blog, please make sure to keep this source http://gcc2577.blog.51cto.com/12763504/1922237

Eclipse Development Tools

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.