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.
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.