Skip to content

Disable default formatters #3768

Answered by troy351
YousefED asked this question in Q&A
Discussion options

You must be logged in to vote
const htmlDefaults = monaco.languages.html.htmlDefaults
htmlDefaults.setModeConfiguration({
    ...htmlDefaults.modeConfiguration,
    documentFormattingEdits: false,
    documentRangeFormattingEdits: false,
  })

this code can disable the default html formatter

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Comment options

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

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feature-request Request for new features or functionality typescript
3 participants
Converted from issue

This discussion was converted from issue #2296 on March 09, 2023 15:06.