Visual Studio Editor fallbacks to Courier - visual-studio-2022

After a reboot, the Visual Studio editor fallbacks to Courier font. Does anyone have any idea of why this is happening and what you can do about it?
I'm using the following version of VS:
Microsoft Visual Studio Professional 2022 (64-bit) - Version 17.1.3
I'm running the following version of Windows:
Windows 10 Enterprise, Version 21H2

This seems to be problem for some people, including myself. It is already reported at the Visual Studio Developer Community. tl;dr - this workaround is the fastest - reinstall Cascadia Mono via choco.
They changed the default font in Visual Studio 2022 to Cascadia Mono.
To answer your question why this suddenly breaks - the root cause seeems unclear as of this moment, but that font gets corrupted or removed and VS reverts back to some other font, in my case Courier. Repairing Visual Studio or reinstalling the font is required.
Or even easier, if you like the prior default font more, Consolas, just use that.

Related

How to Update Version from Earlier Versions of Visual Studio to 2017?

I have a number of projects created in earlier version of Visual Studio. These open fine in 2017, I can edit and save changes, but the solution file still has the icon indicating they are VB10, VB11 or VB14 solutions.
My concern is that in later versions of Visual Studio the solutions will no longer be supported. Can I force a complete upgrade to Visual Studio 2017? Is this necessary?

visual studio 2017 safemode

After I installed an extension to Visual Studio 2017 Enterprise, VS crashes on startup. In previous versions there was a /safemode switch. I tried it but it seems to be no longer supported. What can I do to suppress loading of extensions in Visual Studio when it crashes (cannot disable extensions via extension manager).
Thanks
There is still a /SafeMode switch. If this does not help you need to do a repair on visual studio 2017
https://learn.microsoft.com/en-us/visualstudio/ide/reference/safemode-devenv-exe

Visual Studio for Mac - Can't read or write any code

I have a problem with Visual Studio for Mac. When I make a new project or I open an existent one, I can't read correctly the code or even write. The code is correctly, in others Text Editors looks fine, but in Visual don't.
Do somebody know about this error? thanks.
Update Visual Studio.
(Click 'Visual Studio Community' in the top bar -> Check For Updates)
This must have been an early bug because I updated to 7.0.1 (Build 24) and it fixed the issue for me.

System.NullReferenceException occurs in xaml designer

I've created a C++ UWP Windows 10 app using Visual Studio 2015. However, I'm not able to visualize any xaml in the designer because I'm always getting a System.NullReferenceException error. How can I fix this?
That's very odd but I solved following these steps:
Close any instance of Visual Studio
Open Visual studio and create a new C# UWP empty project (name it as you like, do not matter)
Run the "useless" created project then close it as Visual Studio
Open again your previous C++ UWP project
In my case everything started working!
Switching solution platform to x86 worked for me.
I'm experiencing exactly the same problem on my primary development machine but not on another. The reason is... I think... When I installed Visual Studio 2015 on the 2nd machine, the first time I created a Universal Solution (C#) I was shown a dialog asking me to OK "elevated permissions" (custom permissions) for the VS2015 installation folder. I OK'd it and Designer works on that machine in both Blend2015 and VS2015 (community edition)
On the other machine I was never shown the dialog asking me to confirm elevated permissions and Designer does NOT work on that machine (VS2015 Enterprise). This machine also has VS2013 update 5) on it.
I am thinking that I might have to completely wipe off VS2015 and try to clean the registry of all VS2105 references AND remove the VS2015 installation directories on C:\ AND when I reinstall, create a installation directory with a different name (if I can). What a PAIN though... I'm waiting to see if MS delivers a simple solution since I'm quite positive that this whole issue boils down to a bug (feature... grrr) having to do with custom permissions that can't be changed (or added) after installation.
Would be nice is MS would confirm this...
(please note, none of this involved c++... it was all C#)
Tom
this is the dialog I was shown on the machine where Designer works]1
Installing the Windows Software Development Kit (SDK) for Windows 10 solved the issue for me. It may ask to unistall the previous version of Windows 10 RTM SDK
https://developer.microsoft.com/en-us/windows/downloads/windows-10-sdk
This is fixed in Update 1 of Visual Studio 2015
https://www.microsoft.com/en-us/download/details.aspx?id=49989

VS2003/05 constantly screws up the display - is there any known fix for this?

Running VS2003/05 under Vista makes the former screw up the display at least 50% of the time - you start debugging, VS kicks in and you see the windows/docking panes screwed up, not refreshing, etc... I've contacted Microsoft about this, but they weren't much help, I was wondering if someone knows any fixes?
I'm running VS with visual styles turned off under Vista, so that it doesn't hang when you try to do a "find in files".
All the latest updates/service packs are installed.
For Visual Studio 2005 , install the
Microsoft® Visual Studio® 2005 Service Pack 1
and the
Visual Studio 2005 Service Pack 1 Update for Windows Vista
Take a look at the Visual Studio .NET 2003 on Windows Vista Issue List and see if you find something there.
And see if that help things.
I've done a lot with Visual Studio 2005 Express on Vista, and have never seen any display issues.
Vista is pretty sensitive to the quality of the video drivers - have you tried updating yours?