How to use an existing project as a template for a new one with Eclipse (CDT)?

I would like to use one of my projects where everything is fine-tuned and how to start working as a “template” to create a new project in eclipse using CDT.

So the time to set up and write a working draft can be safe, because it has already been done somewhere else.

Any clues?

+4
source share
2 answers

You can always right-click on a project, select “copy”, and then press Ctrl + V (command + v on Mac) to paste a new copy of the project into the workspace and then delete the source files, t you need to leave only the project configuration .

+5
source

Just some ideas:

  • You can also use File-> Export to export C / C ++ project settings and enable those that have the project itself (e.g. on git repo?)
  • You can create your “perfect” starter project and use it as a git repository. Then, when you want to use it, just clone and disable (in the command bar) the template. Finally, can you move on to the new repo?
  • Save the project as read-only and use it as a starting point (now use Save As) (not verified, just an idea).

Finally, if you want to do it right, you have to write a plugin! Hooray!

A good starting point if you choose this route from this SO link

Learn more about creating Eclipse plugins (some old ones)

Good luck And let us know if you come up with anything else ...

0
source

Source: https://habr.com/ru/post/1382707/


All Articles