Giter VIP home page Giter VIP logo

Comments (8)

sudo-suhas avatar sudo-suhas commented on August 27, 2024 1

To add to that, I was also able to use jsbeautify for the Vue files.. That works well with html, js and css.

from vetur.

octref avatar octref commented on August 27, 2024

Thanks for reporting, embedded formatter isn't supported yet.
I'll take a look after doing embedded error checking.

from vetur.

sudo-suhas avatar sudo-suhas commented on August 27, 2024

Thanks. Much appreciated. :)

from vetur.

octref avatar octref commented on August 27, 2024

OK, just an update, as people seem to want this feature.

VSCode doesn't seem to be interested in including formatters in the core, and encourages extensions to provide formatting support: microsoft/vscode#19166

I can try to add setting for external formatters per language, but it's not on the top of my list. I added it to the roadmap.

Meanwhile, VSCode includes html / js formatter, so you can still select that region and "Format Selection".

PR is welcome.

from vetur.

ripper234 avatar ripper234 commented on August 27, 2024

Same for me on LESS style sections - formatter doesn't do anything on these sections.
(FYI without vetur installed, formatting works well, but syntax highlighting doesn't and there are incorrect warnings)

from vetur.

octref avatar octref commented on August 27, 2024

@ripper234 LESS formatting is now fixed. Try upgrading to 0.4.

For this issue, probably need to include https://github.com/mrmlnc/vscode-pugbeautify as a dependency. I'll look into that for 0.5.

from vetur.

octref avatar octref commented on August 27, 2024

Note to myself: Disable pug and sass region formatting for now for #68. Look into pugbeautify later.

from vetur.

octref avatar octref commented on August 27, 2024

Closing in favor of #82.

from vetur.

Related Issues (20)

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.