visual-studio-code

Show two markdown and two preview tabs in VSCode


I want to open two markdown files, with two preview tabs, and to have them on two monitors - so I can edit both files simultaneously.

Steps:

One expects each preview tab to render its associated markdown.

However, both preview tabs render the markdown for the currently-selected tab. So although I can view two markdown files simultaneously, I can only view one markdown preview.

How do I do this?


Solution

  • From the current version of the documentation

    Dynamic previews and preview locking

    By default, Markdown previews automatically update to preview the currently active Markdown file:

    The preview automatically switching to preview the current Markdown document

    You can lock a Markdown preview using the Markdown: Toggle Preview Locking command to keep it locked to its current Markdown document. Locked previews are indicated by [Preview] in the title:

    A locked Markdown preview

    Note: The Markdown: Toggle Preview Locking command is available only if Markdown preview is the active Tab.