How do I set sublime text to auto detect a file type after setting it once?

梦想的初衷 提交于 2019-12-04 17:13:08

问题


for instance I have a .zsh file that I would like to always open in sublime as a "Shell Script (bash)" file type. Currently it defaults back to a text file format even when I change and reopen it.


回答1:


Look in the bottom right of the window.

Click the file type name. Let's assume it is 'Shell Script (Bash)'.

Notice that the first option is 'Open all with current extension as...'

Follow the obvious steps from there and you should be all set.



来源:https://stackoverflow.com/questions/27454555/how-do-i-set-sublime-text-to-auto-detect-a-file-type-after-setting-it-once

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!