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.

CCSTUDIO: Inactive preprocessor blocks are colored differently than active code | How can I change it?

Part Number: CCSTUDIO

Tool/software:

Good morning!

This question is not much related about the processor but the CCS in general.

How can I change the setting in order to get the same color format for both the section with the inactive blocks and the active ones?

If you can see, the parts in #ifdef statements are darker than others. I would like to have all the code visualized more enlighted, like all the blocks are active (even if some of them are not).

In classic Visual Studio Code, you'd go to settings.json file and change the configuration by adding:

"C_Cpp.dimInactiveRegions": false

I changed the settings.json file in C:\Users\User\AppData\Local\Texas Instruments\CCS\ccs2020\0\theia (I have only one workspace).

Now the file is presented as this:

{
	"C_Cpp.dimInactiveRegions": false,
    "window.titleBarStyle": "custom",
    "CCS.debug.targetConfigurations.directory": "/c:/Users/lpredier/ti/CCSTargetConfigurations"
}

Still, the file doesn't change the view and I'm still stuck with the different color scheme.

Can you help me?

Best regards,

Luca Predieri

  • Hello,

    CCS uses a different extension than VS Code for this functionality. So the option will be different.

    For CCS, please search for "opacity" in the general settings.

    With the Opacity setting, you can control the level of "dimming". The range is 0.00 - 1.00. 1.00 is full dim - basically the inactive code will be fully blacked out. Setting to 0.00 will not dim anything.

    Make sure the option below it is disabled for the Opacity settings to take effect.

    Thanks

    ki