Visual Studio 2015, 2017, 2019, and 2022 support features for Linux software development.
Go to Tools–>Extensions and Updates and find the Visual C++ for Linux Development extension. The Download button will take you to a Microsoft website where the extension can be downloaded.
See the Visual C++ For Linux Development Blog Post for more information.