简体   繁体   English

VS2015自动完成功能不起作用

[英]VS2015 auto complete function not working

I recently got a new computer but I chose to install VS2015 after reinstalling Unity. 我最近买了一台新电脑但是在重新安装Unity后我选择安装VS2015。 I previously used monodevelop but thought I'd give VS a go (partially because it became the default program when opening scripts through Unity and I can't seem to change that). 我之前使用过monodevelop,但我认为我会给VS一个去(部分因为它在通过Unity打开脚本时成为默认程序,我似乎无法改变它)。

I am however having a few problems due to the intellisense/auto complete function not working. 然而,由于智能感知/自动完成功能不起作用,我遇到了一些问题。 I've read through a lot of answers on here but nothing seems to help. 我在这里读了很多答案,但似乎没有任何帮助。

在此输入图像描述

在此输入图像描述

在此输入图像描述

在此输入图像描述

My suggestion would be to rebuild your solution files. 我的建议是重建你的解决方案文件。

From your projects root folder, copy Assets and Project Settings ONLY over to a new directory. 从项目根文件夹中,仅将资产项目设置复制到新目录。 From here open up one of your scenes, Unity will import assets and build the scene. 从这里打开你的一个场景,Unity将导入资产并构建场景。

Once open, go to Edit -> Preferences -> External Tools and make sure that Visual Studio 2015 is selected as the External Script Editor and then go Assets -> Sync MonoDevelop Project (Ignore the name MonoDevelop!) 打开后,转到编辑 - > 首选项 - > 外部工具 ,确保选择Visual Studio 2015作为外部脚本编辑器 ,然后转到资产 - > 同步MonoDevelop项目 (忽略名称MonoDevelop!)

See if that works for you. 看看它是否适合你。

Failing that follow the guide here and note what version of Unity you are using as there are different steps for pre 5.2 Getting Started with Visual Studio Tools for Unity 如果不按照此处的指南操作,请注意您正在使用的Unity版本,因为前面有不同的步骤5.2 Visual Studio Tools for Unity入门

And if that doesn't work, it's going to be a problem with your Visual Studio install. 如果这不起作用,那么Visual Studio安装就会出现问题。 I've had this before even on a new install. 我甚至在新安装之前就已经有了这个。 So try a re-install as a last resort. 所以尝试重新安装作为最后的手段。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM