VS2022 don't connect

Since VS2017 refuses to connect to my Unity project, I wasted 20GB of my tiny HD to instal VS2022.
I set it up as the code editor but, opening any of my scripts, on the right hand side I find, in solution explorer, a bunch of “not compatible” and “application is not instalated.”
The breakpoints are ignored because the symbols are not loaded!
The Unity package is already installed in VS.

VS2022 shouldn’t be 20GB. My local copy has support for C++ (Unreal Engine 5), C# (Unity), and C# (Desktop Apps) installed and only weighs in at 8GB. Out of that Unity is maybe 2GB.

Is it the right one though? Because there’s the older one by Unity and the newer one by Microsoft.

Wait, are you talking about Visual Studio or Visual Studio Code? I also create Form programs and need Visual Studio.

Whether it’s the right version I don’t know. How do I find out?

Should I remove VS2022, continue programming with VS2017 and install VS Code?

Visual Studio 2022. I just reinstalled Windows to clean my system. The package required to use it with Unity only added 2.48GB. If you’re seeing 20GB it means you’re counting things that have nothing to do with Unity.

Just pick the code editor that you prefer. Unity ships with its own compiler toolchain. It’s not reliant on anything from Visual Studio.