I am simply trying to format only the selected text in my Vue project. I have prettier installed and can format the entire document just fine.
I need to format only the selected text which works on my home computer but not my work laptop. I can even right-click the selected text, and see the option Format Selection. If I click it, it formats the entire document.

What is going on? Please help.
I have the same problem as you and the issues seems to be that with prettier-eslint not supporting range formatting.
See more here: https://github.com/prettier/prettier-vscode/issues/137
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With