Created
August 3, 2019 23:30
-
-
Save NikolayKul/0850dbe5daaaef3f0bc8ca600dc03d0b to your computer and use it in GitHub Desktop.
Tasks for Visual Studio Code to run/debug Godot scenes/scripts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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