Godot使用VSCode作为脚本编辑器

2023-09-25  本文已影响0人  全新的饭

下载VSCode

因为下载速度比较慢,所以需要将下载地址中的“xx.net”替换为“https://vscode.cdn.azure.cn

配置文件内容

launch.json

{
    "version": "0.2.0",
    "configurations": [
        {
            "name": "Run Godot Run",
            "type": "coreclr",
            "request": "launch",
            "preLaunchTask": "build",
            "program": "godot.exe的路径",
            "cwd": "${workspaceFolder}",
            "console": "internalConsole",
            "stopAtEntry": false,
            "args": [
                "--path",
                "${workspaceRoot}"
            ]
        }
    ]
}

tasks.json

{
    "version": "2.0.0",
    "tasks": [
        {
            "type": "dotnet",
            "task": "build",
            "problemMatcher": [
                "$msCompile"
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
            "label": "build"
        }
    ]
}

参考链接

C# Development with Godot and Visual Studio Code Tutorial
How to open VSCode from Godot? - Godot Engine - Q&A

上一篇 下一篇

猜你喜欢

热点阅读