This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

CCS: How to force code formatter across several workspaces?



Tool/software: Code Composer Studio

I would like to use the CCS formatter in a similar manner to this previously solved question.  Could you explain the process for applying a customized formatter file to a project? The OP described the solution as creating an external in the .settings directory of each project.  What is an external?  Is this a link to the format project?   I am currently running CCS6 on Windows.

Thank you.

  • Toby,

    I'm not quite sure what the OP of that post meant when he referred to adding files as external.

    However, what is helpful to know is that if the formatter settings are set at workspace level, it is stored in the file <workspace>/.metadata/.plugins/org.eclipse.core/runtime/.settings/org.eclipse.cdt.core.prefs

    If set at project level after creating the project,  they are stored in <project folder>/.settings/org.eclipse.cdt.core.prefs

    Although I haven't verified this myself, it might be possible to copy the file that stores this setting over to the corresponding folder in the new workspace, as suggested in this post