Visual Studio代码CSS缩进和格式 [英] Visual studio code CSS indentation and formatting

查看:354
本文介绍了Visual Studio代码CSS缩进和格式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道是否可以使用 ALT + SHIFT + F快捷键在Visual Studio代码中激活自动缩进CSS文件的方法

I'd like to know if there is any way to activate auto indent a CSS file in visual studio code with the shortcut ALT+SHIFT+F?

在JavaScript上运行良好,但在CSS上却无法正常工作。

It's working fine with JavaScript but strangely not with CSS.

推荐答案

是的,请尝试安装 vscode-css-formatter扩展

它只是添加了格式化 .css 文件格式的功能,并且快捷方式保持相同的 Alt + < kbd> Shift + F

Yes, try installing vscode-css-formatter extension.
It just adds the functionality to format .css files and the shortcut stays the same Alt+Shift+F.

这篇关于Visual Studio代码CSS缩进和格式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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