简体   繁体   English

在Visual Studio Code Mac中缩进或美化scss

[英]Indent or beautify scss in Visual Studio Code Mac

indentation or beautify files (sass and css) in VSCode drives me nuts. 缩进或美化VSCode中的文件(sass和css)使我发疯。 I installed the "Beautify css/sass/scss/less" extension. 我安装了“美化css / sass / scss / less”扩展名。

After that i've two commands: Format document (option-shift-F) or Format Selection (cmd-K cmd-F). 之后,我有两个命令:格式化文档(option-shift-F)或格式化选择(cmd-K cmd-F)。 When selecting aa few lines with the mouse and use "Format Selection", it's formatting the whole file. 当用鼠标选择几行并使用“格式选择”时,它将格式化整个文件。 Tried it with sass and css files. 尝试使用sass和css文件。

I'm doing something wrong? 我做错了吗? What do i have to do when i wanna indent or beautify only selected lines? 我只想缩进或美化所选行,该怎么办?

I work with JavaScript in visual studio code and it working 我在Visual Studio代码中使用JavaScript并能正常工作

Shift + Alt + F will work Shift + Alt + F将起作用

Try with the scss-formatter extension . 尝试使用scss-formatter扩展 For scss woks greatly. 对于炒锅炒锅。

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

相关问题 问题 - Visual Studio Code 中的实时复杂功能 SCSS 到 CSS(背景图片) - Issue - Live complication Scss to CSS in Visual Studio Code (Background image) Mac 上缺少 Visual Studio Code CSS Hover - Visual Studio Code CSS Hover Missing on Mac scss格式:缩进和NestingDepth - scss formatting : indent and NestingDepth Visual Studio 代码不断创建我的 css 文件,使其与我的 scss 文件位于同一文件夹中 - visual studio code keeps creating my css file to be in the same folder as my scss file 如何在 Visual Studio Code 的 SCSS 文件中的一行中格式化 html 元素? - How to format html elements in one line in SCSS file in Visual Studio Code? SCSS文件未在Visual Studio中的解决方案资源管理器中分组 - SCSS files not grouped in Solution Explorer in Visual Studio Visual Studio 2013中的SCSS支持有点不完整? - SCSS support in Visual Studio 2013 a bit patchy? Aptana Studio 3代码辅助Sass(.scss)文件 - Aptana Studio 3 code assist for Sass (.scss) files 如何通过Mac上的Visual Studio Code在浏览器中显示HTML / CSS文件? - How do I display my HTML/CSS files on a browser via Visual Studio Code on Mac? 如何使用 Visual Studio Code 禁用 HTML 文件的 CSS 错误(在 Mac 上) - How to disable CSS errors for HTML files using Visual Studio Code (on Mac)
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM