I'd like to use one of my Projects where everything is configured fine and how it is need to start working as a "template" for creating a new Project within eclipse with CDT.
So that time for configuring and writing a working project can be safed because it was already made somewhere else.
Any hints?
You could always right-click the project, choose "copy" and then hit ctrl+v (command+v on mac) to paste a new copy of the project into the workspace, then delete the source files that you don't need, leaving only the project configuration.
Just some ideas:
- You can also use File->Export to export the C/C++ project settings, and include those with the project itself (like on a git repo?)
- You could make your 'perfect' starting project and use that as a git repo. Then, when you want to use it, just clone and disconnect (under the team menu) the template. Finally, you can re-share to a new repo?
- Save the project as 'read-only' and use it as a starting point (now use Save as..) (Not tested, just an idea)
Finally, if you want to do it right, your going to have to write up a plugin! Yay!
Good starting point if you choose this route from this SO link
More on making Eclipse plugins (a bit old)
Good luck! And let us know if you come up with anything else...
来源:https://stackoverflow.com/questions/8243121/how-to-use-an-existing-project-as-a-template-for-a-new-one-with-eclipse-cdt