Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

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:

  • open the workspace in vscode
  • open both markdown files
  • move one file/tab to a different monitor
  • for each markdown tab, click the preview button to open the associated preview tab

One expects each preview tab to render its associated markdown.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

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.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading