why external terminal is launched in vs code code example
Example: vscode c# how to change to externial terminal
1. Go to the launch.json file inside of the .vscode folder
2. On line 17, change "console": "internalConsole", to "console": "externalTerminal",
3. If your Console is instantly closing add Console.ReadKey(); to the end of your code