Skip to content

change standard formatting for JS #8217

Closed Answered by SomeoneToIgnore
tobsn asked this question in General Q&A
Discussion options

You must be logged in to vote

See general overview of Zed's formatter capabilities and the settings: #7951 (reply in thread)

Quick recap:

First, you have to understand what is a formatter setting in your settings set to.
If there's none, then the default value would be auto, which tries to format the buffer with prettier (if applicable to your current language which unfortunately is not mentioned in the question) or, otherwise, tries to format the buffer with the language server formatting.

Prettier is configured with "prettier" section with https://prettier.io/docs/en/configuration , each language server is configured differently and it's better to consult its docs.

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by SomeoneToIgnore
Comment options

You must be logged in to vote
3 replies
@SomeoneToIgnore
Comment options

@tobsn
Comment options

@SomeoneToIgnore
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants