Integrate Prettier into Volar
npm install volar-service-prettierVolar plugin for prettier.
``sh`
npm install volar-service-prettier
volar.config.js
`js``
module.exports = {
services: [
require('volar-service-prettier').create(
{
languages: ['html', 'css', 'scss', 'typescript', 'javascript'],
html: {
breakContentsFromTags: true,
},
ignoreIdeOptions: true,
},
// provide your prettier options, otherwise auto resolve config file by plugin
() => ({
// ...
})
),
],
};