Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio 2022: Bold font in the entire editor

I downloaded & installed Visual Studios 2022. After creating a new project, and playing with the IDE for some time, I noticed that my font size was set to bold everywhere in the editor. Keywords, operators, punctuation, strings, variables, functions, classes, everything! Obviously I tried to change the size of the font, but it always reverts back to being bold.

Did I do something to cause this? How can I change it to not use bold font everywhere?

like image 920
j D3V Avatar asked Nov 11 '21 09:11

j D3V


People also ask

How do I change font in Visual Studio editor?

On the menu bar, choose Tools > Options. In the options list, choose Environment > Fonts and Colors. In Show settings for list, select Text Editor. Modify the Font and Size options to change the font and text size for the editor.

How do I make my font bold?

Type the keyboard shortcut: CTRL+B.

What is default font in Visual Studio?

The default size used by the Visual Studio font service comes from Windows and appears as 9 pt. You can apply formatting to the environment font.

How do I change the default font in Visual Studio 2022?

This is due to the new Visual Studio 2022 font, Cascadia Mono, which is designed to make text easier to read for people with disabilities like Character Dysmorphia or Dyslexia. You can change this back to "Consolas", the VS 2019 font by going to Tools > Options > Environment > Fonts and Colours > "Show settings for: Text Edit" > "Font": Consolas.

What is the default size of the Visual Studio font service?

The default size used by the Visual Studio font service comes from Windows and appears as 9 pt. You can apply formatting to the environment font. This topic covers how and where to use styles. For implementation information, refer to The environment font. Bold text is used sparingly in Visual Studio and should be reserved for:

What is the use of bold text in Visual Studio?

Bold text is used sparingly in Visual Studio and should be reserved for: question labels in wizards. designating the active project in Solution Explorer. overridden values in the Properties tool window. certain events in the Visual Basic editor drop-down lists. server-generated content in the document outline for web pages.

How do I change the font and text size in Visual Studio?

Modify the Font and Size options to change the font and text size for the IDE. Select the appropriate item in Display items, and then modify the Item foreground and Item background options. On the menu bar, choose Tools > Options. In the options list, choose Environment > Fonts and Colors. In Show settings for list, select Text Editor.


2 Answers

This is due to Microsoft changing the default font in Visual Studio 2022 from Consolas to Cascadia Code: a font which is designed to make text easier to read for people with disabilities like Character Dysmorphia or Dyslexia. You can change this back to "Consolas", the VS 2019 font by going to

Tools > Options > Environment > Fonts and Colors > "Show settings for: Text Edit" > Font: "Consolas"

like image 191
Andy Jones Avatar answered Oct 22 '22 08:10

Andy Jones



SO THERE ARE A COUPLE OF ISSUES THAT CAUSE THE FONT TO RENDER OVERLY BOLD


I know that this answer isn't as popular as the other answer, but there was more to this problem than just changing the font. Originally, I tried changing the font, and it didn't work. It turned out, I had somehow turned on an option called "Windows High Contrast" which renders the font as an "ANSI Standardized Terminal Emulators" where there is an option of font that is not only more saturated & brighter, but bolder as well. Only then did changing the font back to the Original Microsoft Consoles font provide the experience I had expected.


Even Here the Story Doesn't End

I later found out about a feature called Power-lines, which is a really awesome looking feature, and provides a great command-line experience. And Cascadia Code supports Power-lines, Consoles does not.

Also I have to read code in a foreign language occasionally, and Slavic/Asian Languages render very nicely in Cascadia Code. So after over 6 months of grappling with fonts. I found that Cascadia Code actually has a variable font-weight, such that 300 and 400 are valid weights, but so 350, or 565 (too bold).

So for me, what worked, was to change Cascadia Codes weight to 350. Its actually kind of cool to be able to pick a font's boldness using a dynamic weight, rather than being restricted to increments of 100.

  1. Tools
  2. Options
  3. Environment
  4. Fonts and Colors
  5. Text Edit
  6. Font Weight: 350

Image Showing Windows Terminal w/ Power Lines Support

enter image description here

like image 5
j D3V Avatar answered Oct 22 '22 08:10

j D3V