VS Code is not Visual Studio. You’re currently using Visual Studio, not VS Code.
As for your issue:
Check if Visual Studio 2022 is set as the default IDE from Edit > Editor Preferences > General > Source Code in the editor
Check if the Visual Studio Integration Tools plugin is enabled from Edit > Plugins
Check if you have the .NET Desktop Development, Desktop Development with C++, and Game Development with C++ workloads (also the Universal Windows Platform Development workload for older VS 2022 versions than the OP’s) by either navigating to Tools > Get Tools and Features inside VS (The modification window will pop up automatically), or by hitting the Modify option on your VS version inside the installer.
Hope these help
Oh one more thing, I invite you to the dark side
Change your theme to a dark one