How do I share IntelliJ Run/Debug configurations between projects?

Daniel Kaplan

I have many different versions of my app. Each one is a separate intellij project. Every time I open a new one, the list of configurations starts blank:

enter image description here

The annoying thing about this is I deploy to 1 vm and I have to copy and paste the debug configurations each time I want to test a different version. Intellij makes this dialog modal per Intellij Instance, so I can't copy and paste the fields between Project Instances.

I end up taking a screenshot of one configuration and copying the fields by hand into the other project. It's a pretty primitive solution. Is there a more convenient way to get a run configuration from one project to another?

I'm using Intellij 13 on Windows 7.


Can I share settings for IntelliJ Idea across different projects? may have the answer to this, but the question is different. It's about window layout. Therefore I don't consider it a duplicate.

Nick Humrich

The best way to do this is to click the "share" checkmark next to Name field when you edit/create the configuration. You can get to this Dialog with Run > Edit Configurations.

enter image description here

The share check-mark pulls the setting out of your workspace.xml and instead puts it in the directory .idea\runConfigurations. This is designed so you can share the setting with others. You could copy this file and put it in the same location in all your idea projects.

However, in the future, you might want to consider using source control branches for app versions rather than separate projects. IntelliJ handles these very well.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I share classes between two Android projects in Eclipse?

From Dev

How do I share C++ source code files between projects in Visual Studio?

From Dev

How do I share common code between Rust projects without publishing to crates.io?

From Dev

How do I share common code between Rust projects without publishing to crates.io?

From Dev

How do I store projects that share a common shared driver on Git

From Dev

how do i share a function between controllers?

From Dev

How do I use shared configurations across SBT (Play) multi-projects?

From Dev

How can I share clover coverage data between maven and IntelliJ

From Dev

How can I share clover coverage data between maven and IntelliJ

From Dev

How to share code between two projects?

From Dev

How to share code and resources between projects

From Dev

How to share logback.xml between projects

From Dev

How to share code between multiple projects with angularJS

From Dev

How to share Master Pages between my projects

From Dev

How to share package between multiple projects in NetBeans

From Dev

How to share commons code between different projects?

From Dev

How to share logback.xml between projects

From Dev

How to share component between multiple Ember projects

From Dev

how to share connector configurations between applications in mule esb?

From Dev

In IntelliJ, how do I set default environment variables for new test configurations?

From Dev

How to share projects effectively between TFS team projects?

From Dev

How can I share an Angular 2 component between multiple Angular 2 projects?

From Dev

How do I share dependencies between Android modules

From Dev

How do I share constants (list of atoms) between modules with Elixir?

From Java

How do I share data between components in Angular 2?

From Dev

How do I share files between two computers connected to a router?

From Dev

How do I share a mutable object between threads using Arc?

From Dev

How do I share variables between methods in a controller in Rails 4?

From Dev

How do I share access to an AtomicBool between threads?

Related Related

  1. 1

    How do I share classes between two Android projects in Eclipse?

  2. 2

    How do I share C++ source code files between projects in Visual Studio?

  3. 3

    How do I share common code between Rust projects without publishing to crates.io?

  4. 4

    How do I share common code between Rust projects without publishing to crates.io?

  5. 5

    How do I store projects that share a common shared driver on Git

  6. 6

    how do i share a function between controllers?

  7. 7

    How do I use shared configurations across SBT (Play) multi-projects?

  8. 8

    How can I share clover coverage data between maven and IntelliJ

  9. 9

    How can I share clover coverage data between maven and IntelliJ

  10. 10

    How to share code between two projects?

  11. 11

    How to share code and resources between projects

  12. 12

    How to share logback.xml between projects

  13. 13

    How to share code between multiple projects with angularJS

  14. 14

    How to share Master Pages between my projects

  15. 15

    How to share package between multiple projects in NetBeans

  16. 16

    How to share commons code between different projects?

  17. 17

    How to share logback.xml between projects

  18. 18

    How to share component between multiple Ember projects

  19. 19

    how to share connector configurations between applications in mule esb?

  20. 20

    In IntelliJ, how do I set default environment variables for new test configurations?

  21. 21

    How to share projects effectively between TFS team projects?

  22. 22

    How can I share an Angular 2 component between multiple Angular 2 projects?

  23. 23

    How do I share dependencies between Android modules

  24. 24

    How do I share constants (list of atoms) between modules with Elixir?

  25. 25

    How do I share data between components in Angular 2?

  26. 26

    How do I share files between two computers connected to a router?

  27. 27

    How do I share a mutable object between threads using Arc?

  28. 28

    How do I share variables between methods in a controller in Rails 4?

  29. 29

    How do I share access to an AtomicBool between threads?

HotTag

Archive