• Sublime Text 2 使用心得


    一、 前言

    作为一个前端,有一款好的开发利器是必不可少的,editplus、notepad++都是不错的工具,体积轻巧,启动迅速(dw太浮肿了)。最近,又有一款新的编辑器诞生,席卷前端界,惹得无数喜爱,不少前端er纷纷抛弃用了数年的“伙伴”,投入了她的怀抱——Sublime Text2。Sublime Text2是一款跨平台的编辑器,再也不用为换平台而找不到合适的、熟悉的编辑器担忧了。目前,还是beta版中,不过功能已经很强大了,更新也很快,目前最新是bulid2181。ST2不是免费的,但可以永久免费使用,只是在保存的时候,偶尔会弹出要你购买注册的对话框,仅此而已。官网地址:http://www.sublimetext.com/2

    (篇尾附破解方法及主要汉化)

    二、 功能

    Sublime Text2 是一款具有代码高亮、语法提示、自动完成且反应快速的编辑器软件,不仅具有华丽的界面,还支持插件扩展机制,用她来写代码,绝对是一种享受。

    界面

    先看下ST2的界面:

    clip_image002[5]

    l 从上到下:标题栏↓菜单栏↓tab控制栏↓编辑区↓状态栏;

    l 从做到右:分别是边栏(可关闭)→编辑区→MiniMap

    菜单栏

    各种命令,各种设置。

    Tab栏

    很多编辑器都有的,如果文件编辑过未保存,右上角有个小圆点提示保存,如果未保存关了也不用害怕,ST2很贴心,会帮我们自动保存。

    编辑区

    这是我们主要的工作区域,ST2支持代码自动缩进,代码折叠功能。

    介绍几个常见的功能:

    l 自动完成:自动完成的快捷键是Tab,如果在html文件中,输入cl按下tab,即可自动补全为class=””;加上zencoding后,更是如虎添翼,后面再讲到

    l 多列编辑:按住ctrl点击鼠标,会出现多个闪烁的光标,这时可同时修改多处

    clip_image004[5]

    或者按住鼠标中键拖拽,clip_image006[5]

    l 代码注释功能:ctrl+/、ctrl+shift+/分别未行注释和块注释,再按一下就能去掉注释,ST2能够自动识别是html、css还是js文件,给出不同类型的注释。

    l 行操作:ctrl+alt+↑、ctrl+alt+↓向上或者向下交换两行,ctrl+enter,光标后插入空行,ctrl+d选择相似,可以参考后面的快捷键列表。

    l 右键功能:

    clip_image008[5]

    前3个,大家都知道,第4个,show unsaved changes,显示未保存的修改,红色减号表示删去的内容,绿色加号表示新增的内容

    clip_image010[5]

    Open Containing Folder…,打开包含此文件的文件夹,这个很方便找到相关的文件

    Copy File Path,复制文件路径,方便我们复制路径到浏览器中查看

    Auto-Format Tags on Selection 格式化选中的文档,方便我们更清晰的查看代码结构,虽然ST2有自动缩进功能,但是当我们粘贴进一段没有格式化过的代码,就需要这个能了,这个功能要安装了Tag这个插件才会出现。

    l 人性化设计:ST2虽然还是beta版中,但是有很多设计细节还是值得称赞的,比如点击一个标签或者括弧,会在起始处显示下划点线,方便看清代码结果,每一层嵌套代码间都有竖线,起到视觉辅助的作用。

    clip_image012[5]clip_image014[5]clip_image016[5]

    clip_image018[5]

    三、 设置

    Sublime text2 在bulid2181后,对【设置】进行了合并,现在只有两个选项,分别是系统设置和快捷键设置。

    clip_image020[4]

    一般我们修改设置的话,最好复制出来在user里修改,以免以后升级default被覆盖掉。

    l Settings:在此文件里,可以修改很多东西,比如主题,字体,字号,是否显示行号、自动缩进、自动完成。很多都默认选中了,我另外修改了两个地方:

    clip_image022[4]

    98行——显示缩略图边框

    101行——光标当前行高亮显示

    有助于我们快速找到光标位置。

    l Key Bindings:快捷键设置,ST2的快捷键很多,改的时候注意不要覆盖了。因为快捷键众多,所以有下面这种组合快捷键,先按下ctrl+k,松开k,再按下j就可以展开全部代码了。

    clip_image024[4]

    l 主要快捷键列表

    Ctrl+L 选择整行(按住-继续选择下行)

    Ctrl+KK 从光标处删除至行尾

    Ctrl+Shift+K 删除整行

    Ctrl+Shift+D 复制光标所在整行,插入在该行之前

    Ctrl+J 合并行(已选择需要合并的多行时)

    Ctrl+KU 改为大写

    Ctrl+KL 改为小写

    Ctrl+D 选词 (按住-继续选择下个相同的字符串)

    Ctrl+M 光标移动至括号内开始或结束的位置

    Ctrl+Shift+M 选择括号内的内容(按住-继续选择父括号)

    Ctrl+/ 注释整行(如已选择内容,同“Ctrl+Shift+/”效果)

    Ctrl+Shift+/ 注释已选择内容

    Ctrl+Z 撤销

    Ctrl+Y 恢复撤销

    Ctrl+M 光标跳至对应的括号

    Alt+. 闭合当前标签

    Ctrl+Shift+A 选择光标位置父标签对儿

    Ctrl+Shift+[ 折叠代码

    Ctrl+Shift+] 展开代码

    Ctrl+KT 折叠属性

    Ctrl+K0 展开所有

    Ctrl+U 软撤销

    Ctrl+T 词互换

    Tab 缩进 自动完成

    Shift+Tab 去除缩进

    Ctrl+Shift+↑ 与上行互换

    Ctrl+Shift+↓ 与下行互换

    Ctrl+K Backspace 从光标处删除至行首

    Ctrl+Enter 光标后插入行

    Ctrl+Shift+Enter 光标前插入行

    Ctrl+F2 设置书签

    F2 下一个书签

    Shift+F2 上一个书签

    四、 扩展

    ST2是支持插件扩展的,首先,我们需要安装Package Contro,ctrl+`调出命令行工具,输入import urllib2,os;pf='Package Control.sublime-package';ipp=sublime.installed_packages_path();os.makedirs(ipp) if not os.path.exists(ipp) else None;open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read())

    回车即可。

    点击Preferences→Package Control,显示以下弹窗:

    n Disable Package :禁用插件

    n enable Package :启用插件

    n Install Package :安装插件

    n List Package :查看已安装插件列表

    n Remove Package :移除插件

    n Upgrade Package :升级插件

    clip_image026[4]

    插件推荐:

    已安装插件列表:

    clip_image028[4]

    l ZenCoding:前端必备,快速开发HTML/CSS

    clip_image030[4]

    输入 div.wrapper>div.header+div.main+div.footer 按下Tab,立刻变成

    clip_image032[4]

    或者按下ctrl+alt+enter,激发zencoding控制台,可看到整个动态的过程。

    clip_image034[4]

    l JsFormat,格式化js代码,这个插件很有用,我们有时在网上看到某些效果,想查看是怎么实现的,但是代码被压缩过,很难阅读,不用怕,用ST2打开,按下ctrl+alt+5(这是我设置的快捷键),即可让代码还原,莫非是武林中失传已久的“还我靓靓拳”。

    clip_image036[4]

    clip_image038[4]

    l Tag 格式化标签,让乱七八糟的代码,瞬间整齐清晰。

    l BracketHighlighter,括弧高亮显示

    l Clipboard History,剪切板历史,可以保存多个复制信息,按下ctrl+alt+v,可以选择历史剪切板

    clip_image040[4]

    l Goto-CSS-Declaration,跳转到css文件该class的声明处,方便修改查看,如图下所示,注意对应的css文件要同时打开才行。(快捷键:win+.)

    clip_image042[4]clip_image044[4]

    l GotoRecent,打开最近的文件,系统有这个功能,但只能看最近8个,有点不爽,按ctrl+e,选择即可。

    l SCSS,支持scss的语法高亮,里面附带了好多CSS Snippet,无论现用或者改造成,都可节省不少时间。

    clip_image046[4]

    还有很多插件,jquery语法提示,jsHint等等。

    五、 结语

    总而言之,Sublime Text2是一款不错的代码编写工具,有好看的ui,人性化的细节设计,全面的功能和扩展机制,如果你还没用过,请试一下,不会让你失望的。如果说有什么缺点的话,ST2目前对ANSI、GBK的汉字显示不正常,(使用utf8编码就没问题,package control里有一个gbk插件),希望ST2以后能完美支持中文。

    而插件的使用 都可以通过package setting来查看

    附破解方法

    方法1:

    最新Sublime Text 2.0.1 2217 版本破解注册方法:

    准备工具:十六进制编辑器,这里以WinHex为例。不要使用本身的Sublime Text来编辑。

    1.安装最新的Sublime Text 2.0.1 2217版本,然后将sublime_text.exe文件复制一份并重命名为sublime_text_backup.exe做一个备份

     

    2.用 WinHex十六进制编辑器打开sublime_text.exe文件,跳到 000CBB70 那一行,将该行的 8AC3修改为 B0 01然后保存即可。

    3.这种方法不用注册码,修改完后保存即可破解注册成功。

    4.如果修改后程序无法运行或破解失败,请将原来的 sublime_text.exe 文件删除,将 sublime_text_backup.exe 文件重命名为原来的 sublime_text.exe

    方法2:

    1. sublime_text.exe 复制一份改名为 sublime_text_cracked.exe 2. 用sublime text2 打开这个文件,搜索 3342全部替换为 3242保存

    Sublime Text 2 破解 sublime text2 500x410

     3. 打开 sublime_text_cracked.exe 在help菜单里enter license,把下面注册码贴进去,包括begin和end那两行

    —–BEGIN LICENSE—–
    hiwanz
    Unlimited User License
    EA7E-26838
    5B320641E6E11F5C6E16553C438A6839
    72BA70FE439203367920D70E7DEB0E92
    436D756177BBE49EFC9FBBB3420DB9D3
    6AA8307E845B6AB8AF99D81734EEA961
    02402C853F1FFF9854D94799D1317F37
    1DAB52730F6CADDE701BF3BE03C34EF2
    85E053D2B5E16502F4B009DE413591DE
    0840D6E2CBF0A3049E2FAD940A53FF67
    —–END LICENSE—–
    

    4.sublime_text_cracked.exe 改为sublime_text.exe 即可。

     

    附汉化方法

    安装好该软件后,修改Sublime Text 2的"packages/Default/Main.sublime-menu"文件。

    [
        {
            "caption": "文件(F)",
            "mnemonic": "F",
            "id": "file",
            "children":
            [
                { "command": "new_file", "caption": "新建文件(N)", "mnemonic": "N" },
    
                { "command": "prompt_open_file", "caption": "打开文件(O)…", "mnemonic": "O", "platform": "!OSX" },
                { "command": "prompt_open_folder", "caption": "打开文件夹…", "platform": "!OSX" },
                { "command": "prompt_open", "caption": "打开…", "platform": "OSX" },
    
                {
                    "caption": "最近打开(R)",
                    "mnemonic": "R",
                    "children":
                    [
                        { "command": "reopen_last_file", "caption": "重新打开已关闭的文件" },
                        { "caption": "-" },
                        { "command": "open_recent_file", "args": {"index": 0 } },
                        { "command": "open_recent_file", "args": {"index": 1 } },
                        { "command": "open_recent_file", "args": {"index": 2 } },
                        { "command": "open_recent_file", "args": {"index": 3 } },
                        { "command": "open_recent_file", "args": {"index": 4 } },
                        { "command": "open_recent_file", "args": {"index": 5 } },
                        { "command": "open_recent_file", "args": {"index": 6 } },
                        { "command": "open_recent_file", "args": {"index": 7 } },
                        { "caption": "-" },
                        { "command": "open_recent_folder", "args": {"index": 0 } },
                        { "command": "open_recent_folder", "args": {"index": 1 } },
                        { "command": "open_recent_folder", "args": {"index": 2 } },
                        { "command": "open_recent_folder", "args": {"index": 3 } },
                        { "command": "open_recent_folder", "args": {"index": 4 } },
                        { "command": "open_recent_folder", "args": {"index": 5 } },
                        { "command": "open_recent_folder", "args": {"index": 6 } },
                        { "command": "open_recent_folder", "args": {"index": 7 } },
                        { "caption": "-" },
                        { "command": "clear_recent_files", "caption": "清除项目" }
                    ]
                },
                {
                    "caption": "用代码重新打开",
                    "children":
                    [
                        { "caption": "UTF-8", "command": "reopen", "args": {"encoding": "utf-8" } },
                        { "caption": "UTF-16 LE", "command": "reopen", "args": {"encoding": "utf-16 le" } },
                        { "caption": "UTF-16 BE", "command": "reopen", "args": {"encoding": "utf-16 be" } },
                        { "caption": "-" },
                        { "caption": "Western (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } },
                        { "caption": "Western (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } },
                        { "caption": "Western (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } },
                        { "caption": "Western (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } },
                        { "caption": "Western (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } },
                        { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } },
                        { "caption": "Arabic (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } },
                        { "caption": "Arabic (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } },
                        { "caption": "Baltic (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } },
                        { "caption": "Baltic (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } },
                        { "caption": "Celtic (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } },
                        { "caption": "Central European (Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } },
                        { "caption": "Central European (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } },
                        { "caption": "Cyrillic (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } },
                        { "caption": "Cyrillic (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } },
                        { "caption": "Cyrillic (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } },
                        { "caption": "Cyrillic (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } },
                        { "caption": "Cyrillic (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } },
                        { "caption": "Estonian (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } },
                        { "caption": "Greek (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } },
                        { "caption": "Greek (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } },
                        { "caption": "Hebrew (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } },
                        { "caption": "Hebrew (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } },
                        { "caption": "Nordic (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } },
                        { "caption": "Romanian (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } },
                        { "caption": "Turkish (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } },
                        { "caption": "Turkish (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } },
                        { "caption": "Vietnamese (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } },
                        { "caption": "-" },
                        { "caption": "Hexadecimal", "command": "reopen", "args": {"encoding": "Hexadecimal" } }
                    ]
                },
                { "command": "clone_file", "caption": "克隆文件(E)", "mnemonic": "e" },
                { "command": "save", "caption": "保存(S)", "mnemonic": "S" },
                {
                    "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": "十六进制", "command": "save", "args": {"encoding": "Hexadecimal" } }
                    ]
                },
                { "command": "prompt_save_as", "caption": "另存为(A)…", "mnemonic": "A" },
                { "command": "save_all", "caption": "保存全部(L)", "mnemonic": "l" },
                { "caption": "-", "id": "window" },
                { "command": "new_window", "caption": "新建窗口(W)", "mnemonic": "W" },
                { "command": "close_window", "caption": "关闭窗口" },
                { "caption": "-", "id": "close" },
                { "command": "close", "caption": "关闭文件(C)", "mnemonic": "C" },
                { "command": "revert", "caption": "恢复文件(V)", "mnemonic": "v" },
                { "command": "close_all", "caption": "关闭所有文件" },
                { "caption": "-", "id": "exit" },
                { "command": "退出(X)", "mnemonic": "x" }
            ]
        },
        {
            "caption": "编辑(E)",
            "mnemonic": "E",
            "id": "edit",
            "children":
            [
                { "command": "undo","caption": "撤销(U)", "mnemonic": "U" },
                { "command": "redo_or_repeat","caption": "重做(R)", "mnemonic": "R" },
                {
                    "caption": "撤销选择",
                    "children":
                    [
                        { "command": "soft_undo","caption": "软撤销" },
                        { "command": "soft_redo","caption": "软重做" }
                    ]
                },
                { "caption": "-", "id": "clipboard" },
                { "command": "copy", "caption": "复制(C)", "mnemonic": "C" },
                { "command": "cut", "caption": "剪切(N)", "mnemonic": "n" },
                { "command": "paste", "caption": "粘贴(P)", "mnemonic": "P" },
                { "command": "paste_and_indent", "caption": "粘贴并缩进(I)", "mnemonic": "I" },
                { "caption": "-" },
                {
                    "caption": "行(L)", "mnemonic": "L",
                    "id": "line",
                    "children":
                    [
                        { "command": "indent", "caption": "缩进"},
                        { "command": "unindent", "caption": "不缩进" },
                        { "command": "reindent", "args": {"single_line": true},"caption": "重新缩进"  },
                        { "command": "swap_line_up", "caption": "向上切换行" },
                        { "command": "swap_line_down", "caption": "向下切换行" },
                        { "command": "duplicate_line", "caption": "重复行" },
                        { "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"}, "caption": "删除行" },
                        { "command": "join_lines", "caption": "合并行"}
                    ]
                },
                {
                    "caption": "注释(M)", "mnemonic": "m",
                    "id": "comment",
                    "children":
                    [
                        { "command": "toggle_comment", "args": {"block": false}, "caption": "开启/关闭注释" },
                        { "command": "toggle_comment", "args": {"block": true}, "caption": "开启/关闭区段注释" }
                    ]
                },
                {
                    "caption": "文本(T)", "mnemonic": "T",
                    "id": "text",
                    "children":
                    [
                        { "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line Before.sublime-macro"}, "caption": "插入行之前" },
                        { "command": "run_macro_file", "args": {"file": "Packages/Default/Add Line.sublime-macro"}, "caption": "插入行之后" },
                        { "caption": "-" },
                        { "command": "delete_word", "args": { "forward": true }, "caption": "向前删除单词" },
                        { "command": "delete_word", "args": { "forward": false }, "caption": "向后删除单词" },
                        { "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"}, "caption": "删除行" },
                        { "command": "run_macro_file", "args": {"file": "Packages/Default/Delete to Hard EOL.sublime-macro"}, "caption": "删除到末尾" },
                        { "command": "run_macro_file", "args": {"file": "Packages/Default/Delete to Hard BOL.sublime-macro"}, "caption": "删除到开始" },
                        { "caption": "-" },
                        { "command": "transpose", "caption": "换位" }
                    ]
                },
                {
                    "caption": "标签",
                    "id": "tag",
                    "children":
                    [
                        { "command": "close_tag", "caption": "关闭标签"  },
                        { "command": "expand_selection", "args": {"to": "tag"}, "caption": "展开选择到标签" },
                        { "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" }, "caption": "用标签自动换行选择" }
                    ]
                },
                {
                    "caption": "标记",
                    "id": "mark",
                    "children":
                    [
                        { "command": "set_mark", "caption": "设置标记" },
                        { "command": "select_to_mark", "caption": "选择到标记" },
                        { "command": "delete_to_mark", "caption": "删除到标记" },
                        { "command": "swap_with_mark", "caption": "互换标记" },
                        { "command": "clear_bookmarks", "args": {"name": "mark"}, "caption": "清除标记" },
                        { "caption": "-" },
                        { "command": "yank", "caption": "抽出" }
                    ]
                },
                {
                    "caption": "代码折叠",
                    "id": "fold",
                    "children":
                    [
                        { "command": "fold", "caption": "折叠" },
                        { "command": "unfold", "caption": "不折叠" },
                        { "command": "unfold_all", "caption": "展开全部" },
                        { "caption": "-" },
                        { "caption": "折叠全部", "command": "fold_by_level", "args": {"level": 1} },
                        { "caption": "折叠 2 层", "command": "fold_by_level", "args": {"level": 2} },
                        { "caption": "折叠 3 层", "command": "fold_by_level", "args": {"level": 3} },
                        { "caption": "折叠 4 层", "command": "fold_by_level", "args": {"level": 4} },
                        { "caption": "折叠 5 层", "command": "fold_by_level", "args": {"level": 5} },
                        { "caption": "折叠 6 层", "command": "fold_by_level", "args": {"level": 6} },
                        { "caption": "折叠 7 层", "command": "fold_by_level", "args": {"level": 7} },
                        { "caption": "折叠 8 层", "command": "fold_by_level", "args": {"level": 8} },
                        { "caption": "折叠 9 层", "command": "fold_by_level", "args": {"level": 9} },
                        { "caption": "-" },
                        { "command": "fold_tag_attributes", "caption": "折叠标签属性" }
                    ]
                },
                {
                    "caption": "转换大小写(A)", "mnemonic": "a",
                    "id": "convert_case",
                    "children":
                    [
                        { "command": "title_case", "caption": "首字母大写" },
                        { "command": "upper_case", "caption": "大写" },
                        { "command": "lower_case", "caption": "小写" },
                        { "command": "swap_case", "caption": "交换大小写" }
                    ]
                },
                {
                    "caption": "自动换行",
                    "id": "wrap",
                    "children":
                    [
                        { "command": "wrap_lines", "caption": "自动换行段落在标尺" },
                        { "command": "wrap_lines", "args": {"width": 70}, "caption": "自动换行段落在 70 个字符" },
                        { "command": "wrap_lines", "args": {"width": 78}, "caption": "自动换行段落在 78 个字符" },
                        { "command": "wrap_lines", "args": {"width": 80}, "caption": "自动换行段落在 80 个字符" },
                        { "command": "wrap_lines", "args": {"width": 100}, "caption": "自动换行段落在 100 个字符" },
                        { "command": "wrap_lines", "args": {"width": 120}, "caption": "自动换行段落在 120 个字符" }
                    ]
                },
                { "command": "auto_complete", "caption": "显示完成" },
                { "caption": "-", "id": "permute" },
    
                { "command": "sort_lines", "args": {"case_sensitive": false}, "caption": "行排序(S)", "mnemonic": "S" },
                { "command": "sort_lines", "args": {"case_sensitive": true}, "caption": "行排序(区分大小写)" },
                {
                    "caption": "更改行的序列",
                    "children":
                    [
                        { "command": "permute_lines", "args": {"operation": "reverse"}, "caption": "反向" },
                        { "command": "permute_lines", "args": {"operation": "unique"}, "caption": "唯一" },
                        { "command": "permute_lines", "args": {"operation": "shuffle"}, "caption": "无序" }
                    ]
                },
                {
                    "caption": "更改选择内容的序列",
                    "children":
                    [
                        { "command": "sort_selection", "args": {"case_sensitive": false}, "caption": "排序" },
                        { "command": "sort_selection", "args": {"case_sensitive": true}, "caption": "排序(区分大小写)" },
                        { "command": "permute_selection", "args": {"operation": "reverse"}, "caption": "反向" },
                        { "command": "permute_selection", "args": {"operation": "unique"}, "caption": "唯一" },
                        { "command": "permute_selection", "args": {"operation": "shuffle"}, "caption": "无序" }
                    ]
                },
                { "caption": "-", "id": "end" }
            ]
        },
        {
            "caption": "选择(S)",
            "mnemonic": "S",
            "id": "selection",
            "children":
            [
                { "command": "split_selection_into_lines", "caption": "拆分为行" },
                { "command": "select_lines", "args": {"forward": false}, "caption": "添加前一行" },
                { "command": "select_lines", "args": {"forward": true}, "caption": "添加下一行" },
                { "command": "single_selection", "caption": "单独选择" },
                { "caption": "-" },
                { "command": "select_all", "caption": "选择全部" },
                { "command": "expand_selection", "args": {"to": "line"}, "caption": "展开选择到行" },
                { "command": "find_under_expand", "caption": "展开选择到单词" },
                { "command": "expand_selection_to_paragraph", "caption": "展开选择到段落" },
                { "command": "expand_selection", "args": {"to": "scope"}, "caption": "展开选择到范围" },
                { "command": "expand_selection", "args": {"to": "brackets"}, "caption": "展开选择到方括号" },
                { "command": "expand_selection", "args": {"to": "indentation"}, "caption": "展开选择到缩进" },
                { "command": "expand_selection", "args": {"to": "tag"}, "caption": "展开选择到标签" }
            ]
        },
        {
            "caption": "查找(I)",
            "mnemonic": "i",
            "id": "find",
            "children":
            [
                { "command": "show_panel", "args": {"panel": "find"}, "caption": "查找…" },
                { "command": "find_next", "caption": "查找下一个" },
                { "command": "find_prev", "caption": "查找前一个" },
                { "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false}, "caption": "增量查找" },
                { "caption": "-" },
                { "command": "show_panel", "args": {"panel": "replace"}, "caption": "替换…" },
                { "command": "replace_next", "caption": "替换下一个" },
                { "caption": "-" },
                { "command": "find_under", "caption": "快速查找" },
                { "command": "find_all_under", "caption": "快速查找全部" },
                { "command": "find_under_expand", "caption": "快速添加下一个" },
                { "command": "find_under_expand_skip", "caption": "快速跳转到下一个", "platform": "!OSX" },
                { "caption": "-" },
                { "command": "slurp_find_string", "caption": "使用所选内容查找" },
                { "command": "slurp_replace_string", "caption": "使用所选内容替换" },
                { "caption": "-" },
                { "command": "show_panel", "args": {"panel": "find_in_files"}, "caption": "在文件中查找…" },
                {
                    "caption": "查找结果(R)",
                    "mnemonic": "R",
                    "children":
                    [
                        { "command": "show_panel", "args": {"panel": "output.find_results"}, "caption": "显示结果面板" },
                        { "command": "next_result", "caption": "下一结果" },
                        { "command": "prev_result", "caption": "前一结果" }
                    ]
                }
            ]
        },
        {
            "caption": "查看(V)",
            "mnemonic": "V",
            "id": "view",
            "children":
            [
                {
                    "caption": "侧边栏",
                    "id": "side_bar",
                    "children":
                    [
                        { "command": "隐藏侧边栏" },
                        { "caption": "-" },
                        { "command": "显示打开的文件" }
                    ]
                },
                { "command": "toggle_minimap", "caption": "隐藏迷你地图" },
                { "command": "toggle_tabs", "caption": "隐藏选项卡" },
                { "command": "toggle_status_bar", "caption": "隐藏状态栏" },
                { "command": "toggle_menu", "caption": "隐藏菜单" },
                { "command": "show_panel", "args": {"panel": "console", "toggle": true}, "caption": "显示控制台" },
                { "caption": "-", "id": "full_screen" },
                { "command": "toggle_full_screen", "caption": "进入全屏" },
                { "command": "toggle_distraction_free", "caption": "进入无干扰模式" },
                { "caption": "-", "id": "groups" },
                {
                    "caption": "布局(L)",
                    "mnemonic": "L",
                    "id": "layout",
                    "children":
                    [
                        {
                            "caption": "单独",
                            "command": "set_layout",
                            "args":
                            {
                                "cols": [0.0, 1.0],
                                "rows": [0.0, 1.0],
                                "cells": [[0, 0, 1, 1]]
                            }
                        },
                        {
                            "caption": "列: 2",
                            "command": "set_layout",
                            "args":
                            {
                                "cols": [0.0, 0.5, 1.0],
                                "rows": [0.0, 1.0],
                                "cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
                            }
                        },
                        {
                            "caption": "列: 3",
                            "command": "set_layout",
                            "args":
                            {
                                "cols": [0.0, 0.33, 0.66, 1.0],
                                "rows": [0.0, 1.0],
                                "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
                            }
                        },
                        {
                            "caption": "列: 4",
                            "command": "set_layout",
                            "args":
                            {
                                "cols": [0.0, 0.25, 0.5, 0.75, 1.0],
                                "rows": [0.0, 1.0],
                                "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]]
                            }
                        },
                        {
                            "caption": "行: 2",
                            "command": "set_layout",
                            "args":
                            {
                                "cols": [0.0, 1.0],
                                "rows": [0.0, 0.5, 1.0],
                                "cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
                            }
                        },
                        {
                            "caption": "行: 3",
                            "command": "set_layout",
                            "args":
                            {
                                "cols": [0.0, 1.0],
                                "rows": [0.0, 0.33, 0.66, 1.0],
                                "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]]
                            }
                        },
                        {
                            "caption": "网格: 4",
                            "command": "set_layout",
                            "args":
                            {
                                "cols": [0.0, 0.5, 1.0],
                                "rows": [0.0, 0.5, 1.0],
                                "cells":
                                [
                                    [0, 0, 1, 1], [1, 0, 2, 1],
                                    [0, 1, 1, 2], [1, 1, 2, 2]
                                ]
                            }
                        }
                    ]
                },
                {
                    "caption": "焦点分组(F)",
                    "mnemonic": "F",
                    "children":
                    [
                        { "command": "focus_group", "args": {"group": 0}, "caption": "Group 1" },
                        { "command": "focus_group", "args": {"group": 1}, "caption": "Group 2" },
                        { "command": "focus_group", "args": {"group": 2}, "caption": "Group 3" },
                        { "command": "focus_group", "args": {"group": 3}, "caption": "Group 4" }
                    ]
                },
                {
                    "caption": "移动文件到分组(M)",
                    "mnemonic": "M",
                    "children":
                    [
                        { "command": "move_to_group", "args": {"group": 0}, "caption": "Group 1" },
                        { "command": "move_to_group", "args": {"group": 1}, "caption": "Group 2" },
                        { "command": "move_to_group", "args": {"group": 2}, "caption": "Group 3" },
                        { "command": "move_to_group", "args": {"group": 3}, "caption": "Group 4" }
                    ]
                },
                { "caption": "-" },
                {
                    "caption": "语法(S)",
                    "mnemonic": "S",
                    "id": "syntax",
                    "children": [ { "command": "$file_types" } ]
                },
                {
                    "caption": "缩进(I)",
                    "mnemonic": "I",
                    "id": "indentation",
                    "children":
                    [
                        { "command": "toggle_setting", "args": {"setting": "translate_tabs_to_spaces"}, "caption": "使用空格缩进", "checkbox": true },
                        { "caption": "-" },
                        { "command": "set_setting", "args": {"setting": "tab_size", "value": 1}, "caption": "缩进宽度: 1", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "tab_size", "value": 2}, "caption": "缩进宽度: 2", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "tab_size", "value": 3}, "caption": "缩进宽度: 3", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "tab_size", "value": 4}, "caption": "缩进宽度: 4", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "tab_size", "value": 5}, "caption": "缩进宽度: 5", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "tab_size", "value": 6}, "caption": "缩进宽度: 6", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "tab_size", "value": 7}, "caption": "缩进宽度: 7", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "tab_size", "value": 8}, "caption": "缩进宽度: 8", "checkbox": true },
                        { "caption": "-" },
                        { "command": "detect_indentation", "caption": "猜测来自缓冲区的设置" },
                        { "caption": "-" },
                        { "command": "expand_tabs", "caption": "转换缩进为空格", "args": {"set_translate_tabs": true} },
                        { "command": "unexpand_tabs", "caption": "转换缩进为选项卡", "args": {"set_translate_tabs": true} }
                    ]
                },
                {
                    "caption": "行结束符(N)",
                    "mnemonic": "n",
                    "id": "line_endings",
                    "children":
                    [
                        { "command": "set_line_ending", "args": {"type": "windows"}, "caption": "Windows", "checkbox": true },
                        { "command": "set_line_ending", "args": {"type": "unix"}, "caption": "Unix", "checkbox": true },
                        { "command": "set_line_ending", "args": {"type": "cr"}, "caption": "Mac OS 9", "checkbox": true }
                    ]
                },
                { "caption": "-", "id": "settings" },
                { "command": "toggle_setting", "args": {"setting": "word_wrap"}, "caption": "自动换行(W)", "mnemonic": "w", "checkbox": true },
                {
                    "caption": "自动换行列",
                    "children":
                    [
                        { "command": "set_setting", "args": {"setting": "wrap_width", "value": 0}, "caption": "自动", "checkbox": true },
                        { "caption": "-" },
                        { "command": "set_setting", "args": {"setting": "wrap_width", "value": 70}, "caption": "70", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "wrap_width", "value": 78}, "caption": "78", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "wrap_width", "value": 80}, "caption": "80", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "wrap_width", "value": 100}, "caption": "100", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "wrap_width", "value": 120}, "caption": "120", "checkbox": true }
                    ]
                },
                {
                    "caption": "标尺",
                    "children":
                    [
                        { "command": "set_setting", "args": {"setting": "rulers", "value": []}, "caption": "无", "checkbox": true },
                        { "caption": "-" },
                        { "command": "set_setting", "args": {"setting": "rulers", "value": [70]}, "caption": "70", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "rulers", "value": [78]}, "caption": "78", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "rulers", "value": [80]}, "caption": "80", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "rulers", "value": [100]}, "caption": "100", "checkbox": true },
                        { "command": "set_setting", "args": {"setting": "rulers", "value": [120]}, "caption": "120", "checkbox": true }
                    ]
                },
                { "caption": "-" },
                { "command": "toggle_setting", "args": {"setting": "spell_check"}, "caption": "拼写检查", "checkbox": true },
                { "command": "下一拼写错误" },
                { "command": "前一拼写错误" },
                {
                    "caption": "词典",
                    "children": [ { "command": "$dictionaries" } ]
                }
            ]
        },
        {
            "caption": "转到(G)",
            "mnemonic": "G",
            "id": "goto",
            "children":
            [
                { "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "caption": "Goto Anything…", "mnemonic": "A" },
                { "caption": "-" },
                { "command": "show_overlay", "args": {"overlay": "goto", "text": "@"}, "caption": "Goto Symbol…" },
                // { "command": "show_overlay", "args": {"overlay": "goto", "text": "#"}, "caption": "Goto Word…" },
                { "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}, "caption": "Goto Line…" },
                { "caption": "-" },
                {
                    "caption": "切换文件(T)",
                    "mnemonic": "t",
                    "id": "switch_file",
                    "children":
                    [
                        { "command": "next_view", "caption": "Next File" },
                        { "command": "prev_view", "caption": "Previous File" },
                        { "caption": "-" },
                        { "command": "next_view_in_stack", "caption": "在堆栈中的下一文件" },
                        { "command": "prev_view_in_stack", "caption": "在堆栈中的前一文件" },
                        { "caption": "-" },
                        { "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]}, "caption": "切换 Header/Implementation", "mnemonic": "H" },
                        { "caption": "-" },
                        { "command": "select_by_index", "args": { "index": 0 } },
                        { "command": "select_by_index", "args": { "index": 1 } },
                        { "command": "select_by_index", "args": { "index": 2 } },
                        { "command": "select_by_index", "args": { "index": 3 } },
                        { "command": "select_by_index", "args": { "index": 4 } },
                        { "command": "select_by_index", "args": { "index": 5 } },
                        { "command": "select_by_index", "args": { "index": 6 } },
                        { "command": "select_by_index", "args": { "index": 7 } },
                        { "command": "select_by_index", "args": { "index": 8 } },
                        { "command": "select_by_index", "args": { "index": 9 } }
                    ]
                },
                { "caption": "-" },
                {
                    "caption": "滚动(S)",
                    "mnemonic": "S",
                    "id": "scroll",
                    "children":
                    [
                        { "command": "show_at_center", "caption": "滚动到选择" },
                        { "command": "scroll_lines", "args": {"amount": 1.0 }, "caption": "Line Up" },
                        { "command": "scroll_lines", "args": {"amount": -1.0 }, "caption": "Line Down" }
                    ]
                },
                {
                    "caption": "Bookmarks",
                    "mnemonic": "b",
                    "id": "bookmarks",
                    "children":
                    [
                        { "command": "开启/关闭书签" },
                        { "command": "next_bookmark" },
                        { "command": "prev_bookmark" },
                        { "command": "clear_bookmarks" },
                        { "command": "select_all_bookmarks" },
                        { "caption": "-" },
                        { "command": "select_bookmark", "args": {"index": 0} },
                        { "command": "select_bookmark", "args": {"index": 1} },
                        { "command": "select_bookmark", "args": {"index": 2} },
                        { "command": "select_bookmark", "args": {"index": 3} },
                        { "command": "select_bookmark", "args": {"index": 4} },
                        { "command": "select_bookmark", "args": {"index": 5} },
                        { "command": "select_bookmark", "args": {"index": 6} },
                        { "command": "select_bookmark", "args": {"index": 7} },
                        { "command": "select_bookmark", "args": {"index": 8} },
                        { "command": "select_bookmark", "args": {"index": 9} },
                        { "command": "select_bookmark", "args": {"index": 10} },
                        { "command": "select_bookmark", "args": {"index": 11} },
                        { "command": "select_bookmark", "args": {"index": 12} },
                        { "command": "select_bookmark", "args": {"index": 13} },
                        { "command": "select_bookmark", "args": {"index": 14} },
                        { "command": "select_bookmark", "args": {"index": 15} }
                    ]
                },
                { "caption": "-" },
                { "command": "move_to", "args": {"to": "brackets"}, "caption": "跳转到匹配的方括号" }
            ]
        },
        {
            "caption": "工具(T)",
            "mnemonic": "T",
            "id": "tools",
            "children":
            [
                { "command": "show_overlay", "args": {"overlay": "command_palette"}, "caption": "命令面板…" },
                { "command": "show_overlay", "args": {"overlay": "command_palette", "text": "Snippet: "}, "caption": "代码段…" },
                { "caption": "-", "id": "build" },
                {
                    "caption": "编译系统(U)",
                    "mnemonic": "u",
                    "children":
                    [
                        { "command": "set_build_system", "args": { "file": "" }, "caption": "自动", "checkbox": true },
                        { "caption": "-" },
                        { "command": "set_build_system", "args": {"index": 0}, "checkbox": true },
                        { "command": "set_build_system", "args": {"index": 1}, "checkbox": true },
                        { "command": "set_build_system", "args": {"index": 2}, "checkbox": true },
                        { "command": "set_build_system", "args": {"index": 3}, "checkbox": true },
                        { "command": "set_build_system", "args": {"index": 4}, "checkbox": true },
                        { "command": "set_build_system", "args": {"index": 5}, "checkbox": true },
                        { "command": "set_build_system", "args": {"index": 6}, "checkbox": true },
                        { "command": "set_build_system", "args": {"index": 7}, "checkbox": true },
                        { "command": "$build_systems" },
                        { "caption": "-" },
                        { "command": "new_build_system", "caption": "新编译系统…" }
                    ]
                },
                { "command": "build", "caption": "编译(B)", "mnemonic": "B" },
                { "command": "build", "args": {"variant": "Run"}, "mnemonic": "R" },
                { "command": "exec", "args": {"kill": true}, "caption": "Cancel Build", "mnemonic": "C" },
                {
                    "caption": "Build Results",
                    "mnemonic": "R",
                    "children":
                    [
                        { "command": "show_panel", "args": {"panel": "output.exec"}, "caption": "显示编译结果(S)", "mnemonic": "S" },
                        { "command": "next_result", "mnemonic": "N" },
                        { "command": "prev_result", "caption": "Previous Result", "mnemonic": "P" }
                    ]
                },
                { "command": "toggle_save_all_on_build", "caption": "保存所有有关编译(A)", "mnemonic": "A", "checkbox": true },
                { "caption": "-", "id": "macros" },
                { "command": "toggle_record_macro", "caption": "录制宏(M)", "mnemonic": "M" },
                { "command": "run_macro", "caption": "Playback Macro", "mnemonic": "P" },
                { "command": "save_macro", "caption": "Save Macro…", "mnemonic": "v" },
                {
                    "caption": "宏",
                    "children": [ { "command": "$macros" } ]
                },
                { "caption": "-" },
                { "command": "new_plugin", "caption": "新插件…" },
                { "command": "new_snippet", "caption": "新代码段…" },
                { "caption": "-", "id": "end" }
            ]
        },
        {
            "caption": "项目(P)",
            "mnemonic": "P",
            "id": "project",
            "children":
            [
                { "command": "prompt_open_project", "caption": "打开项目(O)…", "mnemonic": "O" },
                {
                    "caption": "最近的项目(R)",
                    "mnemonic": "R",
                    "children":
                    [
                        { "command": "open_recent_project", "args": {"index": 0 } },
                        { "command": "open_recent_project", "args": {"index": 1 } },
                        { "command": "open_recent_project", "args": {"index": 2 } },
                        { "command": "open_recent_project", "args": {"index": 3 } },
                        { "command": "open_recent_project", "args": {"index": 4 } },
                        { "command": "open_recent_project", "args": {"index": 5 } },
                        { "command": "open_recent_project", "args": {"index": 6 } },
                        { "command": "open_recent_project", "args": {"index": 7 } },
                        { "caption": "-" },
                        { "command": "clear_recent_projects", "caption": "Clear Items" }
                    ]
                },
                { "caption": "-" },
                { "command": "prompt_select_project", "caption": "Switch Project in Window…", "mnemonic": "S" },
                { "command": "save_project_as", "caption": "Save Project As…", "mnemonic": "A" },
                { "command": "close_project", "caption": "关闭项目(C)", "mnemonic": "C" },
                { "command": "open_file", "args": {"file": "${project}"}, "caption": "Edit Project" },
                { "caption": "-" },
                { "command": "prompt_add_folder", "caption": "添加文件夹到项目(D)…", "mnemonic": "d" },
                { "command": "close_folder_list", "caption": "从项目删除所有文件夹(M)", "mnemonic": "m" },
                { "command": "refresh_folder_list", "caption": "刷新文件夹(E)", "mnemonic": "e" },
                { "caption": "-" },
                { "caption": "-", "id": "end" }
            ]
        },
        {
            "caption": "偏好(N)",
            "mnemonic": "n",
            "id": "preferences",
            "children":
            [
                { "command": "open_dir", "args": {"dir": "$packages"}, "caption": "Browse Packages…", "mnemonic": "B" },
                { "caption": "-" },
                { "command": "open_file", "args": {"file": "${packages}/Default/Preferences.sublime-settings"}, "caption": "Settings – Default" },
                { "command": "open_file", "args": {"file": "${packages}/User/Preferences.sublime-settings"}, "caption": "Settings – User" },
                {
                    "caption": "Settings – More",
                    "children":
                    [
                        { "command": "open_file_settings", "caption": "Syntax Specific – User" },
                        { "command": "open_file", "args": {"file": "${packages}/User/Distraction Free.sublime-settings"}, "caption": "Distraction Free – User" }
                    ]
                },
                { "caption": "-" },
                {
                    "command": "open_file", "args":
                    {
                        "file": "${packages}/Default/Default ($platform).sublime-keymap"
                    },
                    "caption": "Key Bindings – Default"
                },
                {
                    "command": "open_file", "args":
                    {
                        "file": "${packages}/User/Default ($platform).sublime-keymap"
                    },
                    "caption": "Key Bindings – User"
                },
                { "caption": "-" },
                {
                    "caption": "Font",
                    "children":
                    [
                        { "command": "increase_font_size", "caption": "Larger" },
                        { "command": "decrease_font_size", "caption": "Smaller" },
                        { "caption": "-" },
                        { "command": "reset_font_size", "caption": "Reset" }
                    ]
                },
                {
                    "caption": "Color Scheme",
                    "children": [ { "command": "$color_schemes" } ]
                }
            ]
        },
        {
            "caption": "Help",
            "mnemonic": "H",
            "id": "help",
            "children":
            [
                { "command": "open_url", "args": {"url": "http://www.sublimetext.com/docs/2/"}, "caption": "Documentation" },
                { "command": "open_url", "args": {"url": "http://twitter.com/sublimehq"}, "caption": "Twitter" },
                { "caption": "-" },
                { "command": "purchase_license"},
                { "command": "show_license_window", "caption": "Enter License" },
                { "command": "remove_license"},
                { "caption": "-" },
                { "command": "show_about_window", "caption": "About Sublime Text 2", "mnemonic": "A" }
            ]
        }
    ]

    提示:

    1.Packages路径,可通过 Sublime Text 菜单中的 Preferences > Browse Packages 找到 *Packages* 目录

    2.可在 Sublime Text 安装目录下,手动创建一个Data目录,然后重启 Sublime Text 会自动在Data目录下生成Packages目录,之后其它步骤同上

  • 相关阅读:
    Java String.format 方法使用介绍
    Android获取SD卡中选中图片的路径(URL)
    第三届蓝桥杯Java高职组决赛第一题
    Source Insight使用小技巧小结
    用android代码显示图片的一部分源码
    Liferay的架构:缓存(第一部分)
    Linux登录ssh携带密码
    about flashback_transaction_query
    数据库系统概念读书笔记——实体-联系模型
    Android Phone和Pad UA区别
  • 原文地址:https://www.cnblogs.com/cuoreqzt/p/2848975.html
Copyright © 2020-2023  润新知