Skip to content

Instantly share code, notes, and snippets.

@AndersDJohnson
Last active June 5, 2019 13:35
Show Gist options
  • Save AndersDJohnson/5706331 to your computer and use it in GitHub Desktop.
Save AndersDJohnson/5706331 to your computer and use it in GitHub Desktop.
Eclipse notes

Eclipse notes

Useful hotkeys

Editing

Hotkey Description
Ctrl+Space Context Assist
Ctrl+/ comment/uncomment selected lines
Ctrl+Shift+I unindent selection
Ctrl+Shift+F Reformat source
Ctrl+Shift+O organise imports (removes unused imports, adds missing imports, sorts imports)
Alt+Shift+R rename selection

Navigation

Hotkey Description
Ctrl+Shift+T search for Java classes in your projects
Ctrl+Shift+R search all resources in your projects
Alt+Left step backwards through editing history
Alt+Right step forwards through editing history

Settings

Eclipse launch configurations at the workspace level are stored in .metadata\.plugins\org.eclipse.debug.core\.launches.

Runtime settings

Directory: ".metadata.plugins\org.eclipse.core.runtime.settings"

Config file

Look for "eclipse.ini" or "config.ini" in the install directory under "configuration" or the ".eclipse/configuration" directory in your user directory.

Yyou can change the VM settings with which Eclipse starts, e.g. [increasing memory limits](See http://wiki.eclipse.org/FAQ_How_do_I_increase_the_heap_size_available_to_Eclipse%3F).

Plugins

Pesky things

Javascript Validator error

"You will probably try to disable ‘Client-side Javascript’ validation from Project->Properties->Validation… but I tell you that the problem is not there, you must go to Project->Properties->Builders then disable ‘Javascript Validator’." (http://blindcoder.wordpress.com/2011/03/04/javascript-validator-problem-in-eclipse/)

Won't Start

"An error has occurred. See the log file" "Workspace was not properly initialized or has already shutdown." "Worker thread ended job: Refreshing workspace(10), but still holds rule: ThreadJob"

Fix: Run Eclipse with the "-clean" parameter.

Groovy/Grails Tools Suite

Compiler preferences error

org.codehaus.groovy.frameworkadapter.util.SpecifiedVersion Fix:

Preferences Management

https://github.com/pellaton/eclipse-team-etceteras http://www.slideshare.net/netceteragroup/managing-eclipse-preferences-for-teams https://code.google.com/a/eclipselabs.org/p/workspacemechanic/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment