Search code examples
c++csublimetext3atom-editor

Why don't IDEs highlight string data type in C/C++?


I am using Sublime Text 3 and Atom to code C and C++. But they don't highlight string data type as shown below.

enter image description here

This issue is frustrating me when I use Atom and Sublime. This doesn't happen in Visual Studio Code.

Are there any ways to fix this issue except using Visual Studio Code instead?


Solution

  • For Atom:

    1. Press Ctrl + ,(comma) to open Settings.
    2. Go to Settings > Core.
    3. Check Use Tree-sitter Parsers for supported languages.

    Additional Steps:

    1. Install Atom language support for C/C++ (Official) or C++14 language support (3rd Party).

    For Sublime Text 3:

    1. Install C++ Starting Kit or C Improved or C++11.

    Note: The extensions/packages mentioned in this post are made by respective open source developers. I do not intend to promote a certain product.