Eclipse Customization

From campisano.org
Jump to navigation Jump to search

Common preferences

Window -> Preferences
General -> Apparence -> Theme: Classic
General -> Apparence -> Color and Fonts -> text font : Monospace 12
General -> Editor -> Text Editor
Insert spaces for tabs
Show line numbers
Show whitespace characters # configure visibility -> "25"
General -> Editor -> Text Editor -> Spelling -> Disable


C++ Only

C/C++ -> Code Style -> Formatter
click New...
Profile name: "Ascii [custom]"
copy from: "BSD/Allman [built-in]"
click Ok
Indentation -> Tab policy: "Spaces only"
click Ok


External tools

XTerm

Run -> External Tools -> External Tools Configurations
Program -> New
Name: "XTerm"
Location: "/usr/bin/xterm"
Working Directory: "${selected_resource_loc}"
Build -> uncheck 'Build before launch


Nautilus

Run -> External Tools -> External Tools Configurations
Program -> New
Name: "Nautilus"
Location: "/usr/bin/nautilus"
Arguments: "--no-desktop ${selected_resource_loc}"
Build -> uncheck 'Build before launch


Astyle

Run -> External Tools -> External Tools Configurations
Program -> New
Name: "Astyle"
Location: "/usr/bin/astyle"
Arguments: "--style=ansi -n ${resource_loc}"
Refresh -> Refresh resource -> The selected resource
Build -> uncheck 'Build before launch


DDD

Run -> External Tools -> External Tools Configurations
Program -> New
Name: "DDD"
Location: "/usr/bin/ddd"
Working Directory: "${project_loc}"
Arguments: "${selected_resource_loc}"
Build -> uncheck 'Build before launch


Eclipse Dark Theme

UI Theme

Open Eclipse, go to help -> install new software
select 'work with' 'Add'
type 'Name:' "Jeeeyul's Eclipse Themes" and 'Location:' "https://raw.github.com/jeeeyul/eclipse-themes/master/net.jeeeyul.eclipse.themes.updatesite" and click 'OK'
select 'Jeeeyul's themes' and click 'Next ->' 'Next ->' select 'Accept' and 'Finish'
accept and restart
General -> Apparence -> Theme: 'Jeeeyul's Themes - Chrome Theme', enable animations and mixed fonts
General -> Apparence -> Color Theme -> upper right corner click -> Editor1s Presets -> Chrome Classic
General -> Apparence -> Color Theme -> upper right corner click -> Adjust Colors Globally -> Brightness Amp -> 25%


Text Editor Theme

Choose a good theme like 'NightLion Aptana Theme' (shuld be included in the plugin, the link is http://eclipsecolorthemes.org/?view=theme&id=47)
Open Eclipse, go to help -> install new software
select 'work with' 'Add'
type 'Name:' "Eclipse Color Theme" and 'Location:' "http://eclipse-color-theme.github.com/update" and click 'OK'
select 'Eclipse Color Theme' and click 'Next ->' 'Next ->' select 'Accept' and 'Finish'
accept and restart