eclipse setup work[]
change eclipse.ini[]
- change memory size under eclipse.ini
find Eclipse.app/ -name "eclipse.ini" Eclipse.app/Contents/Eclipse/eclipse.ini
change -Xms768m, -Xmx1024m
config user name[]
- add '-Duser.name' to eclipse.ini
-Duser.name=Lokvin
UTF-8 file encoding[]
Preferences - General - Workspace - Text file encoding : UTF-8
check installed jre[]
Preferences - Java - Installed JRES
Save automatic before build[]
Preferences - General - Workspace - check "Save automatically before build"
Organize import on save[]
Preferences - Java - Editor - Save action - check "Perform select action on save" , check "organize import"
format edit lines on save[]
For better diff changes, we only format edit lines on save instead of all file. Preferences - Java - Editor - Save action - check "Perform select action on save", check "format source code", "format edit lines on save"
editor setting[]
- preferences - General - Editors
- show line numbers
- insert spaces for tabs
- show white spaces character
- display tab width: 4
java editor use spaces indent[]
preferences - java - code style - formatter - create profile base on build in - edit - indentation - spaces only , tab size: 4
save action[]
- change java save action
Preferences->Java->Editor->Save Actions
- remove unused import
- remove unnecessary casts
disable eclipse valiate during building[]
Preference -> Validation
unselected all build validation
Java editor use space for indent[]
- Preferences - Java - Code Style - click "Edit" - Indentation
set Tab policy to: Spaces only, tab size: 4
font size[]
Preferences - General - Appearance - Colors & Fonts - Basic - Text Font font size 13
install plugin from marketplace[]
- It's convenient install plugin from eclipse marketplace: Help -> Eclipse Marketplace
Key Assist[]
- in linux eclipse , ctrl + shift + l (Help -> Key Assists)
- Word Complete, alt + /
- max(recover) current editor, ctrl + m
TODO task[]
- add //TODO mark in code, and all TODO mark can find in Tasks view.
set eclipse proxy[]
- preference - General - network connnection
HTTP set proxy HTTPS set proxy SOCKS don't set proxy
- and you can proxy bypass for don't use proxy
set eclipse JDK[]
- for mac
/Library/Java/JavaVirtualMachines/1.7.0.jdk/Contents/Home /Library/Java/JavaVirtualMachines/1.6.0_51-b11-457.jdk/Contents/Home
install lombok[]
use lombok.jar