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