[英]Visual Studio testc, how to get rid of it?
I could have asked this question years ago, but I think it has finally annoyed me enough to ask this question. 我本可以在几年前问这个问题,但我认为它终于使我烦恼得要问这个问题。 Many times while I am coding,
Visual Studio
tries to Intellisense
my deal with testc
. 在编写代码的过程中,
Visual Studio
经常尝试Intellisense
与testc
交易。 I know that testc
is a snippet for a test class, but it is something I will never use in anything except maybe a test project, and likely not even then. 我知道
testc
是测试类的testc
,但是除了测试项目,甚至在那时我都不会用到它。 So, how do I prevent this annoyance from ever appearing in my Intellisense
options again? 因此,如何防止这种烦恼再次出现在我的
Intellisense
选项中? Yeah I know... stupid thing to worry about... 是的,我知道。。。愚蠢的事情要担心...
Test
. Test
。 Press CTRL + K, CTRL + B. This will bring up the code snippets manager. 按CTRL + K,CTRL +B。这将打开代码段管理器。 In the Visual C# directory, you can remove the snippets (
testc
in your case) that you don't want to include. 在Visual C#目录中,可以删除不想包含的代码片段(在您的情况下为
testc
)。 Note that system generated snippets cannot be removed by this method, although per mojits answer you could remove the entire directory of snippets. 请注意,虽然每个Mojits回答都可以删除整个代码段目录,但是无法通过此方法删除系统生成的代码段。
One way around this is to delete the snippet file manually, by finding / deleting its actual file. 解决此问题的一种方法是通过查找/删除其实际文件来手动删除代码段文件。 I am using Visual C# express 2010 right now, and this is the directory they are in for me (you may have to modify slightly, and restart VS for changes to take effect).
我现在正在使用Visual C#express 2010,这是它们在我的目录(您可能必须稍作修改,然后重新启动VS才能使更改生效)。
C:\\Program Files (x86)\\Microsoft Visual Studio 10.0\\VC#\\Snippets\\1033\\Visual C# C:\\ Program Files(x86)\\ Microsoft Visual Studio 10.0 \\ VC#\\ Snippets \\ 1033 \\ Visual C#
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.