如果你在使用VS2005时不能使用它的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 .

posted on 2008-11-11 21:31  〆o殺殸纨o〆  阅读(217)  评论(0编辑  收藏  举报