Ask user to generate .vscode/
folder with launch/debug configuration, if external script editor is VS Code
#5661
Labels
.vscode/
folder with launch/debug configuration, if external script editor is VS Code
#5661
Describe the project you are working on
not relevant
Describe the problem or limitation you are having in your project
not relevant
Describe the feature / enhancement and how it helps to overcome the problem or limitation
Firstly, both Godot editor and VS Code are lightweight and fast IDEs, and also could be used on any platform. For Linux users thats even their primary choise.
Secondly, Godot editor's IntelliSense is not that advanced as Omnisharp`s one in VS Code, so C# developers will prefer to work in VS Code, write code and debug it.
And latter is kinda tricky with Godot 4 rolled out, since the only extension for C# debugging in VS Code is incompatible with Godot 4 .
The extension is not required tho, since Godot 4 release we can freely debug with Omnisharp`s debugger. But not so many developers are aware of that. Even I continued trying to get extension to work with Godot 4.
Explicitly showing developers a way to debug Godot 4 projects inside with VS Code will ease the situation.
Only two (three*) files are required to launch and debug Godot's project from VS Code. They are stored in
.vscode/
folder and their names arelaunch.json
andtasks.json
(andextensions.json
*). File namedsettings.json
is not required in our case.With these files user can launch and debug simply by pressing
F5
key. Breakpoints are supported. Experienced VS Code users are aware of those folders, so they won't question what those do and how to debug their Godot projects.Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams
Three options:
.vscode/
folder withtasks.json
andlaunch.json
(by default already selected).Below is content of such files, it is very simillar to what Omnisharp generates for itself.
tasks.json
's content:launch.json
's content:NOTE: you need this extension (or another analogue) to use launch configuration "Select and Launch Scene". File named
extensions.json
will help user to find it by prompting user to install all recomended extensions.extensions.json
's content:If this enhancement will not be used often, can it be worked around with a few lines of script?
It is used on every debug.
Is there a reason why this should be core and not an add-on in the asset library?
It is a core feature.
The text was updated successfully, but these errors were encountered: