Eclipse configuration - SanchoGGP/ggp-base GitHub Wiki
These instructions cover the installation and configuration of Eclispe to support the project coding style, warnings, etc..
##Installation##
- Download Eclipse Kepler SR2 64-bit.
- Unzip Eclipse.
- Start Eclipse, choosing a workspace location of your choice.
##Standard settings##
Import the standard settings.
- File -> Import -> General -> Preferences -> Next
- From preference file -> eclipse.epf (in the repository root)
- Ensure Import All is checked
- Finish
- File -> Restart
- Windows -> Preferences -> Java -> Code Style -> Formatter. Change 'Active profile' to anything other than 'GGP Conventions' and Apply it. Then change back again and Apply it.
##Optional settings##
The following are entirely optional, but you might find them useful.
###Content Assist###
If your machine is powerful enough, you can enable immediate content assist...
- Window -> Preferences
- Java -> Editor -> Content Assist
- Check "Enable auto activation"
- Set "Auto activation delay" to 0
###Personal TODO markers###
To easily identify TODO markers that you've left in the code...
- Window -> Preferences
- Java -> Compiler -> Task Tags
- New...
- Tag = [Your initials]
- Priority = High
- OK
- Select your new tag and click "Default"
- Apply
- Confirm the full rebuild
You can filter the Tasks view via the small downward pointing triangle -> Configure Contents -> New
- Name = Personal Filter
- Scope = On any element
- Description contains [your initials]
###Asserts###
To enable asserts by default...
- Window -> Preferences
- Java -> Installed JREs
- Select the checked JRE and click Edit...
- Add
-ea
to the Default VM Arguments
###Font###
On Windows 7, Eclipse uses the Segoe UI font by default. This differs substantially from previous releases of Eclipse / Windows. To switch back to Courier New, do the following.
- Window -> Preferences
- General -> Appearance -> Colors and Fonts
- Basic -> Text Font
- Edit...
- [Select your font, e.g. Courier New 10]
- Basic -> Text Editor Block Selection Font
- Edit...
- Select your font