Are you saying that if it is a cortex m processor you can use Visual Studio?
You know what?
You can, and it's not even rocket surgery.
Though the post you are referring to mentioned Visual Studio
Code, a very different animal, I have compiled and debugged cortex-m code under Visual Studio.
Just for kicks, I opened one of my Cmake/ninja/clang based project and with minimum fuss (some configuration editing in a VS json config file) it built from inside with no issue (with all the usual Visual Studio intellisense, error parsing, code jumps etc.).
For debug, I set it to use pyocd as a gdb server (the board has a CMSIS DAP debug adapter) and it worked as expected, just another .json file for configuration.
I did not setup flashing, but that's also possible, I'm sure.
Note that I often refer to the (paid) VisualGDB extension - this is not it, in this case I disabled it on purpose, just to make sure I was only using Visual Studio stuff.