Afternoon!
First, I hope everyone is well.
I am currently experimenting with Visual Studio [Version: 17.5.0 Preview 4.0
] (to clarify, not Visual Studio Code) and was hoping to utilize a Nerd Font, specifically CaskaydiaCove Nerd Font, for my Terminal. This is so Oh-My-Posh will have the necessary icons to display correctly.
However, it seems that Visual Studio does not allow Nerd Fonts as a font for the Terminal. If you look in the attached screenshots below, you can see that the setting’s dropdown does not list Nerd Fonts as options. Curiously, they are available as a choice for the Text Editor.
Regarding to solve it myself, I have scoured the Visual Studio documentation and tried my best Google-fu to find any results. Disappointingly most search engines return results concerning Visual Studio, not Visual Studio Code.
Before I submit a report to the developers of Visual Studio, I would like to cover all my bases and make sure I am not missing something.
Any insight would be greatly appreciated. Thank you!
2
Answers
Wild guess here. They might still be on conhost which doesn’t work with OTF files and needs TTF. So, theoretically, installing the same font as TTF could do the trick. You’ll need to do a manual install from the Nerd Font repo in this case as they don’t ship the TTF files inside their zip files.
Installing a TTF-font will make it available to select for the Visual Studio Terminal via the Fonts and Colors-settings.
Installing OTF-font files will make them appear for text editors in visual studio, but not the terminal.
Jan’s guess in his answer is in fact correct.