I am currently using Prettier Version: 9.5.0 for Vue in VSCode.
This is my current code
<q-select label="Fruits" :options="['apple', 'mango']" />
This is what I would like Prettier to format it into automatically on save
<q-select
label="Fruits"
:options="['apple', 'mango']"
/>
I have tried so far using the singleAttributePerLine option in my settings.json file in VSCode according to these release notes. However it does not work and VSCode does not recognize this configuration. I also could not find this setting in the settings menu for the Prettier extension. I also tried putting this option in the .editorconfig file but no results
My settings.json file configuration
"editor.codeActionsOnSave": ["source.fixAll.eslint"],
"eslint.validate": ["javascript", "javascriptreact", "typescript", "vue"],
"editor.defaultFormatter": "esbenp.prettier-vscode",
"prettier.singleAttributePerLine":true,