Eclipse CDT copies all project settings

You can export settings from one project and import them into another.

However, it seems that only “include paths” and “characters” can be moved to a new project this way.

Is there a reliable way to copy all the settings? In particular, I would like to copy the linker settings for my embedded ARM project.

I do not want to copy the settings manually, as this is something that needs to be done often with the help of a group of people.

+4
source share
2 answers

The easiest way I discovered to duplicate settings for a project is to use a different workspace. It takes several steps to configure, but you only need to do it once.
1. Launch a second copy of the eclipse and select or create a new workspace.
2. Import the source code.
3. Rename the project to something common, such as NewProject 4. If your project has files that you do not want to import into new projects, delete them. I find it useful to store several (e.g. main.cpp)

Now back to the original workspace.
1. File-> Import-> Existing projects in the Next workspace

2. Use Browse... to navigate to the newly created workspace and select NewProject.
3. Select the Copy projects into workspace check box.
4. If you have warnings about an existing project, try clicking the Refresh button and make sure that you do not have a folder in the current workspace with the same name. You can delete the project, but not delete it from the hard drive, so you must make sure that the name of the selected folder is not used. ]
5. Rename the project to the name you need. 6. Start coding ...

All tool chain settings, including paths and library paths, must be intact. This seems like a lot of work, but once you do, it is not so bad (as long as you can duplicate this project).

+1
source

This can be done in simple steps. Useful if you do not want to create new workspaces.

  • Open the project in the workspace.
  • Click on the project and copy.
  • In the project tab area, paste the project.
  • Eclipse asks for a name, renames it to a new project.
  • Click OK.
0
source

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


All Articles