Reputation: 1761
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
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