Git Product home page Git Product logo

Comments (3)

jeff-hykin avatar jeff-hykin commented on June 2, 2024 1

Alright, I finally created a simple post for this, feel free to read it here

from better-cpp-syntax.

jeff-hykin avatar jeff-hykin commented on June 2, 2024

screen shot 2019-02-28 at 5 56 45 am

So I believe this is actually a setting with your theme.
BUT, the good news is VS Code lets you customize absolutely everything.
If you add the following code to your settings.json, it should make them the original color again.
And in fact, if you want, you can set them to whatever color you would like so it can be different than int. (Just change the "foreground": "#bc7ed7", part below to change the color)

        "editor.tokenColorCustomizations" : 
            {
                "textMateRules": [
                {
                    "name": "symbol color",
                    "scope": [
                        "source.cpp keyword.operator" // name of thing you want to color
                    ],
                    "settings": {
                        "foreground": "#bc7ed7", // color you want it to be
                        "fontStyle": "" // bold/underline/italics or none
                    }
                }
                ]
            },

The only thing this extension does is make sure that the language gets labeled correctly (e.g. strings are marked as 'strings' and operators are marked as 'keyword.operator'). It's then the theme's job to take those names and give them color.

If you think your theme should color it that way by default, post an issue on their repo and give them that code^ and they should know exactly what to change.

In my own settings I actually make the assignment operators different from the other operators, which is pretty handy when they accidentally end up inside of if statements.
screen shot 2019-02-28 at 5 55 13 am

from better-cpp-syntax.

jeff-hykin avatar jeff-hykin commented on June 2, 2024

I'm going to keep this issue open for now until I can create a guide for customizing theme colors exactly how you want, because I believe this is going to be a common issue.

Not only can you change the colors but you can also change things like bold underline and cursive-ness of things. Read this if you want a little more info https://medium.com/@JeffHykin/how-to-get-cursive-fonts-in-vs-code-2018-without-operator-mono-220544fed93a

from better-cpp-syntax.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.