Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSCode. Change tab size for markdown code preview

It is possible to change tab size for markdown code preview ? Currently 1 tab = 8 spaces.

like image 297
Winns Avatar asked Jan 04 '23 20:01

Winns


1 Answers

If you are referring to the markdown preview window you can apply custom css to manipulate the way it is displayed using the markdown.styles setting.

"markdown.styles": [
        "Style.css"
    ]

If you are referring to the editor window you can set the tab size for markdown files by editing your settings file:

"[markdown]": {
    "editor.tabSize": 4
  }

To access the settings file click File -> Preferences -> Settings

like image 144
Joshua Avatar answered Apr 14 '23 01:04

Joshua