Code Monkey home page Code Monkey logo

vscode-snippet-generator's Introduction

vscode css snippet 生成器

根据 css 文件生成对应的代码片段(snipper),让你在项目中使用 css 变量和 mixin 时,有智能提示。 支持 sass/less/css 变量和 sass mixin 的 snippet 生成。

原理

使用正则匹配出对应文件内的变量/mixin,在项目根目录的.vscode文件夹内生成对应的snippet配置文件。

安装

yarn add vscode-css-snippet-generator -D
// or
yarn global add vscode-css-snippet-generator

使用

选项:

Options:
  -V, --version          output the version number
  -s, --source <source>  var source path
  -n, --name <name>      output file name, default: source file name
  -t, --type <type>      type, option: sass-var/css-var/less-var/sass-mixin
  -h, --help             display help for command

example:

npx gen-vscode-css-snippet -s ./style/var.scss -n scss-var -t scss-var

// global
gen-vscode-css-snippet -s ./style/mixin.scss -t scss-mixin

vscode-snippet-generator's People

Contributors

jrliu avatar

Stargazers

石朝辉 avatar

Watchers

James Cloos avatar  avatar

Forkers

wtao9696

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.