Visual Studio Community 2019 offers a way to surround existing code with code snippets, like surrounding a set of lines with a while loop by pressing the Ctrl + K, S