简体   繁体   English

使VScode自动突出显示.txt文件为Markdown

[英]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? 发现此功能在Notepad ++中非常有用,但是在VSCODE中找不到执行此操作的选项,VSCODE可以做到吗? 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 . 编辑:我知道我可以通过F1/Change Language Mode/json轻松使vscode突出显示我的txt文件内容,但是我想知道如何使其auto-highlight txt file content as markdown syntax

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. 在VSC中,您可以通过单击窗口右下角的“纯文本”按钮将语法突出显示从“纯文本”更改为另一种“语言”。

edit: You can make VCS always do .md syntax-highligting on .txt files doing: -> Press F1 -> Type in Change Language Mode -> Choose Configure File Association for '.txt' -> Choose Markdown 编辑:您可以使VCS始终对.txt文件进行.md语法高亮处理:->按F1 >在“ Change Language Mode键入->选择Configure File Association for '.txt' ->选择“ Markdown

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM