I've always wondered if Microsoft ever implemented this feature in their Visual Studio releases. Basically when I'm designing a form I need to have the toolbox and the properties window active. Conversely, when I'm in the code behind I would like to hide these windows and have only the main window of the code. Yes, I know, there is a specific function that anchors these windows at will and makes them open when you hover over them, but it's not the same thing. I would like these windows to open and close automatically when switching from drawing mode to code mode and vice versa. Is it possible?
The answer is no! There is nothing that allows you to make the properties and tools windows visible/invisible if you switch from code to design window and vice versa automatically.
I created the solution myself with a plugin for Visual Studio 2022. I made it available to everyone and it is free. You can find it on Microsoft Marketplace with the name: ToolsNProperties
Once installed, you can activate and deactivate it manually from the Extensions menu of Visual Studio 2022.