How to use JetbrainsMono font in Microsoft Visual Studio 2019 - visual-studio

is there any way I can install Jetbrains Monospace font in Microsoft Visual Studio 2019?
Because Visual studio doesn't show the font in the list if available fonts and it doesn't offer an option to browse for/install it.

Go to Tools -> Options
Environment group, Fonts and Colors item allows you to specify custom font for any of the display items.
I believe all of them are monospace.

For Visual Studio to offer you a font, it must be installed on your windows system. You can install the font through the Windows Settings screen. You can find the option to install fonts in the Personalisation section.
After installing the font in Windows, Visual studio should allow you to select it as your editor font.
See also:
https://www.tomshardware.com/how-to/install-fonts-on-windows-11

Step 1
Download the font from the JetBrains font website and install it on your system like you would any other font.
Step 2
In VS Code type, Shift + Cmd + P -- start typing settings.json and then hit enter when Preferences: Open Settings (JSON) populates.
Once inside settings.json, add the following lines to the end of your file, before the closing bracket:
{
// ... older settings above this line ...
"editor.fontFamily": "'JetBrains Mono', Menlo, Monaco, 'Courier New', monospace",
"editor.fontSize": 13,
"editor.fontLigatures": true,
}
Save the file and restart your editor. This will set the default font (and give a few backups), along with a few preferred settings I've seen for JetBrains (turn on the cool ligatures and set the font size).
Feel free to play with these as well for something more custom tailored.

Related

Font loading issue in Visual Studio 2019

I've recently installed the Fira Code font for Visual Studio 2019, version 16.6.3
The issue that I have is that after I shut down my computer, the font won't load properly unless I close VS and re-install it (and, when I do that, Windows also tells me that the font is already installed and I have to confirm that I want to overwrite it) in order to get it to load properly.
The confusing thing about this issue is that even when the font doesn't load correctly (it loads the default font instead) it stil appears to be properly selected in Tools > Options > Environment > Fonts And Colors.
I solved it by installing the font for all the users, which can be achieved by simply left clicking the .ttf file and selecting the "Install for all users" option.

Disable ligatures in Visual Studio

I found this question that is about enabling ligatures in Visual Studio, which appears to be automatic.
However, I don't like ligatures, so I was wondering if it is possible to disable them. I can't find anything in VS2017 or VS2019.
I also want to disable font ligatures in VS2017 today, then I found this link in MSDN community site. They say:
Currently, Visual Studio doesn’t have the ability to disable font ligatures in the editor, so the only option you currently have available is to chose a font that doesn’t provide ligatures.
I think they are foolish about this.
I ran into that issue in VS2022 aswell when tried to install Jetbrains Mono font. But it occured that jetbrains provides same font without ligatures, it's name is followed by 'NL'
Some time ago Microsoft created "Cascadia Mono" font, which is the same font as default in Visual Studio, but without ligatures.
You can download "Cascadia Mono" font from here:
https://github.com/microsoft/cascadia-code/releases
Install this font on your machine, restart Visual Studio, select "Cascadia Mono" font, and you will achieve the same result as "disabling" ligatures in VS.

Set Visual Studio font size for "Error List" tool window only?

In Visual Studio 2017, is it possible to change the UI font size for the IDE Error List tool window only, i.e., without affecting any other settings?
Having said this, I can't even find any setting in Tools > Options > Environment > Fonts and Colors that affects the Error List at all, even after restarting Visual Studio as suggested.
It is done by changing the Environment Font. It changes the menu font too.
Tools->Options->Fonts and Colors->Environment
I have the same issue and couldn't resolve in Visual Studio (the font size updates in other areas of VS, but the error list stays the same).
I only needed a bigger font for a presentation so used the magnifier tool in Windows. Not something you want to use all the time, but great for a short-term need
Unfortunately, Visual Studio (2022 and most likely older) does not allow to change the font of the error list independently from the rest of the environment.
Somebody asked for the default font of the environment. The default font is "Segoe UI" with font size 9.

Visual Studio 2015, installed font is not applied

I installed (as MS recommend) a font and tried to assign it into 'Options/Environment/Fonts and Colors' but doesn't work.
Lucida Console font applied:
InputMonoCondensed font applied:
Restarted Visual Studio and my computer without success, what could be wrong?
Notes:
OS: Windows 10 Pro
VS: Community 2015 v14 Update 3
.NET Framework: v4.6
All were installed and updated into a new computer.
This is actually a known issue documented on Input download website http://input.fontbureau.com/workarounds/
Here is the relevant part:
In certain configurations of Visual Studio (2010–2013), the default Input installation will not display at all, and instead you’ll see Courier. A workaround is to customize and download a four-style family (which will appear in your font menu as “Input”), rather than selecting from the whole family. Some users reported that they had to reboot their system for the change to take effect.
Solution is mentioned, on the download page http://input.fontbureau.com/download/ chose "Customize your download" option and select "Download a custom four-style family", based on InputMonoCondensed.
Install this font after downloading, and select the font named Input (just Input, not InputMono or InputMonoCondensed for instance) into Visual Studio options:
That's it!
Now you can edit using Input font, that's actually what I personally use.

Class names not coloured in Visual Studio 2012

I am evaluating Visual Studio 2012 and am having some problems with the color schema.
Sure enough I was able to overcome the initial discomfort by setting my color for the text editor.
One thing I have not been able to set corrent are the color for the class names.
Say you have a line like below.
Class name = new Class();
the entire line is in the same color, expect the new keyword.
I want the word 'Class' to be in a different color like in earlier versions of Visual Studio.
I am not able to set the color for this from the Option.
I have tried chaning color for all fields like plain text, literals, identifier, etc under
Tool -> Option -> Environment -> Font & Colors
but still I am not able to fix this.
I have also applied custome themes, those are also not helping.
I wouldn't want to install a productivity power tool for such basic preference right ??
Edit:
I'm on Windows 7 x64 and Visual Studio Professional 2012, Version 11.0.50727.1 RTMREL
The solution I found is a combination of the suggestions found in a mish mash of related threads:
Close Visual Studio and open the VS command prompt as an administrator. Navigate to the devenv.exe file (in Express versions it is titled something along the lines of *express.exe) usually located in C://Program Files (x86)/Microsoft Visual Studio 11.0/Common7/IDE.
Type devenv.exe /setup
Reopen Visual Studio. If everything is all colored now, great! If not, close the tabs and reopen them.
Performing all of step 3 is what has got my coloring to come back to normal.
Here is where I got the suggestions:
Visual Studio 2012 - Intellisense sometimes disappearing / broken
How can I get user type C# syntax highlighting working again in VS 2012 RC?
If you're using Productive Power Tools, go to => Tools -> Options -> Productive Power Tools. In main menu, TURN OFF the option: Colorized Parameter Help.
I solved my problem, I'm on Windows 8 Pro, Visual Studio 2012 Ultimate.
You're on the right track. Under Tools -> Options -> Environment -> Fonts and Colors, you want to change "User Types", first making sure at the top of the dialog that you are viewing the settings for the "Text Editor"
Although, by default with my install of Visual Studio 2012 these were already set, so you may want to try the "Use Defaults" button, unless you've made other changes that you want to keep.
go to the tools >Option click on enviroment navigation and click on import and export setting and copy the url and open directory from the url and delete all font and color file .which you got setting folder
The workaround provided by Donatas on Microsoft Connect works without having to turn off any option of Productivity Power Tools:
There is a workaround without turning off "Colorized Parameter Help".
Go to Tools > Options > Environment > Fonts and Colors in Display
items select "User Types (Value types)" click Custom next to Item
foreground color and in the color picker change Red, Green or Blue by
1, i.e. to make a custom color which basically looks the same. OK on
all the dialogs and problem solved.

Resources