When trying to launch my C++ project from VSCode I get an error popup stating:
The following argument was not expected: /c
Run with --help for more information
Another error pops up in the bottom right with:
Unable to start program '....<path to UnrealEditor.exe>'. Unable to start the Microsoft Visual Studio Debug Console.
The log file just shows this:
Generated code is up to date.
Target is up to date
Total execution time: 0.40 seconds
WriteFileIfChanged() wrote 0 changed files of 0 requested writes.
Timeline:
[ 0.000]
[ 0.000](+0.399) <unknown>
[ 0.399]
Did you install VScode and unreal in C and your unreal project in it default folder c document ?
Yes it could be related to an environment variable.
(personal pref) i suggest using visual studio, my friend had lot of issues with vscode and seem to catch less user error compared to visual studio such as using reserve word name.
There’s an issue at VSCode’s github describing a similar problem to ours (issue here). It seems that the problem is at the launch.json file. The “console”: “externalTerminal” command is not valid anymore. Changing it to “console”: “internalConsole” works, even though it doesn’t open an external window like the old command.