I use Visual Studio Community 2017 but use msys2 to compile. It is was a major headache trying to set up msys2 in Visual Studio. I also use the Visual Assist extension in VS. Haven’t tried to figure out how to compile with in community, was not worth the hassle first time I tried to set it up, compiling with msys2 works grand, just alt tab out of visual studio.
Not too experienced with Visual Studio to know every in and out but there is a thread that discusses getting it to work in VS
You may find some more info with a search also: https://community.vcvrack.com/search?q=Visual%20Studio%20communi%20category%3A8