I'm doing a WinForms app (which I haven't done in a long time) and noticed that in VS 2022, the "view code" button (looks like <>) which used to be on the toolbar on the "Solution Explorer" window is missing. I know I can right-click on a form and reach it through the context menu, or hit F7, but is there any way to add it back? I can't seem to find any option for it.
We can see “View Code” button in a solution which contain a .NET Framework winform project.
If we create a solution which contains a .NET 6 winform project the “View Code” button will disappear. We should right-click and reach it through the context menu or hit F7.
This issue has been submitted and is waiting to be resolved. https://developercommunity.visualstudio.com/t/Solution-Explorers-tool-bar-does-not-in/1528389?space=8&q=vs+2022+Missing+%3C%3E+%22View+Code%22+option+in+Solution+Explorer&stateGroup=active