Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
394 views
in Technique[技术] by (71.8m points)

css - Visual Studio代码CSS缩进和格式(Visual studio code CSS indentation and formatting)

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 ?

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

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

(它可以在JavaScript上正常工作,但奇怪的是在CSS上却不能。)

  ask by A. DC translate from so

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Yes, try installing vscode-css-formatter extension .

(是的,尝试安装vscode-css-formatter extension 。)
It just adds the functionality to format .css files and the shortcut stays the same Alt + Shift + F .

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...