In Visual Studio solution (we use the current version of 2019 16.11.0), some files are readable, such as C# code, some are not, such as .NetFramework project file. This article will introduce a way to view all files in text or with a suitable editor.
This article would be the first one (08/21/2021), the other one is recent writing on 10/07/2022.
- View Text For Any File In A Solution In Visual Studio --- this article
- Three Ways to View Hidden Files in Visual Studio Solution
Introduction
In Visual Studio solution, some files are readable, such as code (C#, C++, any language), config file, HTML, and etc., some are not, such as Windows Form, .resx project file. they may have a design mode. For some of later, we may have a luck to view them, such as WPF Window (XAML) has both design mode and code view, and can be open at the same time,

Window Forms can be opened with design mode,

And in view mode with right-click of the file => View Mode,

For .resx file, it can be opened with design mode,

But cannot be opened with view mode, however, right-click the file => open with,

It can be opened with multiple editors,

Finally, for project files such as .csproj, although we can open the .Net Core project file either in design mode,













Join the conversation! Your thoughts help the community grow.