Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>auto-html2cssNew to Visual Studio Code? Get it now.
auto-html2css

auto-html2css

liwenchao

|
732 installs
| (0) | Free
auto convert html to css
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

auto-html2css README

概述

提高工作效率,减少重复劳动用

代码地址

功能

1 自动转换html结构中的class,生成嵌套层级的scss代码

使用

首先,需要在编辑器中,选中一段代码

  1. 命令,ctrl+shift+p,输入指令html2css,并执行
  2. 快捷键,ctrl+alt+z,执行

当提示转换完成后,转换后的内容将会在剪切板上

配置

open workspace settings - extensions - AutoHtml2Css ,编辑json文件

字段名 含义 可选值
extraClassList 要排除的class名单 字符串类型,使用逗号隔开,会进行切分并转换成正则表达式匹配
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft