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.

Code composer studio V5 change spaces instead tabs in old source code file.

Hi,

Please, could somebody tell me how to do for changing spaces instead tabs in old source files reused in a new project?

If I go to the window preferences->C/C++->Code Style and I create my own profile, I succedeed to change spaces instead tabs in the modified lines only, but not in the whole source file. (The unmodified source lines remained with tabs).

Thanks.

Shmuel.

  • Hi Shmuel,

    Have you tried to change the editor settings for save actions? (Window -> Preferences -> C/C++ -> Editor -> Save Actions -> Remove trailing whitespaces -> In all lines) Perhaps that helps.

    Christian

  • Once you have your Code Style in place, you can do two things:

    1. Highlight the code you want to apply the style to, or
    2. Make sure no code is highlighted in the file to change entire file.
    Then use Control-Shift-F to apply the current set Code Style.  I really like this feature of CCS v5.