My Java journey Lesson 2 Eclipse use, java journey eclipse

Source: Internet
Author: User

My Java journey Lesson 2 Eclipse use, java journey eclipse

1. Manage jar packages referenced by the Project

In Project Explorer, find the Project you want to add the jar package, right-click the Project name, and click Properties.

In the displayed form, click JAVA Build Path in Resource.

Tab Libraries to import and remove the jar. However, if you use this method to import an external jar package, the warning message may appear. This prompt indicates that your program can run in eclipse, but the jar package will not be packaged when you pack the program into a release package. The commonly used is to copy jar to the project's WebContent/WEB-INF/lib below 2, commonly used shortcut Ctrl + left mouse button (class, method, attribute variable nouns ): location where a variable declaration or definition is tracked
Ctrl + D: Delete the current row
Ctrl + F: Search/Replace (current editing window)
Ctrl + H: Global Search
Ctrl +/: comment out the current line or multiple lines of code
Ctrl + Shift + C: comment out the current line or multiple lines of code
Ctrl + Shift + F: format the current Code Ctrl + Shift + O: The Missing Import statement is added, extra Import statements are deleted (first place the cursor on the class name of the package to be imported)
Ctrl + Shift + X: converts all selected text to uppercase
Ctrl + Shift + Y: converts all selected text to lowercase
Alt +/: code prompt
Alt + Shift + R: Rename (including file name, class name, method name, variable name, etc., very easy to use)
Alt + Shift + J: generate comments for classes or methods
Alt + Shift + S: Open the Source window (generate get and set methods to implement and override methods or classes, which are frequently used)
Alt + Shift + D, J: if the main method entry exists, the code is executed in Debug mode.
Alt + Shift + X, J: if there is a main method entry, then Run the code in the Run mode 3, with Eclipse use getting started tutorial http://blog.csdn.net/wangpeng047/article/details/7218967 Eclipse tutorial | cainiao tutorial http://www.runoob.com/eclipse/eclipse-tutorial.htmleclipse common settings, commonly used shortcuts http://jingyan.baidu.com/article/c35dbcb03246058916fcbcb3.html

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.