VS2010 插件 CSS3 IS 2.1.1 在win7 64位机子上安装小记
该plugin是英文版的,故对中文支持不是很给力,而且在64位机子上安装会有些问题
具体情况是安装后在visual studio的css编辑器中无法选上css3.0的验证规则,造成这种情况的原因是这个插件没有将css30.xml验证规则文件拷贝到visual studio的中文(2052)目录下,所以需要手动将该文件拷贝下
将vs安装目录下Microsoft Visual Studio 10.0\Common7\Packages\1033\schemas的css30.xml文件拷贝到
Microsoft Visual Studio 10.0\Common7\Packages\2052\schemas目录下即可
1033对应的是英文,2052对应的是中文
还有点题外的是在查找问题时发现的,在64位系统下,vs的css验证规则定义路径是:HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Packages\{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas
而32位系统下是在
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Packages\{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas下,这点比较有趣
该插件链接:http://visualstudiogallery.msdn.microsoft.com/7211bcac-091b-4a32-be2d-e797be0db210?SRC=VSIDE
The prob is that you need the CSS 3.0 schema. If you want you can try to create one yourself and this is how. I assume that you are using a x64 Windows:
- Copy the file CSS21.xml to CSS30.xml in the following directory:
C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\Packages\1033\schemas\CSS\ - Open the Registry Editor and navigate to the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\Packages\{A764E895-518D-11d2-9A89-00C04F79EFC3}\Schemas - Add a new key named Schema 5.
- Under the key Schema 5 add a new string value named File and set the value to css30.xml
- Under the key Schema 5 add a new string value named Friendly Name and set the value to CSS 3.0
- Start Visual Studio 2010 and open a CSS file and you will see a new entry in the list dropdown list named "CSS 3.0"