简体   繁体   中英

VSCode preview markdown by default

99.999999999% of my work with markdown files is reading. Can I enable preview mode by default for this files?

I tried this in VS Code 1.48.1

Method 1

Open a markdown ( *.md ) file, then open the Command Palette and select >View: Reopen Editor With... > Markdown Preview (Experimental) .

Method 2

Add these lines to your settings.json file

{
    // your other settings ...
    "workbench.editorAssociations": [
        {
            "viewType": "vscode.markdown.preview.editor",
            "filenamePattern": "*.md"
        }
    ],
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM