GorvGoyl
GorvGoyl

Reputation: 49280

How to see preview of .mdx file as markdown in VSCode

Is there a way I can force VSCode to preview *.mdx files as markdown just like it does for *.md files? For reference see how Github shows preview of this mdx file

I know there's an extension MDX Preview but that's not working for next.js project. see open issue.

I tried this vscode setting but doesn't work:

"files.associations": {
    "*.mdx": "md"
  },

Upvotes: 19

Views: 11973

Answers (1)

rioV8
rioV8

Reputation: 28673

In files.associations you mention the languageId to use for a particular file extension

"files.associations": {
    "*.mdx": "markdown"
},

Upvotes: 47

Related Questions