I have a lot of similar projects created in PHPStorm and I need the same Run/Debug configuration in all my projects. Right now the Run/Debug configuration is empty when I create a new project.
I have tried exporting and importing settings from the file menu but that does not copy the Run/Debug configuration of project A into project B.
Can someone please tell me how to copy the Run/Debug configuration of one project into another?
Save a temporary configuration as permanent Select a temporary configuration in the run/debug configuration switcher and then click Save Configuration. Once you save a temporary configuration, it becomes permanent and it is recorded in a separate XML file in the <project directory>/. idea/ directory.
How to import the xml in a new project? 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.
From the main menu, select Run | Edit Configurations. Alternatively, press Alt+Shift+F10 , then 0 . on the toolbar or press Alt+Insert . The list shows the run/debug configuration templates.
By default, it is disabled, and IntelliJ IDEA stores run configuration settings in . idea/workspace. xml.
Run/Debug Configurations are project-specific and therefore cannot be exported/imported via File | Export/Import Settings...
which is for IDE-wide settings only.
By default, all Run/Debug configurations are stored in YourProject/.idea/workspace.xml
file together with other developer-specific settings.
In order to be able to share (better say -- copy) between the projects:
Make sure that each of such Run/Debug configurations has "Shared" box ticked.
Such shared run configurations will be stored in separate *.xml
files in YourProject/.idea/runConfigurations/
folder which you can include in VCS if necessary.
You can copy these files from one project to another (while project is closed in IDE, of course).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With