[
    {
        "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": "西方语 (Windows 1252)", "command": "reopen", "args": {"encoding": "Western (Windows 1252)" } },
                    { "caption": "西方语 (ISO 8859-1)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-1)" } },
                    { "caption": "西方语 (ISO 8859-3)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-3)" } },
                    { "caption": "西方语 (ISO 8859-15)", "command": "reopen", "args": {"encoding": "Western (ISO 8859-15)" } },
                    { "caption": "西方语 (Mac Roman)", "command": "reopen", "args": {"encoding": "Western (Mac Roman)" } },
                    { "caption": "DOS (CP 437)", "command": "reopen", "args": {"encoding": "DOS (CP 437)" } },
                    { "caption": "阿拉伯语 (Windows 1256)", "command": "reopen", "args": {"encoding": "Arabic (Windows 1256)" } },
                    { "caption": "阿拉伯语 (ISO 8859-6)", "command": "reopen", "args": {"encoding": "Arabic (ISO 8859-6)" } },
                    { "caption": "波罗海语 (Windows 1257)", "command": "reopen", "args": {"encoding": "Baltic (Windows 1257)" } },
                    { "caption": "波罗海语 (ISO 8859-4)", "command": "reopen", "args": {"encoding": "Baltic (ISO 8859-4)" } },
                    { "caption": "凯尔特语 (ISO 8859-14)", "command": "reopen", "args": {"encoding": "Celtic (ISO 8859-14)" } },
                    { "caption": "中欧语(Windows 1250)", "command": "reopen", "args": {"encoding": "Central European (Windows 1250)" } },
                    { "caption": "中欧语 (ISO 8859-2)", "command": "reopen", "args": {"encoding": "Central European (ISO 8859-2)" } },
                    { "caption": "西里尔语 (Windows 1251)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 1251)" } },
                    { "caption": "西里尔语 (Windows 866)", "command": "reopen", "args": {"encoding": "Cyrillic (Windows 866)" } },
                    { "caption": "西里尔语 (ISO 8859-5)", "command": "reopen", "args": {"encoding": "Cyrillic (ISO 8859-5)" } },
                    { "caption": "西里尔语 (KOI8-R)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-R)" } },
                    { "caption": "西里尔语 (KOI8-U)", "command": "reopen", "args": {"encoding": "Cyrillic (KOI8-U)" } },
                    { "caption": "爱沙尼亚语 (ISO 8859-13)", "command": "reopen", "args": {"encoding": "Estonian (ISO 8859-13)" } },
                    { "caption": "希腊语 (Windows 1253)", "command": "reopen", "args": {"encoding": "Greek (Windows 1253)" } },
                    { "caption": "希腊语 (ISO 8859-7)", "command": "reopen", "args": {"encoding": "Greek (ISO 8859-7)" } },
                    { "caption": "希伯来语 (Windows 1255)", "command": "reopen", "args": {"encoding": "Hebrew (Windows 1255)" } },
                    { "caption": "希伯来语 (ISO 8859-8)", "command": "reopen", "args": {"encoding": "Hebrew (ISO 8859-8)" } },
                    { "caption": "北欧语 (ISO 8859-10)", "command": "reopen", "args": {"encoding": "Nordic (ISO 8859-10)" } },
                    { "caption": "罗马尼亚语 (ISO 8859-16)", "command": "reopen", "args": {"encoding": "Romanian (ISO 8859-16)" } },
                    { "caption": "土耳其语 (Windows 1254)", "command": "reopen", "args": {"encoding": "Turkish (Windows 1254)" } },
                    { "caption": "土耳其语 (ISO 8859-9)", "command": "reopen", "args": {"encoding": "Turkish (ISO 8859-9)" } },
                    { "caption": "越南语 (Windows 1258)", "command": "reopen", "args": {"encoding": "Vietnamese (Windows 1258)" } },
                    { "caption": "-" },
                    { "caption": "十六进制", "command": "reopen", "args": {"encoding": "Hexadecimal" } }
                ]
            },
            { "command": "clone_file", "caption": "新标签中打开当前文件(E)", "mnemonic": "e" },
            { "command": "save", "caption": "保存(S)", "mnemonic": "S" },
            {
                "caption": "保存编码…",
                "children":
                [
                    { "caption": "UTF-8", "command": "save", "args": {"encoding": "utf-8" } },
                    { "caption": "UTF-8 包含BOM", "command": "save", "args": {"encoding": "utf-8 with bom" } },
                    { "caption": "UTF-16 LE", "command": "save", "args": {"encoding": "utf-16 le" } },
                    { "caption": "UTF-16 LE 包含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 包含BOM", "command": "save", "args": {"encoding": "utf-16 be with bom" } },
                    { "caption": "-" },
                    { "caption": "西方语 (Windows 1252)", "command": "save", "args": {"encoding": "Western (Windows 1252)" } },
                    { "caption": "西方语 (ISO 8859-1)", "command": "save", "args": {"encoding": "Western (ISO 8859-1)" } },
                    { "caption": "西方语 (ISO 8859-3)", "command": "save", "args": {"encoding": "Western (ISO 8859-3)" } },
                    { "caption": "西方语 (ISO 8859-15)", "command": "save", "args": {"encoding": "Western (ISO 8859-15)" } },
                    { "caption": "西方语 (Mac Roman)", "command": "save", "args": {"encoding": "Western (Mac Roman)" } },
                    { "caption": "DOS (CP 437)", "command": "save", "args": {"encoding": "DOS (CP 437)" } },
                    { "caption": "阿拉伯语 (Windows 1256)", "command": "save", "args": {"encoding": "Arabic (Windows 1256)" } },
                    { "caption": "阿拉伯语 (ISO 8859-6)", "command": "save", "args": {"encoding": "Arabic (ISO 8859-6)" } },
                    { "caption": "波罗海语 (Windows 1257)", "command": "save", "args": {"encoding": "Baltic (Windows 1257)" } },
                    { "caption": "波罗海语 (ISO 8859-4)", "command": "save", "args": {"encoding": "Baltic (ISO 8859-4)" } },
                    { "caption": "凯尔特语 (ISO 8859-14)", "command": "save", "args": {"encoding": "Celtic (ISO 8859-14)" } },
                    { "caption": "中欧语 (Windows 1250)", "command": "save", "args": {"encoding": "Central European (Windows 1250)" } },
                    { "caption": "中欧语 (ISO 8859-2)", "command": "save", "args": {"encoding": "Central European (ISO 8859-2)" } },
                    { "caption": "西里尔语 (Windows 1251)", "command": "save", "args": {"encoding": "Cyrillic (Windows 1251)" } },
                    { "caption": "西里尔语 (Windows 866)", "command": "save", "args": {"encoding": "Cyrillic (Windows 866)" } },
                    { "caption": "西里尔语 (ISO 8859-5)", "command": "save", "args": {"encoding": "Cyrillic (ISO 8859-5)" } },
                    { "caption": "西里尔语 (KOI8-R)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-R)" } },
                    { "caption": "西里尔语 (KOI8-U)", "command": "save", "args": {"encoding": "Cyrillic (KOI8-U)" } },
                    { "caption": "爱沙尼亚语 (ISO 8859-13)", "command": "save", "args": {"encoding": "Estonian (ISO 8859-13)" } },
                    { "caption": "希腊语 (Windows 1253)", "command": "save", "args": {"encoding": "Greek (Windows 1253)" } },
                    { "caption": "希腊语 (ISO 8859-7)", "command": "save", "args": {"encoding": "Greek (ISO 8859-7)" } },
                    { "caption": "希伯来语 (Windows 1255)", "command": "save", "args": {"encoding": "Hebrew (Windows 1255)" } },
                    { "caption": "希伯来语 (ISO 8859-8)", "command": "save", "args": {"encoding": "Hebrew (ISO 8859-8)" } },
                    { "caption": "北欧语 (ISO 8859-10)", "command": "save", "args": {"encoding": "Nordic (ISO 8859-10)" } },
                    { "caption": "罗马尼亚语 (ISO 8859-16)", "command": "save", "args": {"encoding": "Romanian (ISO 8859-16)" } },
                    { "caption": "土耳其语 (Windows 1254)", "command": "save", "args": {"encoding": "Turkish (Windows 1254)" } },
                    { "caption": "土耳其语 (ISO 8859-9)", "command": "save", "args": {"encoding": "Turkish (ISO 8859-9)" } },
                    { "caption": "越南语 (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": "exit", "caption": "退出(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" },
            { "command": "paste_from_history", "caption": "从历史记录粘贴" },
            { "caption": "-" },
            {
                "caption": "行列(L)", "mnemonic": "L",
                "id": "line",
                "children":
                [
                    { "command": "indent", "caption": "使用缩进" },
                    { "command": "unindent", "caption": "取消缩进" },
                    { "command": "reindent", "args": {"single_line": true}, "caption": "重新缩进" },
                    { "caption": "-" },
                    { "command": "swap_line_up", "caption": "向上移动当前行" },
                    { "command": "swap_line_down", "caption": "向下移动当前行"},
                    { "command": "duplicate_line", "caption": "复制光标所在行" },
                    { "caption": "-" },
                    { "command": "run_macro_file", "args": {"file": "res://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": "res://Packages/Default/Add Line Before.sublime-macro"}, "caption": "插入至行前" },
                    { "command": "run_macro_file", "args": {"file": "res://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": "res://Packages/Default/Delete Line.sublime-macro"}, "caption": "删除此行字符" },
                    { "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"}, "caption": "删除直至结尾" },
                    { "command": "run_macro_file", "args": {"file": "res://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": "permute_selection", "args": {"operation": "reverse"}, "caption": "反向" },
                    { "command": "permute_selection", "args": {"operation": "unique"}, "caption": "唯一" },
                    { "command": "permute_selection", "args": {"operation": "shuffle"}, "caption": "无序" },
                    { "caption": "-"},
                    { "command": "sort_selection", "args": {"case_sensitive": false}, "caption": "排序" },
                    { "command": "sort_selection", "args": {"case_sensitive": true}, "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": "单独选择" },
            { "command": "invert_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", "reverse": false}, "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", "reverse": false}, "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": "toggle_side_bar", "caption": "显示/隐藏侧边栏" },
                    { "caption": "-" },
                    { "command": "toggle_show_open_files", "caption": "显示 打开的文件" }
                ]
            },
            { "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": "单独: 1 个",
                        "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": "分组",
                "children":
                [
                    { "command": "new_pane", "caption": "将文件移至新组" },
                    { "command": "new_pane", "args": {"move": false}, "caption": "新建组" },
                    { "command": "close_pane", "caption": "关闭组" },

                    { "caption": "-" },

                    {
                        "caption": "最大列: 1 列",
                        "command": "set_max_columns",
                        "checkbox": true,
                        "args": { "columns": 1 }
                    },
                    {
                        "caption": "最大列: 2 列 ",
                        "command": "set_max_columns",
                        "checkbox": true,
                        "args": { "columns": 2 }
                    },
                    {
                        "caption": "最大列: 3 列",
                        "command": "set_max_columns",
                        "checkbox": true,
                        "args": { "columns": 3 }
                    },
                    {
                        "caption": "最大列: 4 列",
                        "command": "set_max_columns",
                        "checkbox": true,
                        "args": { "columns": 4 }
                    },
                    {
                        "caption": "最大列: 5 列",
                        "command": "set_max_columns",
                        "checkbox": true,
                        "args": { "columns": 5 }
                    },
                ]
            },
            {
                "caption": "焦点分组(F)",
                "mnemonic": "F",
                "children":
                [

                    { "command": "focus_neighboring_group", "caption": "下一个" },
                    { "command": "focus_neighboring_group", "args": {"forward": false}, "caption": "上一个" },
                    { "caption": "-" },
                    { "command": "focus_group", "args": {"group": 0}, "caption": "分组 1" },
                    { "command": "focus_group", "args": {"group": 1}, "caption": "分组 2" },
                    { "command": "focus_group", "args": {"group": 2}, "caption": "分组 3" },
                    { "command": "focus_group", "args": {"group": 3}, "caption": "分组 4" }
                ]
            },
            {
                "caption": "移动文件到分组(M)",
                "mnemonic": "M",
                "children":
                [
                    { "command": "move_to_neighboring_group", "caption": "下一个" },
                    { "command": "move_to_neighboring_group", "args": {"forward": false}, "caption": "上一个" },
                    { "caption": "-" },
                    { "command": "move_to_group", "args": {"group": 0}, "caption": "分组 1" },
                    { "command": "move_to_group", "args": {"group": 1}, "caption": "分组 2" },
                    { "command": "move_to_group", "args": {"group": 2}, "caption": "分组 3" },
                    { "command": "move_to_group", "args": {"group": 3}, "caption": "分组 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": "next_misspelling", "caption": "下一误拼处" },
            { "command": "prev_misspelling", "caption": "上一误拼处" },
            {
                "caption": "词典",
                "children": [ { "command": "$dictionaries" } ]
            }
        ]
    },
    {
        "caption": "转到(G)",
        "mnemonic": "G",
        "id": "goto",
        "children":
        [
            { "command": "show_overlay", "args": {"overlay": "goto", "show_files": true}, "caption": "转到任何(A)…", "mnemonic": "A" },
            { "caption": "-" },
            { "command": "show_overlay", "args": {"overlay": "goto", "text": "@"}, "caption": "转到符号…" },
            { "command": "goto_symbol_in_project", "caption": "转到项目中的符号…" },
            { "command": "goto_definition", "caption": "转到预定义…" },
            { "command": "show_overlay", "args": {"overlay": "goto", "text": ":"}, "caption": "转到行列…" },
            // { "command": "show_overlay", "args": {"overlay": "goto", "text": "#"}, "caption": "转到单词…" },
            { "caption": "-" },
            { "command": "jump_back", "caption": "向后跳转" },
            { "command": "jump_forward", "caption": "向前跳转" },
            { "caption": "-" },
            {
                "caption": "切换文件(T)",
                "mnemonic": "t",
                "id": "switch_file",
                "children":
                [
                    { "command": "next_view", "caption": "下一个文件" },
                    { "command": "prev_view", "caption": "上一个文件" },
                    { "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": "切换标题/执行(H)", "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": "上移一行" },
                    { "command": "scroll_lines", "args": {"amount": -1.0 }, "caption": "下移一行" }
                ]
            },
            {
                "caption": "书签(B)",
                "mnemonic": "b",
                "id": "bookmarks",
                "children":
                [
                    { "command": "toggle_bookmark", "caption": "开启/关闭书签" },
                    { "command": "next_bookmark", "caption": "下一书签" },
                    { "command": "prev_bookmark", "caption": "上一书签" },
                    { "command": "clear_bookmarks", "caption": "清除书签" },
                    { "command": "select_all_bookmarks", "caption": "选择所有书签" },
                    { "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"}, "caption": "运行(R)","mnemonic": "R" },
            { "command": "exec", "args": {"kill": true}, "caption": "取消编译(C)", "mnemonic": "C" },
            {
                "caption": "编译结果(R)",
                "mnemonic": "R",
                "children":
                [
                    { "command": "show_panel", "args": {"panel": "output.exec"}, "caption": "显示编译结果(S)", "mnemonic": "S" },
                    { "command": "next_result", "caption": "下一个结果(N)", "mnemonic": "N" },
                    { "command": "prev_result", "caption": "上一个结果(P)", "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": "播放宏(P)", "mnemonic": "P" },
            { "command": "save_macro", "caption": "保存宏(V)…", "mnemonic": "v" },
            {
                "caption": "示例宏",
                "children": [ { "command": "$macros" } ]
            },
            { "caption": "-" },
            { "command": "new_plugin", "caption": "新插件…" },
            { "command": "new_snippet", "caption": "新代码段…" },
            { "caption": "-", "id": "end" }
        ]
    },
    {
        "caption": "项目(P)",
        "id": "project",
        "mnemonic": "p",
        "children":
        [
            { "command": "prompt_open_project_or_workspace", "caption": "打开项目(O)…" },
            { "command": "prompt_switch_project_or_workspace", "caption": "切换项目…" },
            { "command": "prompt_select_workspace", "caption": "快速切换项目(S)…", "mnemonic": "S" },
            {
                "caption": "最近的项目(R)",
                "children":
                [
                    { "command": "open_recent_project_or_workspace", "args": {"index": 0 } },
                    { "command": "open_recent_project_or_workspace", "args": {"index": 1 } },
                    { "command": "open_recent_project_or_workspace", "args": {"index": 2 } },
                    { "command": "open_recent_project_or_workspace", "args": {"index": 3 } },
                    { "command": "open_recent_project_or_workspace", "args": {"index": 4 } },
                    { "command": "open_recent_project_or_workspace", "args": {"index": 5 } },
                    { "command": "open_recent_project_or_workspace", "args": {"index": 6 } },
                    { "command": "open_recent_project_or_workspace", "args": {"index": 7 } },
                    { "caption": "-" },
                    { "command": "clear_recent_workspaces", "caption": "清除项目" }
                ]
            },
            { "caption": "-" },
            { "command": "save_project_and_workspace_as", "caption": "项目另存为(A)…", "mnemonic": "A" },
            { "command": "close_workspace", "caption": "关闭项目(C)", "mnemonic": "C" },
            { "command": "open_file", "args": {"file": "${project}"}, "caption": "编辑项目" },
            { "caption": "-" },
            { "command": "new_window_for_project", "caption": "新项目工作区" },
            { "command": "save_workspace_as", "caption": "保存为工作区…", "mnemonic": "A" },
            { "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": "首选项(N)",
        "mnemonic": "n",
        "id": "preferences",
        "children":
        [
            { "command": "open_dir", "args": {"dir": "$packages"}, "caption": "浏览插件(B)", "mnemonic": "B" },
            { "caption": "-" },
            { "command": "open_file", "args": {"file": "${packages}/Default/Preferences.sublime-settings"}, "caption": "设置 – 默认" },
            {
                "command": "open_file", "args":
                {
                    "file": "${packages}/User/Preferences.sublime-settings",
                    "contents": "// Settings in here override those in \"Default/Preferences.sublime-settings\",\n// and are overridden in turn by file type specific settings.\n{\n\t$0\n}\n"
                },
                "caption": "设置 – 用户"
            },
            {
                "caption": "设置 – 更多",
                "children":
                [
                    { "command": "open_file_settings", "caption": "特定的语法 – 用户" },
                    {
                        "command": "open_file", "args":
                        {
                            "file": "${packages}/User/Distraction Free.sublime-settings",
                            "contents": "{\n\t$0\n}\n"
                        },
                        "caption": "无干扰模式 – 用户"
                    }
                ]
            },
            { "caption": "-" },
            {
                "command": "open_file", "args":
                {
                    "file": "${packages}/Default/Default ($platform).sublime-keymap"
                },
                "caption": "按键绑定 – 默认"
            },
            {
                "command": "open_file", "args":
                {
                    "file": "${packages}/User/Default ($platform).sublime-keymap",
                    "contents": "[\n\t$0\n]\n"
                },
                "caption": "按键绑定 – 用户"
            },
            { "caption": "-" },
            {
                "caption": "字体设置",
                "children":
                [
                    { "command": "increase_font_size", "caption": "较大" },
                    { "command": "decrease_font_size", "caption": "较小" },
                    { "caption": "-" },
                    { "command": "reset_font_size", "caption": "重置" }
                ]
            },
            {
                "caption": "主题方案",
                "children": [ { "command": "$color_schemes" } ]
            }
        ]
    },
    {
        "caption": "帮助(H)",
        "mnemonic": "H",
        "id": "help",
        "children":
        [
            { "command": "open_url", "args": {"url": "http://www.sublimetext.com/docs/3/"}, "caption": "官方网站：帮助文档" },
            { "caption": "-" },
            { "command": "show_about_window", "caption": "关于 Sublime Text 3 (A)", "mnemonic": "A" }
        ]
    }
]
