Git Product home page Git Product logo

easier-less-vue's Introduction

easier-less-forvue

🖖 一个方便使用 less 的 vscode 插件 fork 自 https://github.com/ohguaiguai/easier-less 对原插件做了vue的支持

使用

  1. 打开项目, 然后打开某个 less 文件会提示选择 mixins 文件(这个文件存放我们自定义的变量、方法),支持多选; 下一次相同的操作会提示是否更新之前的选择。
  2. 支持在用户配置文件 setting.json 中手动修改配置项: less.files less.notice

为什么要做这个插件?

有三个痛点 😖

  1. less 文件中码入某个色值变量时常常因为记不住变量名称、变量对应的色值而不得不打开 mixins.less,然后先找到想要的色值,再找到目标变量,最后切换回之前的 less 文件拷贝粘贴,一波几折,很是麻烦;想使用自定义的方法也有类似的问题。
  2. less 文件中无法方便获悉变量或方法对应的值,需要到 mixins.less 文件中去找。
  3. 在当前 less 文件中无法直接打开 mixins.less 文件,需要在目录中查找或者全局搜。

当前版本提供的功能

1.在 less 文件中键入 @ 自动补全变量名,如果是色值变量也会显示色值;输入 . 自动补全方法名。

2.鼠标悬浮在变量或方法上显示其值。

3.对于 less 变量或方法,cmdctrl 显示下划线点击可以直接跳转到其定义位置。

TODO

鼠标悬浮在色值变量时显示颜色, 这个没有找到方法,有路子的同学请指导指导 🙏🙏🙏~~~

easier-less-vue's People

Contributors

ohguaiguai avatar adkcodexd avatar toodiffi avatar

Stargazers

杜伯怪 avatar

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.