现在的位置: 首页 > 综合 > 正文

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

2012年03月24日 ⁄ 综合 ⁄ 共 550字 ⁄ 字号 评论关闭
Visual Studio 2005 Code Sinppet titled[Method Stub - Body] failed to load.
2007年03月14日 星期三 14:47

如果你在使用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 。

抱歉!评论已关闭.