Eclipse Development Tools

Source: Internet
Author: User

1.1Eclipse Overview and Installation
Eclipse is an IDE (integrated development environment) IDE (Integrated development environment)
Integration of code writing functions, analysis functions, compile functions, debugging functions and other integrated development software.
Eclipse Features: Free, pure Java language, no installation, strong extensibility
Download and install, download http://eclipse.org/
Installation: Green version, decompression can be used (Eclipse)
Basic use of 1.2Eclipse
1.2.1Eclipse Basic Operation
Select a work space
The workspace is actually the directory where we write the source code.
Use Eclipse to complete a HelloWorld case
A: Create a Java project: Click File or in the left-most margin, select the Java project, write a project name in the interface, then finish.
B: Create Package: Expand Project, build a package under 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-java Application
1.2.2 Code Case One

package com.itheima;public class HelloWorld {    public static void main(String[] args) {        System.out.println("我是黑马程序员,我骄傲,我自豪");    }}

Basic configuration of the 1.3Eclipse workspace
A: line number display and hide
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 the font size and color of the code area:
Window--Preferences--general--appearance--Colors and Fonts--Java--Java Edit Text Font
B: Console
Window--Preferences--general--appearance--Colors and Fonts--Debug--Console font
C: Other documents
Window--Preferences--general--appearance--Colors and Fonts--Basic--Text Font
C: The form to mess up, how to do?
Window--Perspective--Reset perspective
D: The console can't find it, what should I do?
Window--show View-console
Use of secondary and accelerator keys in 1.4Eclipse
1.4.1 Common Auxiliary keys and shortcut keys overview
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.4.2 Code Case Two

package com.itheima_02;/* * 内容辅助键:alt+/ *      A:main方法 *          main,然后alt+/,回车 *      B:输出语句 *          syso,然后然后alt+/,回车 *  * 快捷键: *      A:注释 *          单行  选中内容,ctrl+/,再来一次就是取消 *          多行  选择内容,ctrl+shift+/,ctrl+shift+ *      B:格式化 *          ctrl+shift+f */public class HelloWorld {    public static void main(String[] args) {        System.out.println("HelloWorld1");        System.out.println("HelloWorld2");        System.out.println("HelloWorld3");        System.out.println("HelloWorld4");        System.out.println("HelloWorld5");    }}

Deletion and import of items in 1.5Eclipse
A: Delete Items
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

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.