Re-formatting file? #9043
-
I just copy/pasted some JS code into its own new dedicated .js file and the formatting is all off since it comes from inline HTML. Isn't Helix supposed to reformat on save? How do I force re-formatting? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
Only a few languages have auto format on save by default; for most, you have to turn it on in your But you can format manually any time as well by just typing |
Beta Was this translation helpful? Give feedback.
-
But I installed from the Arch repos: https://archlinux.org/packages/extra/x86_64/helix/ |
Beta Was this translation helpful? Give feedback.
-
Alright, sorry for my ignorance. I didn't realize that I needed to install the language servers seperately. Installing |
Beta Was this translation helpful? Give feedback.
Alright, sorry for my ignorance. I didn't realize that I needed to install the language servers seperately.
Installing
typescript-language-server
did the trick.