简体   繁体   English

默认情况下 VSCode 预览降价

[英]VSCode preview markdown by default

99.999999999% of my work with markdown files is reading.我 99.999999999% 的降价文件工作是阅读。 Can I enable preview mode by default for this files?我可以默认为此文件启用预览模式吗?

I tried this in VS Code 1.48.1我在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) .打开Markdown Preview (Experimental) ( *.md ) 文件,然后打开命令面板并选择>View: Reopen Editor With... > Markdown Preview (Experimental)

Method 2方法二

Add these lines to your settings.json file将这些行添加到settings.json文件中

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

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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