Java – Where to tweak an Eclipse to change the default settings used when creating a new Workspace

eclipsejavawindows

We use Eclipse with projects in CVS. It has proven to be the simplest to create a new workspace when having to deal with another branch or application, and then use Team -> Import project set to get all the needed projects from CVS.

Unfortunately, I then have to do the following each and every time:

  • Change text font to Consolas 11 pt
  • Disable spell checking in text editors
  • Run everything in the background

plus some more of the same.

I'd like to change the standard values once and for all in the Eclipse distribution files after having unzipped the distribution (Windows). Where are these defaults located inside Eclipse?


EDIT: For now we just have a preference file which must be read in. An extra step, but works…


EDIT 2014: I've ended up creating a workspace with the settings I want, and then creating a new copy everytime I need a new one. Also handles Maven Central information etc. Accepted the oldest answer saying essentially this.

Best Answer

You can export your settings from a workspace and import them into any other (this basically does what VonC's answer says, but with some measure of error checking).

To do so, in the source workspace select File->Export...->General->Preferences, then select Export All and enter a file to export to, then Finish.

You can then import the preferences into any workspace by doing File->Import...->General->Preferences, browse to the preferences file and hitting Finish.