Visual Basic code completely white?
Hello everyone,
When I saved a copy of my program in Visual Basic (Windows Console App), all the colors in the code suddenly disappeared. Now the code is just white. Does anyone know how I can change this back? Unfortunately, a restart didn't help.
Best regards
David
Interesting is that you are in the .sln file of your project (so no colors, because VS2022 does not expect a VB code). The VB code does not come into this file, it should actually be in a .vb file. This cannot come from simply saving a program.
To help solve the problem, it would be helpful if you added an image/description of the content of your project folder/files in this one.
Supplement: From the name of the .sln file, I would also assume that it is the ‘main’ .sln file of the project and not a file with incorrect ending. If this thesis is correct, you should not be able to start the program anymore.
The file has the extension .sln (https://learn.microsoft.com/de-de/visualstudio/ide/solutions-and-projects-in-visual-studio?view=vs-2022), is thus interpreted as such.
You can rename them in the sidebar. So for Visual Basic probably .vb or .cls.