Visual Studio 2008 代码片段无法工作且未显示在智能感知中
我遇到一个问题,我的代码片段都不起作用,并且它们没有显示在智能感知中。
1.Switch、prop 和所有其他代码段未在智能感知中列出。
2.当我尝试使用shift+alt+f10生成方法存根时,出现错误:
<块引用>“标题为 [Method Stub - Body] 的代码片段加载失败。请验证代码片段管理器是否能够识别重构片段以及片段文件在磁盘上是否有效。”
[方法存根 - 正文] 代码段位于代码段管理器中(我可以看到它列出),我在 XML 编辑器中打开了该文件并对其进行了验证。我已经重置了 VS 设置。重新启动,重新启动 VS2008,删除所有加载项,我删除并重新添加了代码片段管理器中 VC#“重构”文件夹的路径。我没有主意了(好吧,最后一个正在重新安装)。有什么想法吗?
I'm having an issue where none of my code snippets are working and they aren't showing up in intellisense.
1.Switch, prop and all other snippets aren't listed in intellisense.
2.When I try to use shift+alt+f10 to generate a method stub, I get an error:
"code snippet titled [Method Stub - Body] failed to load. Verify that the refactoring snippets are recognized in the code snippet manager and that the snippet files are valid on disk."
The [method stub - body] snippet is in the snippet manager (I can see it listed) and I opened the file in XML editor and validated it. I've reset VS settings. Rebooted, restarted VS2008, removed all add-ins, I've removed and re-added the paths for the VC# "refactoring" folder within the Code Snippet Manager. I'm out of ideas (well, the last one being re-install). Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
其他人登录到我的计算机并对此进行了测试。这些代码片段在他的登录下运行。这证明问题出在配置文件设置上。我通过做两件事解决了这个问题:
I然后启动 VS2008 并测试片段。一切都很好。
Someone else logged into my computer and tested this. The code snippets worked under his login. This proved that the issue was a profile setting. I fixed this by doing two things:
I then fired up VS2008 and tested snippets. Everything worked fine.