Monaco-editor: How to control the tab size for different type of files?

Created on 10 Nov 2016  路  3Comments  路  Source: microsoft/monaco-editor

monaco-editor npm version: 0.7.0
Browser: Chrome
OS: macOS 10.11

I found sometimes the tab size is 2, sometimes the tab size is 4, even is one file, the tab size is different. Is there a API to set tab size for different files?

All 3 comments

I think you might be looking for updateOptions where you can pass in options for tabSize.

Additionally, there is also

@philcchen Thanks, I'll check it.

@philcchen I'm still a little confused. It seems there is no direct option for updateOptions to set tabSize.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

zeegin picture zeegin  路  3Comments

Kang-Jun-sik picture Kang-Jun-sik  路  3Comments

brandalorian picture brandalorian  路  3Comments

akosyakov picture akosyakov  路  3Comments

ststeiger picture ststeiger  路  3Comments