Preserve common project values across projects

Hi, I want to keep common settings such as configurations(remote debug targets, testng common values), project language level (Java 6 not Java 5) and compiler settings (max heap size) across all new projects I create.
How do I get this?

Thanks

3 comments
Comment actions Permalink

File | Other Settings | Template Settings

and

File | Other Settings | Template Project Structure

0
Comment actions Permalink

I don't see any option here to configure remote debugging options i.e. common host/port settings or a configuration for common TestNG settings

0
Comment actions Permalink

You can edit default run configurations within a project. But I do not believe there is a way to do it across projects. I would suggest opening a feature request (http://youtrack.jetbrains.net) to add such a feature.

If you want to hack something together. Those settings are saved in the project's .idea/workspace.xml file. You could create an empty project, set up all the defaults, and save the project. Go into the .idea/workspace.xml file, copy the "RunManager" component (<component name="RunManager" ...>) and save it somewhere. Then upon creating a new project, close it, edit the .idea/workspace.xml file and replace the "RunManager" component with your saved default one. You'd want to do this before you create any specific run configurations in that project. Again, this is a major hack. But it could get you by while waiting for the feature add.

Of course, another option would be to write a custom plug-in of your own that replaces all the "Default" RunManger configurations (ex: <configuration default="true" type="Applet" factoryName="Applet">) in a project with ones from a saved file or another project.

0

Please sign in to leave a comment.