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.

CODECOMPOSER: CCS20 Theia Code Formatter

Part Number: CODECOMPOSER


Tool/software:

Hi,

Is it possible to edit code formatter in CCS20 Theia?

I mean configuring the auto indention, scope/braces opening etc. during statement typing such as if/else, switch/case etc.

Didn't find this in the setting options.

Thanks in advance.

  • Hello,

    Many of those should be in the general settings. It can be hard to find. I suggest using the search box to help find them:

    Thanks

    ki

  • This auto indention i have found. I can't find the statements formatting (if/else, switch/case etc.)

    I agree its hard to find anything in this new settings window. Maybe its a matter of getting used to it. Using the search helps but i still couldn't find it.

  • Using the search helps but i still couldn't find it.

    It's tricky since you need to still use the relevant search term. One thing to consider is that CCS is based off Theia IDE, which in turn is based on VS Code. Many (but not all) of the settings are common between the environments hence VS Code documentation can be useful.

    Another thing to consider is if a a feature is not available, you can try looking for an extension that provides that setting/feature. Extensions available from the Open VSX registry should work well with CCS.

  • i followed your recommendation and checked how this is done in Theia/VS. It seems that the way to do that is through editing the settings json file and using extensions (like clangd). spent a couple of hours on that (without real success) and realized its more for software engineers and not for hardware engineers...

  • and realized its more for software engineers and not for hardware engineers...

    This is definitely valid comment. CCS is based on a VS Code environment which is a one of the most popular editor IDE environments for software developers. Not just the settings.json but also the launch.json also. We are looking to make things easier on this regard.

    Don't forget to browse through available extensions for the editor. There are many extensions that add on a variety of features.