美文网首页
Godot使用VSCode作为脚本编辑器

Godot使用VSCode作为脚本编辑器

作者: 全新的饭 | 来源:发表于2023-09-25 17:03 被阅读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

    相关文章

      网友评论

          本文标题:Godot使用VSCode作为脚本编辑器

          本文链接:https://www.haomeiwen.com/subject/trlcbdtx.html