unity 使用VS Code 开发,VS Code配置注意事项

vscode 对应的插件(unity开发)

插件:.Net Install Tool,c#,c# Dev Kit,IntelliCode For C# Dev Kit,Unity,Unity Code Snippets 本人现在是用了这些插件

unity需要安装Visual Studio Editor

1、.Net Install Tool 设置

需要在设置里面配置路径避免每次打开都要下载最新的net版本

"dotnetAcquisitionExtension.existingDotnetPath": [
        {
            "extensionId": "ms-dotnettools.csharp",
            "path": "C:\\Program Files\\dotnet\\dotnet.exe"
        },
        {
            "extensionId": "visualstudiotoolsforunity.vstuc",
            "path": "C:\\Program Files\\dotnet\\dotnet.exe"
        }
    ]

上述图中选项要取消选中

2、配置MonoPath

3、配置sdkPath

vscode 调试配置(在每个项目下配置)

{

    // Use IntelliSense to learn about possible attributes.

    // Hover to view descriptions of existing attributes.

    // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387

    "version": "0.2.0",

    "configurations": [

        {

            "name": ".NET Core Attach",

            "type": "coreclr",

            "request": "attach"

        },

        {

            "name": "Attach to Unity",

            "type": "vstuc",

            "request": "attach",

        }

    ]

}

  • 9
    点赞
  • 6
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
对于Unity游戏开发VS Code是一个很好的选择作为编辑C#文件的工具。它支持所有的C#功能以及更多功能,并且在代码协助方面有着更多的功能,如侧栏、引用查找和变量标记等。VS Code可以与Unity进行互通,使得开发过程更加简单快速。要配置VS CodeUnity的互通,你需要下载并安装Visual Studio Code、Visual Studio Installer和Unity。强烈建议先下载Unity Hub,并在其中下载和管理项目。如果不需要安装Visual Studio,注意取消安装勾选的选项。通过这样配置,你就可以使用VS Code来编辑Unity中的C#文件了。详细的安装和配置步骤可以参考官方文档。希望这些信息能帮助你更好地使用VS Code进行Unity开发。<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* *3* [Unity 搭配 VSCode【Visual Studio Code and Unity】](https://blog.csdn.net/weixin_46146935/article/details/127190290)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] - *2* [【unity】将unity编辑c#配置vscode](https://blog.csdn.net/weixin_61508423/article/details/125992225)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"] [ .reference_list ]

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值