C
C#4mo ago
Merrig

✅ How to get Console app to open in console rather than within vs code

I am following a tutorial and whenever he runs his program it opens in the console. The code runs the same. However, he changes the window title and background color which does not happen for me since it is happening within vs code. Any way to change this?
16 Replies
Angius
Angius4mo ago
.vscode/launch.json
{
// other config
"console": "externalTerminal"
}
{
// other config
"console": "externalTerminal"
}
Merrig
MerrigOP4mo ago
I don't have a launch.json as apart of my project so I was able to add one but do I have to add something before those curly brackets to make it work
Angius
Angius4mo ago
No Just
{
"console": "externalTerminal"
}
{
"console": "externalTerminal"
}
should suffice
Merrig
MerrigOP4mo ago
and thats within my project folder?
Angius
Angius4mo ago
Yes In the .vscode directory
Merrig
MerrigOP4mo ago
its still opening in the vs code terminal im pretty sure its in the right directory as the right name there is also a settings.json in that directory if i should put it in thee?
Angius
Angius4mo ago
MyCoolProject
|— .vscode
| \— launch.json
|— MyCoolProject.csproj
|— Program.cs
\— ...
MyCoolProject
|— .vscode
| \— launch.json
|— MyCoolProject.csproj
|— Program.cs
\— ...
How do you run it? With F5, green arrow, or whatever it is that DevKit adds?
Merrig
MerrigOP4mo ago
run > run and start debugging running with or without debugging doesnt make a difference
Angius
Angius4mo ago
Huh Sorry, never in my life have I used VSCode to write C# so I have no experience Actually, no, I used it a couple of times but always with dotnet run and never any debugging
Merrig
MerrigOP4mo ago
no problem thanks for the help anyways
reflectronic
reflectronic4mo ago
there is no reason to do this manually in the json file there is an option in the VS code settings for this
reflectronic
reflectronic4mo ago
No description
reflectronic
reflectronic4mo ago
change it to "externalTerminal"
Merrig
MerrigOP4mo ago
ohh thank you sm ill try that when i get home
Unknown User
Unknown User4mo ago
Message Not Public
Sign In & Join Server To View
MODiX
MODiX4mo ago
If you have no further questions, please use /close to mark the forum thread as answered
Want results from more Discord servers?
Add your server