从intellisense窗口中删除完成 [英] Remove completions from intellisense window

查看:61
本文介绍了从intellisense窗口中删除完成的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想基于他们的显示名称隐藏intellisense窗口中的一些完成。


我想我基本上试图实现与此线程相同的事情是关于:


http://social.msdn.microsoft.com/Forums/en/vseditorprerelease/thread/6565e64d-22d8-4806-a8f2-28999a8c2174


 


可以做与该问题的原始海报相同的事情,面对完全相同的问题。


 


我在互联网上找不到关于IcompletionSession.Filter()方法的答案。


原始海报没有给出任何反馈,所以我怀疑他是否管理过最后过滤结果。


 


Filter()方法不带参数,msdn表示根据"过滤结果" ;文本缓冲区"但是没有说明应该设置textbuffer的位置。


无论如何,我甚至没有成功调用Filter方法。


会话是要么没有启动(当我尝试在ArgumentCompletionSession方法中调用它),要么在缓冲区更改时尝试调用它时解除。


两种情况都会抛出异常并且方法不会运行,虽然它确实如此,但我不知道如何设置它来过滤我想要的东西。

解决方案

嗨Maddarren,


我一直无法找到如何做到这一点,但出于兴趣:你为什么要这样做?要创建一个简单的API?在我看来,使用VS2010的CamelCasing智能感知功能(特别是使用Resharper增强)可以非常方便地导航。


亲切的问候,

Tom de Koning


I'd like to hide some completions from the intellisense window based on their display name.

I think I'm basically trying to achieve the same thing that this thread was about:

http://social.msdn.microsoft.com/Forums/en/vseditorprerelease/thread/6565e64d-22d8-4806-a8f2-28999a8c2174

 

Can do the same thing as the original poster of that question did, facing the exact same problems.

 

There is nothing on the internet I could find about the IcompletionSession.Filter() method the answer mentions.

The original poster didn't give any feedback to it, so I doubt he managed to filter the results in the end.

 

The Filter() method takes no arguments, msdn says it filters the results based on "the textbuffer" but says nothing about where that textbuffer should be set.

Regardless, I didn't even succeed to call the Filter method.

The session is either not started (when I try to call it in the ArgumentCompletionSession method) or dismissed if I try to call it when the buffer changes.

Both cases throw exception and the method will not run, although even if it did, I do not know how I could set it to filter what I want.

解决方案

Hi Maddarren,

I have not been able to find out how to do this, but out of interest: why would you want to do this? To create for an easy API? In my opinion using the CamelCasing IntelliSense feature of VS2010 (especially enhanced with Resharper) makes for very easy navigation.

Kind regards,
Tom de Koning


这篇关于从intellisense窗口中删除完成的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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