Difference between revisions of "Eclipse Tips"
Jump to navigation
Jump to search
Line 18: | Line 18: | ||
==Content Assist== | ==Content Assist== | ||
− | |||
Content assist is amazing. You should use it. | Content assist is amazing. You should use it. | ||
− | + | ===Windows=== | |
On Windows it is pretty easy. Just type Ctrl+SPACE. | On Windows it is pretty easy. Just type Ctrl+SPACE. | ||
− | + | ===Mac=== | |
On the Mac, the Spotlight often masks content assist. | On the Mac, the Spotlight often masks content assist. | ||
[http://stefaanlippens.net/code_completion_shortcut_eclipse_osx/] | [http://stefaanlippens.net/code_completion_shortcut_eclipse_osx/] | ||
− | == | + | ==Content Assist lambda ()->{}=== |
[http://www.cse.wustl.edu/~cosgroved/courses/cse231/s17/tips/lambda_template/] | [http://www.cse.wustl.edu/~cosgroved/courses/cse231/s17/tips/lambda_template/] | ||
− | == | + | ==Content Assist async,finish imports=== |
[[File:V5ImportStaticPreferences.png]] | [[File:V5ImportStaticPreferences.png]] | ||
Revision as of 02:34, 19 January 2018
Eclipse is a very powerful IDE for Java development. You can download it from eclipse.org/downloads. This page will contain tips for using Eclipse more efficiently in this class.
Contents
Refresh
Sometimes after you pull from git you will find that your project needs to be refreshed. The following steps are a bit heavy handed, but often will get your project back up and working again.
Select your project in the package explorer:
- "F5" to refresh
- "Alt-F5" to refresh Maven
- "Project" -> "Clean..." from the menu bar.
Note in order to invoke the function keys on some laptops you need to press the Function modifier key.
Maven
Sometimes refreshing Maven isn't enough.
Content Assist
Content assist is amazing. You should use it.
Windows
On Windows it is pretty easy. Just type Ctrl+SPACE.
Mac
On the Mac, the Spotlight often masks content assist.