Loading...

May 21, 2008

Use separate settings directories for different environments in NetBeans

I use NetBeans for both my private and work related projects. I like to keep the settings for the work related projects separate from my private projects. This way I can comply to Java formatting rules, which are used at my work, but I don't want to use for my own projects. I can turn on and off modules depending on my needs. And although NetBeans has project groups to group several projects, it turned out I had a lot of projects open in NetBeans. These projects were mixed work and private projects.

So I created two shortcuts to start NetBeans. For each shortcut I add the --userdir startup parameter. Now I can use different directories to store user settings in: one for my work and one for my private projects.