Visual Studio 2005 Code Sinppet titled[Method Stub - Body] failed to load.

来源:互联网 发布:js获取button中的值 编辑:程序博客网 时间:2024/05/16 06:31

如果你在使用VS 2005,如果你不能使用它的Code Snippet功能,如果你在实现抽象类override 方法时弹出:

Code Snippet titled [Method Stub - Body] failed to load. Verify that refactoring snippets are recognized in the Code Snippet Manager and that the snippet files are valid on disk.

这段提示信息告诉我们指定的Code Snippet块无法找到,很多人可能会由于这个原因去修复安装VS 2005。其实解决办法很简单,只要重新导入Code Snippet块就行了。找到并打开Code Snippet Manager(Ctrl + K,Ctrl + B),然后选择要操作的语言(C#),用Add按钮导入两个默认的文件夹:Refactoring和Visual C#,这两个文件夹一般会在VS2005安装目录下的,如:C:/Program Files/Microsoft Visual Studio 8/VC#/Snippets/1033 . 

原创粉丝点击