Code Sinppet

如果你在使用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 。
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章