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",
}
]
}