To preview a README
file (typically in Markdown format) in the VS Code editor, follow these steps:
- Option 1: Use the Command Palette
- Press
Ctrl+Shift+P
(Windows/Linux) orCmd+Shift+P
(Mac) to open the Command Palette. - Type
Markdown: Open Preview
and select it.
- Press
- Option 2: Use the Keyboard Shortcut
- Press
Ctrl+Shift+V
(Windows/Linux) orCmd+Shift+V
(Mac) while theREADME.md
file is open.
- Press
- Option 3: Use the Toolbar
- Click the Open Preview to the Side button in the top-right corner of the editor (it looks like a split square icon).
- Option 4: Right-Click
- Right-click in the editor and select
Open Preview
.
- Right-click in the editor and select
- If you want to see the raw Markdown and the rendered preview side by side:
- Use the Command Palette or click the Split Editor button at the top-right of the editor.
- Drag the Markdown preview pane next to the raw Markdown text.
- To enhance the Markdown experience, you can install extensions like:
These extensions provide additional features like table of contents, export options, and custom styles.