VS 显示构造函数的智能感知,无需删除括号或逗号
我最近换了工作,我们使用 TFS。如果我想查看构造函数的智能感知(对于已编写的代码或 dot.net 代码),我通常必须删除括号或逗号并再次键入它才能显示构造函数智能感知。
这对于 TFS 来说更烦人,因为它想要检查我的代码(但我不这样做)。有没有一个快捷键可以让你在课堂上不打字的情况下启动智能感知?
我已经尝试过显而易见的方法(CTRL + 空格.. CTRL + ALT + 空格... CTRL + J)。
谢谢
I have recently moved jobs and we use TFS. If I want to look at the intellisense for a constructor, (for code that has already been written, or dot.net code) I would normally have to delete a bracket or comma and type it again to get the constructor intellisense to appear.
This gets more annoying with TFS as it wants to check my code out, (and I don't). Is there a shortcut key to get the intellisense up without typing in the class?
I have tried the obvious, (CTRL + space.. CTRL + ALT + Space... CTRL + J).
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
在括号内,您可以按 Ctrl+Shift+Space 显示有关周围方法调用的信息。
Inside the parentheses, you can press Ctrl+Shift+Space to show information about the surrounding method call.
我也遇到过几次这样的情况。就我而言,修复方法是转到“工具”->“导入和导出设置...”并选择“重置所有设置”,然后重新启动 Visual Studio。从此时起,Ctrl-Space 将显示智能感知完成情况。然而,就我而言,这通常会起作用,然后会停止工作,因此您的计算机上可能存在不同的问题。
这将破坏您所做的任何自定义(因此,如果您关心的话,请务必导出它们),但它已经解决了我的问题。
I've run into this a few times as well. In my case, the fix was to go to Tools->Import and Export Settings... and choose "Reset all settings" and then restart Visual Studio. From this point, Ctrl-Space would show the intellisense completions. In my case, however, this would usually work and then stop working, so there may be a different problem on your machine.
This will clobber any customizations you've made (so be sure to export them if you care) but it has fixed the problem for me.