-
Notifications
You must be signed in to change notification settings - Fork 219
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature request: formatter #64
Comments
The formatter should be available in our latest update! The code was in it server side for a while I just didn't update some vscode extension dependencies so it wasn't showing up |
Thanks! |
Hey I'm on 0.0.9 and seeing the same message |
Same here. No formatter in 0.0.9 |
Have you turned on the formatter in the yaml settings? It’s not enabled by default. After it’s enabled it requires a restart. |
I see. Yes, it is working with the settings enabled. |
I've enabled the formatter and restarted VS Code, yet I still get the message that there is no formatter. I'm on version 0.0.11. Tried uninstalling and re-installing the extension, too. |
It seems to work fine for me on latest version. Are you accidentally using https://marketplace.visualstudio.com/items?itemName=adamvoss.yaml instead of https://marketplace.visualstudio.com/items?itemName=redhat.vscode-yaml or do you have any other yaml extensions activated? |
The only other extensions I have installed besides this one are a Python extension and an ESLint extension. I've enabled |
Currently it just formats the entire document. If you right click on a yaml file is the format document option there? Which version of vscode are you using? |
Ah yes, I see it. When I click the menu option it works. Thank you very much! |
Any reason why the format removes comments?(Statements starting with a hash #) |
The parser does not support comments so when formatting it it just removed it. I’m switching formatters soon and that will fix the problem. |
Hello,
if I select "Format document", vscode pops up "Sorry, but there is no formatter for 'yaml'-files installed."
It would be nice if this extension supported formatting :-)
The text was updated successfully, but these errors were encountered: