在Unity(C#)+ Visual Studio Code中进行调试在OS X上可以工作吗? [英] Debugging in Unity (C#) + Visual Studio Code Work on OS X?

查看:140
本文介绍了在Unity(C#)+ Visual Studio Code中进行调试在OS X上可以工作吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很喜欢在OS X上使用Visual Studio,C#和Unity的想法.

I really like the idea of working with Visual Studio, C# and Unity on OS X.

有人在OS X上使用Visual Studio Code与Unity中的C#进行了调试吗?

Has anyone made debugging with C# in Unity work with Visual Studio Code on OS X?

推荐答案

您好,解决方案是 https://github. com/dotBunny/VSCode 此插件可在MacOS和Windows上使用,并具有以下功能:

Hi the solution is https://github.com/dotBunny/VSCode This plugin works on both MacOS and Windows and gives you the following capabilities:

•启用VS Code集成的选项(编辑器->资产->启用集成),这将更新您的解决方案文件,并(更重要的是)使它们保持同步.这还将在Unity首选项中设置首选的外部工具编辑器. *请注意,旧的"Sync MonoDevelop"选项现在已从V5.2起在Unity编辑器中消失

•An option to enable VS Code integration (Editor –> Assets –> Enable Integration), this updates your solution files and (more importantly) keeps them in sync. This also sets the preferred external tool editor in the Unity preferences. *Note, the old "Sync MonoDevelop" option is now gone in the Unity editor from V5.2

•它会写出必要的(有时很难找到)VS Code配置文件,包括在编辑器中隐藏非代码"文件的能力(隐藏.sln,.csproj和永远存在的unity之类的东西).元文件) 还有一些其他设置可以帮助加快集成速度.

•It writes out the necessary (and sometimes hard to find) VS Code configuration files, including the ability to hide "non-code" files in the editor (hides things like .sln, .csproj and the ever present unity .meta files) There are a couple of other settings in there to help speed up the integration.

•每次都会自动将VS Code直接启动到您的项目文件夹中.您不再担心保持该窗口打开状态,或者如果您在多个项目上工作,则不必担心

•Automatically launches VS Code direct to your project folder, EVERY-TIME. no longer do you have to worry about keeping that window open, or switching around if you work on multiple projects

需要注意的一件事是,一旦启用VSCode集成,则在外部工具首选项中更改首选的代码编辑器将无效,因为该插件将接管打开的代码文件.如果要使用其他编辑器,则必须先禁用集成.

One thing to be aware of, once you enable the VSCode integration, changing your preferred code editor in the External Tools preferences will have no effect as the plugin takes over opening code files. If you want to use another editor, you’ll have to disable the integration first.

这些只是主要亮点,因为那里还有更多功能.

These are just the main highlights as there are more features in there as well.

当前,您需要从GitHub下载插件文件

Currently you need to download the plugin files from GitHub

这篇关于在Unity(C#)+ Visual Studio Code中进行调试在OS X上可以工作吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆