Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 816
Luke Avatar asked Nov 29 '25 19:11

Luke


1 Answers

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

like image 128
Jasper Lichte Avatar answered Dec 01 '25 07:12

Jasper Lichte



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!