简体   繁体   English

CSS编辑器中选择的Visual Studio格式无法正常工作

[英]Visual studio formatting of selection in CSS editor not working

Some strange issue appeared while working in Visual Studio 2010. Formatting for whole CSS file works fine CTRL+K,CTRL+D , but trying to format code inside of selection CTRL+K,CTRL+F shows an error: 在Visual Studio 2010中工作时出现了一些奇怪的问题。整个CSS文件的格式化工作正常CTRL+K,CTRL+D ,但尝试格式化选择CTRL+K,CTRL+F内的代码显示错误:

 The key combination (CTRL+K, CTRL+F) is bound to command (Format Selection) which is not currently available.

Does anybody know what causes this behaviour? 有谁知道导致这种行为的原因是什么?

When trying the second command, were you still formatting CSS or a different file type (.cs)? 尝试第二个命令时,您是否仍在格式化CSS或不同的文件类型(.cs)?

Code which requires compiling can't be edited whilst running (debugging). 运行(调试)时无法编辑需要编译的代码。 HTML, CSS and Javascript can be edited whilst the code is currently running. 代码当前正在运行时,可以编辑HTML,CSS和Javascript。

Not sure if that is the cause of your issue but that is how I can reproduce it. 不确定这是否是您的问题的原因,但这是我如何重现它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM