alanwalk / markdown-toc

MarkdownTOC(Table Of Contents) Plugin for Visual Studio Code.
MIT License
141 stars 111 forks source link

Option for indentation #47

Closed akshaybabloo closed 6 years ago

akshaybabloo commented 6 years ago

Add option for the number of indentations; I think the default is set to 4.

Splike commented 6 years ago

Yes please!

I use the markdownlint package, which creates warnings on anything other than2-space indents. They have quite a good explanation here as to why that is: https://github.com/DavidAnson/markdownlint/blob/v0.8.1/doc/Rules.md#md007

The option to choose how many spaces the default indentation is, would be great!

alanwalk commented 6 years ago

@akshaybabloo @Splike Hi, you can config it in your settings file.

{
    "[markdown]": {
        "editor.tabSize": 2,
        "editor.insertSpaces": true
    }
}
Splike commented 6 years ago

Thanks @AlanWalk , that solved it for me!

akshaybabloo commented 6 years ago

Thanks @AlanWalk