Creating a new C++ Project in Eclipse CDT with the same settings as another project

前端 未结 2 355
抹茶落季
抹茶落季 2020-11-30 13:06

Is there a straightforward way to create a new C++ project that clones the settings of an existing project? When developing C++, I like to write many small tests and example

2条回答
  •  暗喜
    暗喜 (楼主)
    2020-11-30 13:45

    I like Jonah's answer, it is very informative. Lately I've been using Ease and Py4J to automatically re-recreate a large number of projects with the cdt settings I need. I just wanted to mention another possible way of doing this type of automation.

    1. Create your template project , store it in some workspace, doesn't necessarily need to be in the same workspace as the one you are importing to

    2. File->Import->Gneral->Existing Projects-> Select your template project directory

    3. Select "Copy projects into workspace" option

    4. Finish

    5. Optionally rename the project, this way when you import the project again as a new project, there will be no naming conflicts

提交回复
热议问题