How to change Markdownlint settings in Visual Studio Code

markdownvisual-studio-code

The Markdownlint plugin in Visual Studio Code is raising an MD007 error.

I'd like to update the setting but can't work out how to find the options.config referred to in the markdownlint documentation?

Best Answer

The trick is explained in the vscode-markdownlint repo (diff from the primary markdownlint repo):

Rules can also be configured using Code's support for user and workspace settings.

  1. In Visual Studio Code, open File -> Preferences -> Settings or use CTRL + ,

  2. Edit the User Settings tab on the right to something like this:

    "markdownlint.config": {
        "default": true,
        "MD007": { "indent": 4 }
    }
    
Related Question