如何在Visual Studio 2017中为Unity启用智能感知 [英] How to enable intellisense in Visual Studio 2017 for Unity

查看:269
本文介绍了如何在Visual Studio 2017中为Unity启用智能感知的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚开始在Unity中进行编程.我最近在Zorin 12上安装了Visual Studio Code2017.这是一个不错的界面,但是没有自动完成功能!我意识到Ctrl + Space会弹出一些建议,但是我想解决两个问题:

  • 建议不会自动弹出
  • 这些建议是基于我已经键入的代码中的冗余,而不是基于Unity尚未开发的功能的建议.例如,如果我正在使用Transform对象,则希望它弹出我可以使用的所有可能变量,而不仅仅是我之前使用的变量.

https://i.imgur.com/AwHl4ef.png中可以看到我得到的两个错误

谢谢您的考虑.

解决方案

对于Windows或macOS:

下载/安装 Visual Studio IDE(带有Unity工具)

在安装时,请确保包括

的安装.

使用Unity开发游戏

然后使用Unity(您可以双击一个C#文件),打开一个新的C#项目,Visual Studio IDE应该以新的项目结构打开.

从那里,您应该能够看到想要的内容.

例如:

对于Linux(建议):

尝试 Monodevelop -https://i.imgur.com/AwHl4ef.png

Thank you for your consideration.

解决方案

For Windows or macOS:

Download/Install the Visual Studio IDE (with Unity Tools)

When installing, make sure you include installation of

Game development with Unity

Then using Unity (you can double click one of your C# files), open a new C# project and the Visual Studio IDE should open with your new project structure.

From there, you should be able to see what you are looking for.

For example:

For Linux (suggestion):

Try Monodevelop - Additional Information, it provides code completion/hints.

这篇关于如何在Visual Studio 2017中为Unity启用智能感知的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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