Markdown Preview by Default
The problemVS Code can occasionally ignore the default Markdown Preview setting and open Without this extension, an ignored default setting leaves the file open as Markdown source. With this extension installed, the file is corrected and opened in VS Code's built-in Markdown Preview. How to useInstall the extension and set Markdown Preview as the default editor for How to stopDisable or uninstall the extension from VS Code's Extensions view. To open Markdown as source by default, set Text Editor as the default editor for BehaviorThe extension uses VS Code's built-in preview, checks whether a Markdown file opened in the requested view, and corrects it when necessary. Each file is corrected only once per VS Code session, so a later manual switch to the source editor is respected. It does not provide a separate Markdown renderer or run a background program. LicenseMIT License. The complete terms are included in the Markdown 默认预览解决的问题VS Code 有时会忽略 Markdown Preview 的默认编辑器设置,导致 未安装本扩展时,如果 VS Code 忽略了默认设置,文件会停留在 Markdown 源码模式。安装本扩展后,文件会得到修正,并以 VS Code 内置的 Markdown 预览打开。 如何使用安装本扩展,然后将 **Markdown Preview(Markdown 预览)**设置为 如何停用在 VS Code 扩展页面中禁用或卸载本扩展即可。如需让 Markdown 默认以源码方式打开,请将 **Text Editor(文本编辑器)**设为 工作逻辑本扩展使用 VS Code 自带的 Markdown 预览,确认 Markdown 文件是否按指定方式打开,并在必要时进行修正。每个文件在一次 VS Code 会话中只会自动修正一次;之后用户手动切换到源码模式时,扩展会尊重该操作,不再强制切回预览。它不会提供另一套 Markdown 渲染器,也不会运行后台程序。 许可证本扩展采用 MIT 许可证,完整条款包含在 |