Visual Studio中缺少片段 [英] Missing snippet in visual studio

查看:112
本文介绍了Visual Studio中缺少片段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在两台计算机上安装Visual Studio相同,但是在1中我找不到DependencyProperty的代码段"propdp"吗?我只有prop/propg,无法真正理解原因.我必须安装一个插件吗?

Same installation of Visual studio on two machines, but in 1 i cant find the snippet "propdp" for DependencyProperty ? I only have prop/propg, cant really understand why. Is there an addon i have to install?

推荐答案

在Win7 64上全新安装VS2008之后,今天我自己也遇到了同样的问题

Came across this same issue myself today after a fresh install of VS2008 on Win7 64

我要做的就是解决

  1. 转到工具>代码段管理器
  2. 从下拉菜单中选择Visual C#
  3. 点击添加
  4. 选择包含代码片段的NetFx30目录,在我的情况下是...

  1. Go to Tools > Code Snippets Manager
  2. Select Visual C# from the drop down menu
  3. Click Add
  4. Select the NetFx30 directory containing the code snippets, in my case it was...

C:\ Program Files(x86)\ Microsoft Visual Studio 9.0 \ VC#\ Snippets \ 1033 \ NetFX30

C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC#\Snippets\1033\NetFX30

您应该立即可以使用代码段.

You should immediately be able to use the code snippet.

这篇关于Visual Studio中缺少片段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆