How To Debug Windows Service C# Visual Studio 2019

If you don't want to run the selected snippet, then make sure you don't have any selected text when invoking Code Runner- either that, or put "code-runner.ignoreSelection": true in your settings.json.