Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

intellij idea run configurations backup

I would like to create a script to modify my debug configuration in intellij. The path of tomcat changes, and i have to manually go into the run config and edit things. I have tried to find the place where intellij stores these settings to no avail.

question: does anyone know where IJ stores its run configuration

like image 469
mkoryak Avatar asked Jun 28 '10 20:06

mkoryak


People also ask

How do I copy run configuration in IntelliJ?

Open Left Project Pane -> Copy . run folder -> open another project without closing intellij -> Paste on main project level. Your previously saved run config appears here.

Where are IntelliJ run configurations stored?

By default, it is disabled, and IntelliJ IDEA stores run configuration settings in . idea/workspace. xml.

How do I save IntelliJ config?

Choose File | Manage IDE Settings | Export Settings from the main menu. In the Export Settings dialog that opens specify the settings to export by selecting the checkboxes next to them.

Where are run configurations stored?

These configrations are located in . metadata/. plugins/org.


2 Answers

The location would depend on 2 factors, whether the configuration is local to the user or shared with the other developers and if you are using the file based (legacy) or the directory based project format.

  • File based project, local configuration: .iws file
  • Directory based project, local configuration: workspace.xml file under .idea directory
  • File based project, shared configuration: .ipr file
  • Directory based project, shared configuration: .xml file under runConfigurations subdirectory of .idea directory or files inside .run directory in the project root (you can customize the location of the shared configurations in the latest versions).
like image 195
CrazyCoder Avatar answered Sep 23 '22 02:09

CrazyCoder


Its here .idea\runConfigurations (correct for Idea 11). Just copy this folder to new project.

EDIT: As per comment, if runConfigurations folder doesn't exist, check the 'Share' box inside the Run/Debug configuration

like image 35
user590444 Avatar answered Sep 19 '22 02:09

user590444