Eclipse Development Essentials Shortcut keys

Source: Internet
Author: User
Tags switches

1. Eclipse's basic understanding: Eclipse is one of the IDE (integreated development environment, integrated development environment) developed by Java and EE, and it is the most used IDE of software Enterprise at present. Originally a product of IBM, Ecplise was handed over to the open source organization for maintenance in 2001 and is now managed by the non-profit organization Eclipse Foundation (Ecplise Foundation).

-Download on official website www.eclipse.org. (The installation of Eclipse is simple, just unzip the downloaded compressed file.) )


2. Eclipse Basic Settings (Window, Preferences)

-The setting of character encoding in the working environment: (generally set to Utf-8, otherwise, the default GBK will be garbled in the Web programming)

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/08/67/wKiom1ngxifSug8HAABOxlVCFIg566.png "title=" 00. PNG "alt=" Wkiom1ngxifsug8haaboxlvcfig566.png "/>


-JRE settings: If Java_home is set in the system environment variable, the Java_home setting is used by default.

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/A7/1D/wKioL1ngxOnjl2SZAAARYTlVpmw764.png "title=" 03. PNG "alt=" Wkiol1ngxonjl2szaaarytlvpmw764.png "/>

650) this.width=650; "src=" Https://s3.51cto.com/wyfs02/M01/08/67/wKiom1ngx6rg7zVAAAA7xj9zy1U462.png "title=" 01. PNG "alt=" Wkiom1ngx6rg7zvaaaa7xj9zy1u462.png "/>


-Compiler settings:

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/08/67/wKiom1ngx8bhX96GAAAs-PyKPi0301.png "title=" 02. PNG "alt=" Wkiom1ngx8bhx96gaaas-pykpi0301.png "/>


-Default Web browser configuration: By default, Ecplise uses an internal browser, but it can also be specified as an external browser.

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M01/A7/1E/wKioL1ngx4HiehyAAAA5M3H-4NM736.png "title=" 02. PNG "alt=" Wkiol1ngx4hiehyaaaa5m3h-4nm736.png "/>

-Add an external browser:

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M01/08/67/wKiom1ngykHS8noHAABbmpe51cA091.png "title=" 04. PNG "alt=" Wkiom1ngykhs8nohaabbmpe51ca091.png "/>


-Modify the default character encoding for JSP and HTML files:

650) this.width=650; "src=" Https://s4.51cto.com/wyfs02/M02/08/67/wKiom1ngy3mD-LLWAAA3oZ1xu8Y101.png "title=" 05. PNG "alt=" Wkiom1ngy3md-llwaaa3oz1xu8y101.png "/>

-The HTML character encoding format defaults to Utf-8:

650) this.width=650; "src=" Https://s5.51cto.com/wyfs02/M00/A7/1E/wKioL1ngyWbCpyu7AABCeESZC04772.png "title=" 06. PNG "alt=" Wkiol1ngywbcpyu7aabceeszc04772.png "/>


2. Common shortcut keys for Eclipse files:

-Ctrl + N: Create a new project, file, folder, and more.

-Ctrl + M: Window maximized/restored.


-Alt + Enter: Opens the Properties window for the selected project, package, file, and so on.

-Ctrl + F11: Run the program in debug mode.

-F2: Rename the project name, file name.


-Ctrl + E: Opens the edit window to view the directory.

-Ctrl + Page up: Switches to the previous window of the current editing window.

-Ctrl + Page down: Switches to the next window in the current editing window.


3. The shortcut keys that Eclipse uses when writing code:

-Ctrl + ALT + DOWN ARROW: assigns the line contents of the cursor down or selects the contents.

-Ctrl + Alt + UP ARROW: assigns the line contents of the cursor up or selects the contents.


-Alt + DOWN ARROW: Moves the contents of the line or selection down the cursor.

-Alt + UP ARROW: Move up the contents of the cursor or select content.


-Ctrl + 1: Gives the solution.

-Alt +?: Displays the automatic prompt function.


-Alt + Shift + Z: Surrount with for the selected code.

-Alt + Shift + S: pops up the source menu. (After the popup menu, follow the letter underlined to indicate the selection)

650) this.width=650; "src=" Https://s1.51cto.com/wyfs02/M01/08/68/wKiom1ng0rqwyPLzAAASev5PnoM763.png "title=" 02. PNG "alt=" Wkiom1ng0rqwyplzaaasev5pnom763.png "/>

650) this.width=650; "src=" Https://s2.51cto.com/wyfs02/M02/08/68/wKiom1ng1DvAul9KAAAUNyxV42Y344.png "title=" 07. PNG "alt=" Wkiom1ng1dvaul9kaaaunyxv42y344.png "/>


-Ctrl +/: line comment and dismiss comment.

-Ctrl + Shift +/: Block comment.

-Ctrl + Shift + \: Unblock block comments.


-Ctrl + Shift + F: Format code.


-Alt + Shift + L: Extracts the selection to a variable.

-Alt + Shift + M: Extracts the selection as a method.


4. Eclipse PrintOut Results:

A, select what you want to print, B, Alt +, pop-up Help information, C, press the UP arrow, and then press ENTER.


5, Eclipse View the source code commonly used shortcut keys:

-Ctrl + T: View the inheritance relationships of classes and implement relationships.

-Ctrl + O: View the structure of the class.

-Ctrl + Shift + T: Opens the View Class window.

-View the definition of a class or method: Hover the mouse over a class or method while pressing the CTRL key. (You can click to enter the definition of a class or method when the underline is displayed)



6. Other Eclipse shortcut keys:

-Ctrl + Shift + LEFT ARROW or RIGHT arrow: quickly select a word.

-Shift + Home or end: From the cursor's current position, quickly select to the beginning or end of the line.

-Shift + UP ARROW or DOWN arrow: from the current position of the cursor, quickly select to the previous line or the next line.


This article is from the "12392717" blog, please be sure to keep this source http://12402717.blog.51cto.com/12392717/1972270

Eclipse Development Essentials Shortcut keys

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.