From 0a13f0899907942bf1f3c047b30adb21d96c91df Mon Sep 17 00:00:00 2001 From: Jan De Dobbeleer Date: Mon, 25 Dec 2023 11:18:33 +0100 Subject: [PATCH] docs(fonts): add Visual Studio guide --- website/docs/installation/fonts.mdx | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/website/docs/installation/fonts.mdx b/website/docs/installation/fonts.mdx index a2033fb3..92c57f09 100644 --- a/website/docs/installation/fonts.mdx +++ b/website/docs/installation/fonts.mdx @@ -61,7 +61,8 @@ Make sure to **configure your terminal** to use the font you have installed. The defaultValue="wt" values={[ { label: 'Windows Terminal', value: 'wt' }, - { label: 'VS Code', value: 'code' } + { label: 'Visual Studio Code', value: 'code' }, + { label: 'Visual Studio', value: 'vs' } ] }> @@ -81,7 +82,7 @@ by modifying the Windows Terminal settings (default shortcut: `CTRL + SHIFT + ,` { "defaults": { - "font": + "font": { "face": "MesloLGM Nerd Font" } @@ -101,6 +102,16 @@ If you are using the JSON based settings, you will need to update the `terminal. "terminal.integrated.fontFamily": "MesloLGM Nerd Font" ``` + + + +When using Visual Studio, you will need to configure the integrated Terminal to make use of the Nerd Font as well. This can be done by opening the settings +in `Tools > Options > Fonts and Colors > Terminal` and selecting a font like `MesloLGM Nerd Font`. + +:::warning +OTF fonts do not appear in Visual Studio's Terminal settings, only TTF fonts. See [here][vs-otf] for more information. +::: + @@ -116,3 +127,4 @@ The `minimal` themes do not make use of Nerd Font icons. [themes]: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/themes [configuration]: /docs/installation/customize [wt-issue-8993]: https://github.com/microsoft/terminal/issues/8993 +[vs-otf]: https://stackoverflow.com/questions/75252606/is-it-possible-to-use-nerd-fonts-as-the-font-for-terminals-in-visual-studio