Git Product home page Git Product logo

vetur's Introduction

vetur

Vue tooling for VSCode.

This extension is in development and not stable yet.
You can open an issue for bugs or feature requests.

Implemented Features

  • Basic IntelliSense for html/css/scss/less/js
  • Advanced IntelliSense to suggest v- directives and key, ref, slot as html attributes
  • IntelliSense such as scaffold, template with pug, style with scss outside all language regions
  • Some advanced IntelliSense for js/ts, including:
    • Some IntelliSense for this in Vue Component
    • Module Resolution for node libraries, some Module Resolution for Vue Component
  • Linting for js via ESLint, basic error checking for css/scss/less
  • Formatting for html/css/scss/less/js/ts with options
  • Syntax highlighting for:
    • html/jade/pug
    • css/sass/scss/less/stylus/postcss
    • js/ts/coffee
  • Embedded snippet support
    • Use vue snippet outside all regions
    • Use each language's snippet inside its region
    • Define html snippets you want to use inside <template> as vue-html snippet
  • Emmet for html/css/sass/scss/less

Demo

Try for yourself on this project: vue-hackernews-2.0.

Setup

  • Install vetur

  • If you have a tsconfig.json / jsconfig.json, you must include *.vue files in its include for all language features to work on *.vue files.

    • 🚫 include: ['src/**/*.ts']
    • include: ['src/**/*']
    • include: ['src/**/*.ts', 'src/**/*.vue']

Optional Setup

Emmet:

  • In your user settings, set

    "emmet.syntaxProfiles": {
      "vue-html": "html",
      "vue": "html"
    }

ESLint for linting <script> section:

  • Install ESLint extension

  • Add vue to your eslint.validate setting, for example:

    "eslint.validate": [
      "javascript",
      "javascriptreact",
      "vue"
    ]

Stylus:

Roadmap

See #188.

Related

  • octref/vls: vue language server, used to provide advanced IntelliSense, formatting and other language features.

Contribution

See CONTRIBUTING.md

Credits

License

MIT © Pine Wu

vetur's People

Contributors

octref avatar sandersn avatar

Watchers

 avatar  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.