-
Link to othere folder/file
If project A and B contains the same files/folders, you can create maintain those objects in only one project, and create a link to them from another project in the following way:
- Create File > New > Folder/File
- Select the path to create folder/file
- Input the name of folder/file
- Click button Advanced>>
- Select checkbox 'Link to folder/file in the system'
- Select path to be linked
- Click 'OK'
-
View Project Path
Right click project name on Navigator window, then select Properties > Resource, then the location is shown at the right of the window.
-
Debug
Click "Run" -> "Debug" or F11 to run application in Debug mode.
F5: Step Into
F6: Step Over
F7: Step Return
F8: Resume, run to next breakpoint
-
Return Edit mode from Debug mode:
Click "Window" -> "Open Perspective" -> "Java"
-
Enable Content assist (Auto complete)
Refer to http://www.cnblogs.com/8776/articles/1682682.html
-
Window -> preferences -> Java -> Editor -> Content assist
-
Select "Enable auto activation"
-
Content assist (Auto complete)
Auto complete doesn't take effective, and when to press "Alt + \", a dialog with messages “No Default Proposals” pops up。You can follow the instructions to resolve this issue:
-
Press Window -> Preferences -> Java -> Editor -> Content Assist -> Advanced
-
Select "Other Java Proposals" in「Select the proposal kinds contained in the 'default' content assist list」
-
Hot keys
-
Ctrl + l: Go to the specified line
-
Ctrl + Q: Go to last edit place
-
Ctrl + D: Delete a line
-
Ctrl + Shift + F: Format code fast
-
Shift + Tab: Align code
-
Please refer to http://denver.blog.51cto.com/272871/52219 to get more details
-
Change encoding
-
Change the encoding for your entire Workbench
Preferences > General > Workspace and select the Text File Encoding (such as UTF-8)
-
Change the encoding for a single file
Right click file, then select Properties > Resoueces and select the Text File Encoding (such as UTF-8)
-
xxx
-
Change Code Style
Window -> Preferences -> Java -> Code Style -> Formatter, you can configure to replace TAB with Blanks, etc.
-
Constructor
In Java, you can invoke other constructors in a constructor, such as
public MyConstructor (type a)
{
this(a, b, c);
}
Note: You can't do like this in C++.
-
Comments
-
Add comments
Ctrl+shift+/
-
Remove comments
Ctrl+shift+\
-
...
阅读(911) | 评论(0) | 转发(0) |