运行配置备份

我想创建一个脚本来修改 intellij 中的调试配置。Tomcat 的路径发生了变化,我必须手动进入运行配置并进行编辑。我试图找到 intellij 存储这些设置的地方,但是没有用。

问题 : 有人知道 IJ 在哪里存储它的运行配置吗

44323 次浏览

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).

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