VS2010通过插件修改智能感知弹出顺序?

发布于 2024-09-08 13:05:29 字数 264 浏览 3 评论 0原文

是否可以修改按下 ctrl-space 时显示的智能感知选项的顺序?

具体来说,我想在范围内对它们进行排序,这样如果我的函数中有一个变量与我到目前为止输入的内容相匹配,那么它就会到达列表的顶部。如果班级中有一个成员,那就是下一个,等等。我只是有点厌倦了必须输入足够多的内容,以致于我无法匹配 Windows 加密库或其他内容中的一些随机全局符号。

这样的事可能吗?我从哪里开始?我在vs2010中寻找了一个明显的选项,但没有找到任何东西。

我的编程语言是本机c++。

Is it possible to modify the order of the intellisense options shown when I hit ctrl-space?

Specifically, I'd like to order them in scope, so that if I have a variable in my function that matches what I've typed so far then it goes to the top of the list. If there's a member in the class, that's next, etc. I'm just kind of sick of having to type enough that I don't match some random global symbol in Windows' crypto libraries or whatever.

Is this kind of this possible? Where do I start? I looked for an obvious option in vs2010, but didn't find anything.

My programming language is native c++.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

情定在深秋 2024-09-15 13:05:29

这是我到目前为止所发现的。

显示如何将项目添加到智能感知弹出窗口的演练:http://msdn.microsoft .com/en-us/library/ee372314.aspx

本演练使用 ICompletionSession 接口:
http://msdn.microsoft.com/en -us/library/microsoft.visualstudio.language.intellisense.icompletionsession.aspx

看起来您也许能够清除 CompletionSets,并将其替换为您自己的完成集,但我不确定是否有任何改变顺序的方法,或者它们是否总是排序的。有 IIntellisensePresenter 界面,但看起来几乎是空的。

另外,从演练来看,您似乎可以用一个愚蠢的字符串列表填充 CompletionSets,因此您需要一些其他方法来询问符号来确定范围,这可能并不总是可能的。

简而言之:目前可能不可能。

Here's what I've found so far.

A walkthrough showing how to add items to the intellisense popup: http://msdn.microsoft.com/en-us/library/ee372314.aspx

The walkthrough uses the ICompletionSession interface:
http://msdn.microsoft.com/en-us/library/microsoft.visualstudio.language.intellisense.icompletionsession.aspx

It looks as if you might be able to clear the CompletionSets, and replace them with your own completion sets, but I'm not sure if there's any way to change the order, or if they are always sorted. There is the IIntellisensePresenter interface, but it looks like it's pretty much empty.

Also, from the walkthrough, it looks like you can fill the CompletionSets with a dumb list of strings, so you'd need some other way of interrogating the symbols to determine scope, which may not always be possible.

In short: Probably not possible at the moment.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文