如何设置 sublime text 以在设置一次后自动检测文件类型? [英] How do I set sublime text to auto detect a file type after setting it once?

查看:72
本文介绍了如何设置 sublime text 以在设置一次后自动检测文件类型?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

例如,我有一个 .zsh 文件,我想始终将其作为Shell Script (bash)"文件类型在 sublime 中打开.目前,即使我更改并重新打开它,它也会默认恢复为文本文件格式.

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.

推荐答案

查看窗口的右下角.

单击文件类型名称.让我们假设它是Shell Script (Bash)".

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.

这篇关于如何设置 sublime text 以在设置一次后自动检测文件类型?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆