我开始使用Sublime Text并且第一眼就爱上了它。我非常喜欢这个强大的编辑器。我是来自中国的编辑,所以我认为我只需要 UTF-8 和 GBK 编码选项,但每次我想用指定的编码选项保存文件,会有很多选项,比如
所以我的问题是如何删除Sublime Text的冗余编码选项?
答案 0 :(得分:1)
您可以修改~/Library/Application Support/Sublime Text 2/Packages/Default/Main.sublime-menu
的此部分,并删除您不希望在Save with Encoding
菜单中显示的所有编码。
{
"caption": "Save with Encoding",
"children":
[
{ "caption": "UTF-8", "command": "save", "args": {"encoding": "utf-8" } },
{ "caption": "UTF-8 with BOM", "command": "save", "args": {"encoding": "utf-8 with bom" } },
{ "caption": "UTF-16 LE", "command": "save", "args": {"encoding": "utf-16 le" } },
{ "caption": "UTF-16 LE with BOM", "command": "save", "args": {"encoding": "utf-16 le with bom" } },
{ "caption": "UTF-16 BE", "command": "save", "args": {"encoding": "utf-16 be" } },
{ "caption": "UTF-16 BE with BOM", "command": "save", "args": {"encoding": "utf-16 be with bom" } },
{ "caption": "-" },
{ "caption": "Western (Windows 1252)", "command": "save", "args": {"encoding": "Western (Windows 1252)" } },
{ "caption": "Western (ISO 8859-1)", "command": "save", "args": {"encoding": "Western (ISO 8859-1)" } },
{ "caption": "Western (ISO 8859-3)", "command": "save", "args": {"encoding": "Western (ISO 8859-3)" } },
{ "caption": "Western (ISO 8859-15)", "command": "save", "args": {"encoding": "Western (ISO 8859-15)" } },
{ "caption": "Western (Mac Roman)", "command": "save", "args": {"encoding": "Western (Mac Roman)" } },
{ "caption": "DOS (CP 437)", "command": "save", "args": {"encoding": "DOS (CP 437)" } },
{ "caption": "Arabic (Windows 1256)", "command": "save", "args": {"encoding": "Arabic (Windows 1256)" } },
{ "caption": "Arabic (ISO 8859-6)", "command": "save", "args": {"encoding": "Arabic (ISO 8859-6)" } },
{ "caption": "Baltic (Windows 1257)", "command": "save", "args": {"encoding": "Baltic (Windows 1257)" } },
{ "caption": "Baltic (ISO 8859-4)", "command": "save", "args": {"encoding": "Baltic (ISO 8859-4)" } },
{ "caption": "Celtic (ISO 8859-14)", "command": "save", "args": {"encoding": "Celtic (ISO 8859-14)" } },
{ "caption": "Central European (Windows 1250)", "command": "save", "args": {"encoding": "Central European (Windows 1250)" } },
{ "caption": "Central European (ISO 8859-2)", "command": "save", "args": {"encoding": "Central European (ISO 8859-2)" } },
{ "caption": "Cyrillic (Windows 1251)", "command": "save", "args": {"encoding": "Cyrillic (Windows 1251)" } },
{ "caption": "Cyrillic (Windows 866)", "command": "save", "args": {"encoding": "Cyrillic (Windows 866)" } },
{ "caption": "Cyrillic (ISO 8859-5)", "command": "save", "args": {"encoding": "Cyrillic (ISO 8859-5)" } },
{ "caption": "Cyrillic (KOI8-R)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-R)" } },
{ "caption": "Cyrillic (KOI8-U)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-U)" } },
{ "caption": "Estonian (ISO 8859-13)", "command": "save", "args": {"encoding": "Estonian (ISO 8859-13)" } },
{ "caption": "Greek (Windows 1253)", "command": "save", "args": {"encoding": "Greek (Windows 1253)" } },
{ "caption": "Greek (ISO 8859-7)", "command": "save", "args": {"encoding": "Greek (ISO 8859-7)" } },
{ "caption": "Hebrew (Windows 1255)", "command": "save", "args": {"encoding": "Hebrew (Windows 1255)" } },
{ "caption": "Hebrew (ISO 8859-8)", "command": "save", "args": {"encoding": "Hebrew (ISO 8859-8)" } },
{ "caption": "Nordic (ISO 8859-10)", "command": "save", "args": {"encoding": "Nordic (ISO 8859-10)" } },
{ "caption": "Romanian (ISO 8859-16)", "command": "save", "args": {"encoding": "Romanian (ISO 8859-16)" } },
{ "caption": "Turkish (Windows 1254)", "command": "save", "args": {"encoding": "Turkish (Windows 1254)" } },
{ "caption": "Turkish (ISO 8859-9)", "command": "save", "args": {"encoding": "Turkish (ISO 8859-9)" } },
{ "caption": "Vietnamese (Windows 1258)", "command": "save", "args": {"encoding": "Vietnamese (Windows 1258)" } },
{ "caption": "-" },
{ "caption": "Hexadecimal", "command": "save", "args": {"encoding": "Hexadecimal" } }
]
},
答案 1 :(得分:1)
对于Sublime 3:
<layer-list xmlns:android="http://schemas.android.com/apk/res/android">
<item android:gravity="center">
<shape android:shape="rectangle">
<solid android:color="@android:color/holo_orange_light" />
<size
android:width="150dp"
android:height="3dp" />
</shape>
</item>
<item android:gravity="right">
<shape android:shape="rectangle">
<solid android:color="@android:color/holo_orange_light" />
<size
android:width="3dp"
android:height="50dp" />
</shape>
</item>
<item android:gravity="left">
<shape xmlns:android="http://schemas.android.com/apk/res/android"
android:shape="oval">
<stroke
android:width="3dp"
android:color="@android:color/holo_orange_light" />
<solid android:color="#F2000000" />
<size
android:width="100dp"
android:height="100dp" />
</shape>
</item>
</layer-list>
P.S。抱歉我的英语不是我的母语