Luke
Luke

Reputation: 1761

make VScode auto highlight .txt files as Markdown

Found this very helpful in Notepad++, but can't find the option to do it in VSCODE, Could VSCODE do it? Looking around setting for a while and Googled but nothing help.

EDIT: I know that I could easily make vscode highlight my txt file content by F1/Change Language Mode/json but I wonder how to make it auto-highlight txt file content as markdown syntax.

Upvotes: 3

Views: 4322

Answers (1)

Jasper Lichte
Jasper Lichte

Reputation: 530

In VSC you can change the syntax-highlighting from 'Plain-text' to another 'language' by clicking the 'Plain-text'-button on the bottom right of the window.

edit: You can make VCS always do .md syntax-highligting on .txt files doing: -> PressF1 -> Type in Change Language Mode -> Choose Configure File Association for '.txt' -> Choose Markdown

Upvotes: 9

Related Questions