Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

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.

like image 351
Thorbjørn Ravn Andersen Avatar asked Aug 21 '09 12:08

Thorbjørn Ravn Andersen


2 Answers

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.

like image 118
Rich Seller Avatar answered Sep 22 '22 14:09

Rich Seller


I have created a clean workspace with all settings i want to have. This workspace i have copied into a save folder i will never delete ;)

When i want to create a workspace for a new project, i copy the confugured workspace and thats it.

I have than configured the svn repository path, code format (you also can import preferences in eclipse for this), view configuration and so on.

like image 29
Markus Lausberg Avatar answered Sep 25 '22 14:09

Markus Lausberg