Formatting #354
Answered
by
ebkalderon
Decodetalkers
asked this question in
Q&A
Formatting
#354
-
How to set the format option when using formattiong function? |
Beta Was this translation helpful? Give feedback.
Answered by
ebkalderon
Mar 2, 2023
Replies: 1 comment
-
What sort of formatting options do you mean? The |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Decodetalkers
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What sort of formatting options do you mean? The
LanguageServer::formatting()
method has aDocumentFormattingParams
argument passed into it, and this struct includes aFormattingOptions
member that contains a bunch of fields describing to the server how the formatting should be applied. Is this what you meant by your question?