Home > OS >  How to get special fonts for keywords in Visual Studio
How to get special fonts for keywords in Visual Studio

Time:04-10

I was watching a C video by The Cherno, and noticed that he gets italics/different fonts depending on the keywords he types. Here is an image: enter image description here

Does anyone know what font he's using and how he configured "main" and "string" to be italicized? Thanks!

CodePudding user response:

Judging from the look of the code, I am pretty sure that the screenshot shows the syntax highlighting set by Visual Assist in dark mode by default. The italic font for system symbols is one specific feature of that plugin.

Maybe you can also get the same effect using the Reshaper C plugin, but I personally have not used it before, so I cannot confirm this.

Unfortunately, both plugins are commercial. I am not aware of a free plugin that allows such a kind of context sensitive choice of fonts.

The font itself is most likely Consolas, which is (AFAIK) the default in Visual Studio 2019.

CodePudding user response:

There is no italic option in Visual Studio Tools -> Options -> Environment -> Font and Colors settings.

I suspect that there is some plugin involved. Obviously you can do it - see https://marketplace.visualstudio.com/items?itemName=OmarRwemi.BetterComments

  • Related