简体   繁体   English

VS 代码扩展自动生成 CSS 代码

[英]VS Code Extention to auto generate CSS code

I'm looking for an extension to auto-generate CSS code based on HTML structure code: Example: let's pretend I write the following code manually我正在寻找基于 HTML 结构代码自动生成 CSS 代码的扩展: 示例:假设我手动编写以下代码

<section class="login">
  <div class="login-grid">
     <div class="login-form"></div>
  </div>
</section>

I'd like to have the following code automatically in the CSS file with the same structure我想在具有相同结构的 CSS 文件中自动包含以下代码

.login {
    .login-grid 
    {
        .login-form{

        }
    }
    
}

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

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