Beautifier/formatter? #346
-
|
Not sure what I'm failing to do, but I can't seem to get any of the beautifiers/formatters I see in Packages to… do anything. (I only need to cover HTML, CSS, and JavaScript.) I only just installed Pulsar yesterday, to replace the increasingly ludicrous and bloated Phoenix Code, so it is entirely possible I am just missing something. Hints, guidance, suggestions welcome. Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
|
A couple paths to try:
If any of these works well for you, let us know what you picked! |
Beta Was this translation helpful? Give feedback.
-
|
@savetheclocktower Has the right answer here, but as for the ones that don't work, if you don't mind dropping their names so we could try looking into a bit more that'd be fantastic! Also welcome to using Pulsar! Love that you're giving it a try |
Beta Was this translation helpful? Give feedback.
A couple paths to try:
pulsar-code-formatknows how to format code and can be configured to auto-format on save. You can installpulsar-ide-htmlandpulsar-ide-css; both of those will give you simple code formatting for their respective languages that can be configured to some extent in the package settings. (Not sure how the HTML formatter will do withstyleorscripttags, though.)pulsar-ide-typescriptcan also do code formatting of JavaScript and TypeScript, I think even if you don't have ajsconfig.jsonortsconfig.jsonin your project. (It's on my to-do list to make a package that integratesprettierwithpulsar-code-format, but I haven't done it yet.)prettierfor JavaS…