Luk*_* Vo 13 css intellisense visual-studio razor visual-studio-2013
VS2013中我喜欢的功能是CSHTML文件中的CSS Class IntelliSense,但是,他们在按下时退出标签的新功能SPACE非常烦人.
例如:我通常使用带有多个类的Bootstrap,说:
<button class="btn_ <- My pointer is here
Run Code Online (Sandbox Code Playgroud)
我想按下SPACE并添加btn-default
,但相反,它会跳出来:
<button class="btn" _ <- new pointer position
Run Code Online (Sandbox Code Playgroud)
我需要更多的时间来上课.有没有办法把它关掉?
Ps:我目前最快的克服这个问题的方法是在按下ESC之前按下SPACE.
老实说,尝试使用Esc之前的几种组合Space可能是你最快捷的方式.当你完成添加所需的所有课程后,它还可以让你"退出"
例如 class="btn<ESC><SPACE>btn-secondary<ESC><SPACE>alert<ESC><SPACE>alert-info<SPACE>" <-- this quote is skipped at the last space and you can add other attirbutes
另一种选择是完全禁用属性的自动完成.这可以通过将要完成Tools
> Options
> Text Editor
> HTML
> Advanced
,然后设置Insert attribute value quotes
到false
.