Cannot change fonts in Visual Studio 2013

2020-07-09 04:27发布

问题:

I used to be able to change the fonts and colors of Visual Studio 2013 by going to Tools > Options, then Environment > Fonts and Colors, and finally showing the settings for the Text Editor. However, now I cannot show the settings for the Text Editor. The first setting in the list is now the fonts and colors for the Printer.

Edit: Here is a photo of where the setting is missing.

回答1:

First try to remove HCU\Software\Microsoft\VisualStudio\12.0\FontAndColors\Cache

If that will not help try to remove both HCU\Software\Microsoft\VisualStudio\12.0\FontAndColors and HCU\Software\Microsoft\VisualStudio\12.0_Config\FontAndColors and then run Rapair on your VS 2013 installation.

It should help.

credits goes to @leppie



回答2:

I found working solution!

I used regedit and and path HCU\Software\Microsoft\VisualStudio\12.0\FontAndColors from answer https://stackoverflow.com/a/26925783/1035334.

I have changed fields FontName & FontPointSize in each subdirectory of FontAndColors and restarted Visual Studio.

How did I find this?

I noticed when I save changes in VS, VS deleting all subdirecories of FontAndColors and then create its again with default values.