Visual Studio中缺少Unity帮助API参考 [英] Unity Help API Reference missing in Visual Studio

查看:401
本文介绍了Visual Studio中缺少Unity帮助API参考的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在使用 Visual Studio 2017 for Unity.当我尝试使用在线文档的快捷方式(选择一个单词,按快捷方式,有关所选单词的在线文档出现)时,它似乎没有用.

I've been working with Visual Studio 2017 for Unity. When I tried using the shortcut for online documentation (you select a word, press the shortcut and the online documentation about the selected word comes up), it didn't seem to be working.

当我在调试"->选项"->环境"->键盘"中查找该命令时,也没有Help.UnityAPIReference命令.

There's no Help.UnityAPIReference command as well when I looked it up in the Debug -> Options -> Environment -> Keyboard.

我已经通过Unity中的外部工具选项链接了VS17.

I've linked VS17 through external tools option in Unity.

我该怎么办?我应该重新安装VS17吗?如果是这样,该怎么办?因为它似乎已与Unity紧密集成,并且如果我将其卸载,会否弄乱Unity设置?

What should I do? Should I reinstall VS17? If so, how to? Because it seems to be tightly integrated with Unity and if I uninstall, would it mess up Unity settings?

推荐答案

在滚球"教程之后,我刚刚开始在Unity中使用Visual Studio(VS).第2课建议Ctrl +'在在线Unity文档中搜索当时突出显示的代码项.没有.

I've just started using Visual Studio (VS) in Unity, following the Roll a Ball tutorial. Lesson 2 suggests that Ctrl + ' searches the online Unity documentation for whichever item of code is highlighted at the time. It didn't.

NB VS菜单栏上方的黄色标志提示我更新软件.我做到了我新安装的VS(15.6.4)DID包括Help.UnityAPIReference命令,该命令在原始查询中报告为丢失,因此未显示在上方最上方的图像中.

NB A yellow flag above the VS menu bar suggested I update the software. I did that. My new installation of VS (15.6.4) DID include the Help.UnityAPIReference command, which is reported as missing in the original query, and thus NOT showing in the topmost image above.

但是,上面的屏幕截图确实显示了如何检查它.此处显示的对话框位于工具"菜单中选项"下.注意:如果不太明显,您需要在显示包含以下内容的命令"下方的搜索栏中输入统一性"

Yet, the screenshot above indeed shows how to check for it. The dialogue box shown here is in the 'Tools' menu, under 'Options' . NB: In case it's not obvious, you need to type 'unity' in the search bar beneath 'Show commands containing:'

访问帮助的默认快捷方式设置为"Ctrl + Alt + M,Ctrl + H(全局)",这向我提示,点击这些快捷方式,我将被带到显示的在线Unity API帮助文档中在教程中.那没有发生.

The default shortcut to access the Help was set as 'Ctrl + Alt + M, Ctrl + H (Global)', suggesting to me that on hitting of these, I would be whisked away to the online Unity API Help documentation shown in the tutorial. That wasn't happening.

所以我做了以下事情: 1.选中"Help.UnityAPIReference",.. 2.我点击了在以下位置使用新的快捷方式"和." 3.从列表中选择"CSharp编辑器" 4.然后,将光标放在按快捷键:"框中,... 5.我按住Ctrl并按'. 6.在标有当前使用的快捷方式:"下面的框中没有任何内容(即没有冲突),所以.. 7.我点击分配"按钮. 嘿,普雷斯托!我可以在VS中选择一个命令,按Ctrl +',然后直接转到在线文档中的相关部分.

So I did the following: 1. with Help.UnityAPIReference selected, .. 2. I clicked under 'Use new shortcut in:' and .. 3. selected 'CSharp Editor' from the list 4. Then, with the cursor in the 'Press shortcut keys:' box,... 5. I held down Ctrl and pressed '. 6. Nothing (ie no conflict) appeared in the box below marked 'Shortcut currently used by:', so .. 7. I hit the 'Assign' button. And Hey Presto! I can select a command in VS, hit Ctrl +' and it goes straight to the relevant section in the online documentation.

注意,我以前也进入过"Unity工具"的工具-选项"设置.在左侧选择了常规"子菜单后,我将使用外部浏览器"的文档"下的设置从假"更改为真".因此,Ctrl +'打开我的浏览器.否则,帮助文件将显示在VS中.我的设置通过打开浏览器,而不是要求VS将其加载为另一个选项卡,来更快地访问相关信息.另外,如果VS似乎是在VS内完成的,则VS似乎会通过替换以前的搜索来响应每个后续的帮助请求,而当所有这些都设置为使用外部浏览器"时,它会为每个新搜索生成一个新的浏览器选项卡.聪明!

NB I had previously also gone into the 'Tools - Options' setting for 'Tools for Unity'. With the 'General' sub-menu selected on the left, I changed the setting under 'Documentation' for 'Use external browser' from 'false' to 'true'. Thus, Ctrl + ' opens my browser. Else, the help file appears within VS. My set-up makes the relevant info accessible much quicker by opening the browser rather than asking VS to load it as another tab. Also VS seems to respond to each subsequent request for Help by replacing the previous search if this is done within VS, whereas, when it is all set to 'Use external browser', it generates a new browser tab for each new search. Smart!

这篇关于Visual Studio中缺少Unity帮助API参考的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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