Skip to content

Instantly share code, notes, and snippets.

@NikolayKul
Created August 3, 2019 23:30
Show Gist options
  • Save NikolayKul/0850dbe5daaaef3f0bc8ca600dc03d0b to your computer and use it in GitHub Desktop.
Save NikolayKul/0850dbe5daaaef3f0bc8ca600dc03d0b to your computer and use it in GitHub Desktop.
Tasks for Visual Studio Code to run/debug Godot scenes/scripts
{
"version": "2.0.0",
"tasks": [
{
"label": "Run game",
"type": "shell",
"command": "PATH_TO_YOUR_GADOT_EXEC", // <----
"args": [
"--path",
"${workspaceFolder}",
"${input:scene}"
]
},
{
"label": "Debug game",
"type": "shell",
"command": "PATH_TO_YOUR_GADOT_EXEC", // <----
"args": [
"--path",
"${workspaceFolder}",
"-d",
"${input:scene}"
]
},
{
"label": "Run current GDScript",
"type": "shell",
"command": "PATH_TO_YOUR_GADOT_EXEC", // <----
"args": [
"--path",
"${workspaceFolder}",
"-s",
"${file}"
]
}
],
"inputs": [
{
"type": "promptString",
"id": "scene",
"description": "Scene to launch",
"default": "YOUR_DEFAULT_SCENE.tscn" // <----
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment