ux-language-features (Uxls)
⚡ Fast ux Language Support Extension support quickapp and vela
⚠️ Uxls only has a "whole document formatter" and cannot format arbitrary ranges. As a result, only the Format Document command is available. The Format Selection command does not work.
👉 Uxls use prettier as the formating engine. So you can use a .prettierrc
or .prettierrc.json
file to customize formatting rules.
example:
// in your .prettierrc file
{
"semi": true,
"singleQuote": false,
"printWidth": 80,
"tabWidth": 2,
"useTabs": true,
"arrowParens": "always",
"bracketSameLine": false,
"bracketSpacing": true,
"htmlWhitespaceSensitivity": "css"
}
more info to prettier
Note
❌ Do not use Object.assign()
when define components
export default Object.assing({},mixin,{
props:['a'],
private:{
msg:'do not code like this'
},
someMethods(){
console.log(this.msg)
}
})
Such code can not get the code completion and error prompts provided by the plugin
💌 Thanks for volar
Thanks to the Volar, ux-language-features is inspired by Volar