How do I make a default syntax by filetype in Atom text editor?

前端 未结 7 661
暗喜
暗喜 2021-01-31 02:17

I want my .ejs files to have html syntax, however, it always opens the files as Plain Text.

In sublime you can choose \"Open all with current extension as...\" then ch

7条回答
  •  耶瑟儿~
    2021-01-31 02:41

    For individual files you can use the Grammar Selector; Ctrl+Shift+L to set which language you're using on that file. Not the same as auto-detect but useful for those times when you're using a file that you don't want to set a default for.

提交回复
热议问题