| by Arround The Web | No comments

How to Preview Markdown in Visual Studio Code

How to Preview Markdown in Visual Studio Code

Have you ever heard of do it all software? If not, then the VS Code will be the perfect example for it.

You can find support for almost every programming language possible to plug-ins that will let you extend its features more than you can imagine.

One of which is using the VS Code as a markdown text editor.

The easiest way to get the preview pane for markdown is to press the Ctrl + K and then V.

Want more details? Here you have it.

How to preview markdown in VS Code

There are two ways to preview markdown in VS Code:

  • Using the side panel (recommended)
  • Open preview in the new tab

Before we get into details, make sure the file you are working on has the .md extension (indicates markdown file).

Preview markdown on the side panel

How to Preview Markdown in Visual Studio Code

There are two ways you can get the preview panel in markdown:

  • Using shortcut
  • By pressing the preview button

Using shortcut

If you want to use the shortcut, all you have to do is press the Ctrl + K and then press the V key and it will bring the preview panel:

How to Preview Markdown in Visual Studio Code

As you can see, it brings a preview panel to the right side of the current file.

Using the preview button

If you don't like the idea of using shortcuts for everything, there's a preview button available in VS Code by which you can bring the preview panel easily.

Here's where it is located at:

How to Preview Markdown in Visual Studio Code

When pressed, here's how it gets you a preview:

How to Preview Markdown in Visual Studio Code

Pretty easy way in my opinion, especially if you are just getting started with VS Code and you are not comfortable using the shortcuts yet.

Preview markdown in a different tab

How to Preview Markdown in Visual Studio Code

Unlike the previous method, this will open the preview in a different tab which can be useful if you're working on multiple projects and don't want to spare the half screen just for the preview.

To use this, all you have to do is press Ctrl + Shift + V (I know it looks familiar as you use the same command to paste text in the terminal):

How to Preview Markdown in Visual Studio Code

More on VS Code

Here's how you can comment multiple lines at once in VS Code:

How to Comment Multiple Lines in VS Code
Here are a couple of tips on commenting out multiple lines of code in VS Code.
How to Preview Markdown in Visual Studio Code

Want to declutter VS Code terminal? Here's how you do it:

How to Clear Terminal in VS Code
Don’t like the cluttered terminal screen in VS Code? Here’s how to clear it with a keyboard shortcut.
How to Preview Markdown in Visual Studio Code

I hope you will find this helpful.

Share Button

Source: It's FOSS

Leave a Reply