//用解壓器"在Sublime Text 3x86\Packages打開Color Scheme - Default.sublime-package"把Monokai.tmTheme文件解壓到桌面而後用sublime打開新增下面的代碼,而後保存把文件拖回去關閉解壓器便可 //能夠把文件放到這個文件夾下Data\Packages\User\Color Highlighter\做爲本身的配色 // <dict> // <key>name</key> // <string>Tag name other</string> // <key>scope</key> // <string>entity.name.tag.other.html</string> // <key>settings</key> // <dict> // <key>fontStyle</key> // <string></string> // <key>foreground</key> // <string>#03AC1D</string> // </dict> // </dict> //空格轉換爲標籤注意,當發現轉換後還有些空格沒轉換,接着設置標籤爲2而後,再轉化爲標籤,而後在設置標籤爲4便可. //alignment 等號對齊 //autoFileName 快捷輸入文件名 //Bracket Hightlighter 代碼匹配標籤或括號 //DocBlockr 生成優美註釋 //FileDiffs 代碼對比工具 //Git git管理 //gitgutter //less 高亮插件 //markdown Editing markdown 編寫 //omniMarkuppreviewer markdown預覽轉html //nodejs node代碼提示 //package control 插件管理 //trailing spaces 檢測並一建去除代碼中多餘空格並會高亮顯示多餘空格 //Autoprefixer css添加私有前綴 //color highlighter 顏色代碼顯示,還能夠彈出調試工具 //CovertToUTF8 文本轉碼成uft-8 //Emmet 編碼快捷鍵 //csscomb CSS屬性進行排序的格式化插件 //.csslintrc .jshintrc .htmlhintrc 文件花括號倒數第一個句尾不能有逗號不然會出錯 //修改html css js prettify 格式化 須要node.js支持,修改set prettify options 路徑 "windows": "D:/Program Files/nodejs/node.exe",接着修改set prettift preferences添加規則文件名"jshintrc","csslintrc","htmlhintrc"到各自的下,添加空格轉tab製表符分別添加"indent_with_tabs": true, //修改markdown editing 分別添加到三個模板上文件 // { // Layout // "draw_centered": false, // "word_wrap": "auto", // "wrap_width": 0, // "rulers": [], // } //註釋omniMarkuppreviewer markdown默認快捷鍵,用右鍵更加方便 //alignment 設置對齊規則這個設置用在markdown中使用,通常有了格式化工具就不用這個了,複製下面的 //{ // // If the indent level of a multi-line selection should be aligned // // true 則把選擇的多行的 不一樣縮進級別也變成相同的縮進(最大的縮緊級別) // //false 只是對齊,不改變縮進級別 // "align_indent": true,// // // If indentation is done via tabs, set this to true to also align // // mid-line characters via tabs. This may cause alignment issues when // // viewing the file in an editor with different tab width settings. This // // will also cause multi-character operators to be left-aligned to the // // first character in the operator instead of the character from the // // "alignment_chars" setting. // // 若是你的文本是使用Tab鍵縮進排版,設置該變量爲true時,那麼該插件在對齊文本的時候也使用Tab鍵來對齊縮進。可是這樣可能會出現問題,由於Tab鍵在不一樣的編輯器上表明的空格數可能不一樣 // "mid_line_tabs": true, // // The mid-line characters to align in a multi-line selection, changing // // this to an empty array will disable mid-line alignment // // Alignment_chars 對齊字符 能夠設置依據什麼對齊 默認只對齊」=」//下面是針對markdown設置 // "alignment_chars": [" ","=","|"], // // If the following character is matched for alignment, insert a space // // before it in the final alignment // // Alignment_space_chars 與上面同樣 可是他的子集 若是這裏包含上面那個字符 則對齊後 = 號前面會加一個空格 反之 則沒有 // // "alignment_space_chars": ["="], // // The characters to align along with "alignment_chars" // // For instance if the = is to be aligned, there are a number of // // symbols that can be combined with the = to make an operator, and all // // of those must be kept next to the = for the operator to be parsed // // Alignment_prefix_chars 前綴符號 alignment_chars 離得字符能夠擁有的前綴符號 跟隨=號一塊兒對齊 // "alignment_prefix_chars": [ // // "+", "-", "&", "|", "<", ">", "!", "~", "%", "/", "*", "." // ] // } // css補全前綴的配置說明 // last 2 versions 每個主要瀏覽器的最後2個版本 // last 2 Chrome versions 谷歌瀏覽器的最後兩個版本 // > 5% 市場佔有量大於5% // > 5% in US 美國市場佔有量大於5% // ie 6-8 ie瀏覽器6-8 // Firefox > 20 火狐版本>20 // Firefox >= 20 火狐版本>=20 // Firefox < 20 火狐<20 // Firefox <= 20 火狐<=20 // iOS 7 指定IOS 7瀏覽器 // "browsers": ["last 6 versions", "> 1%","> 1% in CN", "ie 8", "ie 7"],例如瀏覽器最後6個版本,市場份額大於3,中國市場份額大於,ie8,ie7瀏覽器 // 通常我用這個 "browsers": ["last 50 versions",/*"Firefox < 20", "opera < 15" , "> 1%", "> 0% in CN"*/], //我的快捷鍵設置 [ //在各個打開相應瀏覽器的快捷鍵需設置瀏覽器路徑,能夠利用本地快捷搜索神器搜索路徑複製路徑便可,注意斜槓,注意在外層中括號只有一個 { "keys": ["f1"], "command": "find_under_expand" },//選中同單詞 { "keys": ["f2"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} },//下插一行 { "keys": ["f3"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"} },//上插一行 { "keys": ["f4"], "command": "cut" },//剪切整行 { "keys": ["f5"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },//搜索 { "keys": ["f6"], "command": "toggle_setting", "args": {"setting": "spell_check"} },//單詞拼寫 { "keys": ["f7"], "command": "swap_line_up" },//當前行上移 { "keys": ["f8"], "command": "swap_line_down" },//當前行上移 { "keys": ["f10"], "command": "copy" },//複製 { "keys": ["f11"], "command": "paste" },//粘貼 { "keys": ["f12"], "command": "duplicate_line" },//複製光標所在整行,插入到下一行。 { "keys": ["alt+i"], "command": "autoprefixer" },//css補全前綴 // { "keys": ["ctrl+shift+c"], "command": "copy_path" }, //chrome { "keys": ["ctrl+1"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "D:\\Program Files\\GoogleChrome_46.0.2490.86_PortableSoft/GoogleChromePortable\\App\\Google Chrome\\chrome.exe", "extensions":".*" } }, //safari { "keys": ["ctrl+2"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "D:\\Program Files (x86)\\Safari\\safari.exe", "extensions":".*" } }, //firefox { "keys": ["ctrl+3"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", "extensions":".*" //匹配任何文件類型 } }, //ie { "keys": ["ctrl+4"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe", "extensions":".*" } }, //opera { "keys": ["ctrl+5"], "command": "side_bar_files_open_with", "args": { "paths": [], "application": "D:\\Program Files\\Opera\\launcher.exe", "extensions":".*" } }, { "keys": ["ctrl+6"], "command": "open_in_browser"},//按f12默認瀏覽器中打開文件 //{ "keys": ["ctrl+shift+d"], "command": "css_comb" },//css按書寫順序排列,沒安裝 //{ "keys": ["ctrl+shift+t"],"command":"delete_trailing_spaces" },//一建清除多餘的空格,沒安裝 { "keys": ["ctrl+alt+q"], "command": "alignment" },//alignment 代碼對齊快捷鍵 { "keys": ["ctrl+shift+w"], "command": "toggle_setting", "args": {"setting": "word_wrap"}},//換行顯示方式快捷鍵 { "keys": ["ctrl+t"], "command": "transpose" },//前面的一個字母日後移動 { "keys": ["ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },//搜索函數名 { "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },//跳轉到指定行 { "keys": ["ctrl+;"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },//搜索變量名屬性名 { "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },//搜索整個項目的文件並預覽 { "keys": ["ctrl+m"], "command": "move_to", "args": {"to": "brackets"} },//跳轉到配對括號內的兩邊 { "keys": ["ctrl+j"], "command": "join_lines" },//合併選中的多行代碼爲一行。默認選擇和下一行合併 { "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" },//選中當前行 {"keys": ["ctrl+k"], "command": "toggle_side_bar"},//展開左側導航 {"keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context"://按enter跳出空格 [ { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]\\>\\'\\\"\\ %>\\}\\;\\,]", "match_all": true }, { "key": "preceding_text", "operator": "not_regex_match", "operand": "^.*\\{$", "match_all": true }, { "key": "auto_complete_visible", "operator": "equal", "operand": false } ] }, { "keys": ["alt+g"], "command": "move_to", "args": {"to": "bol", "extend": false} },//跳轉到行開頭 { "keys": ["alt+h"], "command": "move_to", "args": {"to": "eol", "extend": false} },//跳轉到行末尾 { "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} },//選擇當前行光標位置到開頭的內容 { "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },//選擇當前行光標位置到結尾的內容 { "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof", "extend": false} },//跳到文章開頭 { "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof", "extend": false} },//跳到文章結尾 { "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} },//選擇光標位置到文章開頭的內容 { "keys": ["ctrl+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} },//選擇光標位置到文章結尾的內容 { "keys": ["alt+f"], "command": "move", "args": {"by": "characters", "forward": false} },//左 { "keys": ["alt+j"], "command": "move", "args": {"by": "characters", "forward": true} },//右 { "keys": ["alt+r"], "command": "move", "args": {"by": "lines", "forward": false} },//上 { "keys": ["alt+m"], "command": "move", "args": {"by": "lines", "forward": true} },//下 { "keys": ["alt+z"], "command": "expand_selection", "args": {"to": "tag"} },//選中當前標籤再次按鍵由內到外擴展標籤內容 { "keys": ["alt+["], "command": "fold" },//摺疊 { "keys": ["alt+]"], "command": "unfold" },//展開 { "keys": ["alt+1"], "command": "fold_by_level", "args": {"level": 1} },//摺疊所有 { "keys": ["alt+2"], "command": "fold_by_level", "args": {"level": 2} },//摺疊2級 { "keys": ["alt+3"], "command": "fold_by_level", "args": {"level": 3} },//摺疊3級 { "keys": ["alt+4"], "command": "fold_by_level", "args": {"level": 4} },//摺疊4級 { "keys": ["alt+5"], "command": "fold_by_level", "args": {"level": 5} },//摺疊5級 { "keys": ["alt+6"], "command": "fold_by_level", "args": {"level": 6} },//摺疊6級 { "keys": ["alt+7"], "command": "fold_by_level", "args": {"level": 7} },//摺疊7級 { "keys": ["alt+8"], "command": "fold_by_level", "args": {"level": 8} },//摺疊8級 { "keys": ["alt+9"], "command": "fold_by_level", "args": {"level": 9} },//摺疊9級 { "keys": ["alt+`"], "command": "unfold_all" },//展開所有 { "keys": ["alt+p"], "command": "fold_tag_attributes" },//摺疊標籤屬性 { "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 20.0 } },//上移屏幕20行 { "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -20.0 } },//下移屏幕20行 {//顏色高亮color hightlighter 快捷鍵,須要解壓Installed Packages文件夾到Packages裏才能夠註釋原默認快捷鍵以避免衝突 "keys": ["ctrl+shift+o"], "command": "color_picker", "context": [ { "key": "color_highlighter.color_picker" } ] }, //emmet用戶快捷鍵設置需註釋條原默認快捷鍵,可是部分不需註釋 { "keys": [ "alt+a"//光標在匹配成對標籤的開頭 ], "args": { "action": "matching_pair" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.matching_pair" } ] }, { "keys": [ "alt+up"//滾動數字遞增1 ], "args": { "action": "increment_number_by_1" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.increment_number_by_1" } ] }, { "keys": [ "alt+down"//滾動數字遞減1 ], "args": { "action": "decrement_number_by_1" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.decrement_number_by_1" } ] }, { "keys": [ "shift+alt+up"//滾動數字遞增10 ], "args": { "action": "increment_number_by_10" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.increment_number_by_10" } ] }, { "keys": [ "shift+alt+down"//滾動數字遞減10 ], "args": { "action": "decrement_number_by_10" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.decrement_number_by_10" } ] }, // { // "keys": [ // "alt+left"//滾動數字遞增0.1 // ], // "args": { // "action": "increment_number_by_01" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.increment_number_by_01" // } // ] // }, // { // "keys": [ // "alt+right"//滾動數字遞減0.1 // ], // "args": { // "action": "decrement_number_by_01" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.decrement_number_by_01" // } // ] // }, { "keys": [ "alt+t"//改位置增長父層標籤 ], "command": "wrap_as_you_type", "context": [ { "operand": false, "operator": "equal", "match_all": true, "key": "setting.is_widget" }, { "match_all": true, "key": "emmet_action_enabled.wrap_as_you_type" } ] }, { "keys": [ "alt+y"//刪除父層標籤,變爲父層 ], "args": { "action": "remove_tag" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.remove_tag" } ] }, { "keys": [ "alt+d"//上一個內容 ], "args": { "action": "prev_edit_point" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.prev_edit_point" } ] }, { "keys": [ "alt+k"//下一個內容 ], "args": { "action": "next_edit_point" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.next_edit_point" } ] }, { "keys": [ "alt+s"//上一個屬性 ], "args": { "action": "select_previous_item" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.select_previous_item" } ] }, { "keys": [ "alt+l"//下一個屬性 ], "args": { "action": "select_next_item" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.select_next_item" } ] }, { "keys": [ "alt+v"//添加標籤 ], "command": "expand_as_you_type", "context": [ { "operand": false, "operator": "equal", "match_all": true, "key": "setting.is_widget" }, { "match_all": true, "key": "emmet_action_enabled.expand_as_you_type" } ] }, { "keys": [ "alt+n"//修改標籤 ], "command": "rename_tag", "context": [ { "key": "emmet_action_enabled.rename_tag" } ] }, { "keys": [ "alt+b"//閉合切換 ], "args": { "action": "split_join_tag" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.split_join_tag" } ] }, // { // "keys": [ // "shift+ctrl+r" // ], // "args": { // "action": "reflect_css_value" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.reflect_css_value" // } // ] // }, // { // "keys": [ // "ctrl+'" // ], // "args": { // "action": "encode_decode_data_url" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.encode_decode_data_url" // } // ] // }, // { // "keys": [ // "shift+ctrl+y" // ], // "args": { // "action": "evaluate_math_expression" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.evaluate_math_expression" // } // ] // }, { "keys": [ "alt+;"//向內擴展 ], "args": { "action": "balance_inward" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.balance_inward" } ] }, { "keys": [ "alt+'"//向外擴展 ], "args": { "action": "balance_outward" }, "command": "run_emmet_action", "context": [ { "key": "emmet_action_enabled.balance_outward" } ] }, // { // "keys": [ // "ctrl+shift+forward_slash" // ], // "args": { // "action": "toggle_comment" // }, // "command": "run_emmet_action", // "context": [ // { // "operand": "source.css, source.less, source.scss, text.xml, text.html - source", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "match_all": true, // "key": "emmet_action_enabled.toggle_comment" // } // ] // }, // { // "keys": [ // "ctrl+shift+u" // ], // "command": "update_as_you_type", //更新輸入 // "context": [ // { // "operand": false, // "operator": "equal", // "match_all": true, // "key": "setting.is_widget" // }, // { // "match_all": true, // "key": "emmet_action_enabled.update_as_you_type" // } // ] // }, // { // "keys": [ // "ctrl+u" // ], // "args": { // "action": "update_image_size"//改變圖片大小 // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.update_image_size" // } // ] // }, //插件highlighter顏色快捷鍵設置 { "keys": ["ctrl+shift+c"], "command": "color_picker", "context": [ { "key": "color_highlighter.color_picker" } ] }, // { // "keys": ["ctrl+shift+a"], // "command": "color_convert", // "context": [ // { // "key": "color_highlighter.color_convert" // } // ] // }, // { // "keys": ["ctrl+shift+,"], // "command": "color_convert_prev", // "context": [ // { // "key": "color_highlighter.color_convert_prev" // } // ] // }, // { // "keys": ["ctrl+shift+."], // "command": "color_convert_next", // "context": [ // { // "key": "color_highlighter.color_convert_next" // } // ] // }, // { // "keys": ["ctrl+alt+d"], // "command": "go_to_var_definition", // "context": [ // { // "key": "color_highlighter.go_to_var_definition" // } // ] // } ] //breckethightlight標籤高亮設置 // { // "bracket_styles": { // "default": { // "icon": "dot", // "color": "brackethighlighter.default", // "style": "outline" // }, // "unmatched": { // "icon": "question", // "color": "brackethighlighter.unmatched", // "style": "outline" // }, // "curly": { // "icon": "curly_bracket", // "color": "brackethighlighter.curly", // "style": "outline" // }, // "round": { // "icon": "round_bracket", // "color": "brackethighlighter.round", // "style": "outline" // }, // "square": { // "icon": "square_bracket", // "color": "brackethighlighter.square", // "style": "outline" // }, // "angle": { // "icon": "angle_bracket", // "color": "brackethighlighter.angle", // "style": "outline" // }, // "tag": { // "icon": "tag", // // "endpoints": true, // "color": "brackethighlighter.tag", // "style": "outline" // }, // "c_define": { // "icon": "hash", // "color": "brackethighlighter.c_define", // "style": "outline" // }, // "single_quote": { // "icon": "single_quote", // "color": "brackethighlighter.single_quote", // "style": "outline" // }, // "double_quote": { // "icon": "double_quote", // "color": "brackethighlighter.double_quote", // "style": "outline" // }, // "regex": { // "icon": "regex", // "color": "brackethighlighter.quote", // "style": "outline" // } // } // } //emmet用戶主題設置 // { // // Output profiles for syntaxes // // http://docs.emmet.io/customization/syntax-profiles/ // "syntaxProfiles": { // // Enable XHTML dialect for HTML syntax // "html": "xhtml" // // // // Write chained CSS abbreviations on single line: // // "css": "css_line" // } // } //默認主題設置 // { // "auto_complete": false,//關閉代碼自動補全 // "auto_find_in_selection": true,//開啓選中範圍內搜索 // "bold_folder_labels": true,//是否顯示側邊欄文件夾 // "caret_extra_top" : 1 ,超出光標上方的額外距離 // "caret_extra_bottom" : 1 ,超出光標下方的額外距離 // "caret_extra_width" : 1,超出光標寬度 // "color_scheme": "Packages/User/Color Highlighter/themes/Monokai_hedonglin.tmTheme",//主題文件 // "ensure_newline_at_eof_on_save": true,//保存文件時光標會在文件的最後向下換一行 // "font_face":"Inconsolata",//字體類型 // "default_encoding": "UTF-8", // //"dpi_scale": 1.0//文件名亂碼才須要這句,可是若是設置後文件文字變小 // "draw_centered": false,//文件居中是否顯示 // "draw_white_space": "all",//是否顯示製表符或空格或所有顯示 // "font_size": 12.0,//字體大小 // "highlight_modified_tabs": true,//高亮未保存文件 // "highlight_line": true,//突顯光標所在行 // "ignored_packages":["Vintage"],//刪除你想要忽略的插件,須要重啓 // "indent_guide_options": ["draw_normal"],//顯示控制線 // "line_numbers": true,//是否顯示行號 // "match_tags": true,//突出顯示標籤兩端 // "rulers":[],//列顯示垂直標尺,在中括號裏填入數字,寬度按字符計算 // "save_on_focus_lost": false,//切換到其它文件標籤或點擊其它非本軟件區域,文件自動保存 // "scroll_past_end": true,//設置爲false時,滾動到文本的最下方時,沒有緩衝區 // "show_full_path": true,//在標題欄顯示絕對路徑 // "spell_check": false,//是否打開拼音檢測 // "tab_size": 4,//製表符寬度 // "theme": "Soda Dark 3.sublime-theme",//主題 // "translate_tabs_to_spaces": false,//設爲true時,縮進和遇到Tab鍵時使用空格替代 // "trim_trailing_white_space_on_save": false,//爲true時,保存文件時會刪除每行結束後多餘的空格 // "update_check": false,//是否自動更新 // "word_wrap": "auto",//是否自動換行,若是選auto,須要加雙引號 // "itg_scrollbar_medium": true, // "itg_scrollbar_small": true, // "itg_sidebar_tree_large": true, // "itg_sidebar_tree_medium": true, // "itg_sidebar_tree_small": true, // "itg_sidebar_tree_xlarge": true, // "itg_sidebar_tree_xsmall": true, // "itg_small_tabs": true, // "theme": "predawn.sublime-theme",// // "theme": "itg.flat.dark.sublime-theme",//另外一種主題 // } //emmet默認快捷鍵設置 // // This file is automatically generated with misc/generate-keymap.py script // [ // // { // // "keys": [ // // "shift+ctrl+;"//刪除父層標籤,變爲父層 // // ], // // "args": { // // "action": "remove_tag" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.remove_tag" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+up"//滾動數字遞增1 // // ], // // "args": { // // "action": "increment_number_by_1" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.increment_number_by_1" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+shift+forward_slash" // // ], // // "args": { // // "action": "toggle_comment" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "operand": "source.css, source.less, source.scss, text.xml, text.html - source", // // "operator": "equal", // // "match_all": true, // // "key": "selector" // // }, // // { // // "match_all": true, // // "key": "emmet_action_enabled.toggle_comment" // // } // // ] // // }, // // { // // "keys": [ // // "shift+ctrl+."//下一個屬性 // // ], // // "args": { // // "action": "select_next_item" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.select_next_item" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+alt+enter"//添加標籤 // // ], // // "command": "expand_as_you_type", // // "context": [ // // { // // "operand": false, // // "operator": "equal", // // "match_all": true, // // "key": "setting.is_widget" // // }, // // { // // "match_all": true, // // "key": "emmet_action_enabled.expand_as_you_type" // // } // // ] // // }, // // { // // "keys": [ // // "alt+down"//滾動數字遞減0.1 // // ], // // "args": { // // "action": "decrement_number_by_01" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.decrement_number_by_01" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+'" // // ], // // "args": { // // "action": "encode_decode_data_url" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.encode_decode_data_url" // // } // // ] // // }, // // { // // "keys": [ // // "shift+ctrl+y" // // ], // // "args": { // // "action": "evaluate_math_expression" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.evaluate_math_expression" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+shift+0" // // ], // // "args": { // // "action": "balance_inward" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.balance_inward" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+," // // ], // // "args": { // // "action": "balance_outward" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.balance_outward" // // } // // ] // // }, // // { // // "keys": [ // // "shift+alt+up"//滾動數字遞增10 // // ], // // "args": { // // "action": "increment_number_by_10" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.increment_number_by_10" // // } // // ] // // }, // // { // // "keys": [ // // "shift+ctrl+r" // // ], // // "args": { // // "action": "reflect_css_value" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.reflect_css_value" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+alt+left"//上一個內容 // // ], // // "args": { // // "action": "prev_edit_point" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.prev_edit_point" // // } // // ] // // }, // // { // // "keys": [ // // "shift+ctrl+,"//上一個屬性 // // ], // // "args": { // // "action": "select_previous_item" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.select_previous_item" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+u" // // ], // // "args": { // // "action": "update_image_size"//改變圖片大小 // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.update_image_size" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+alt+right"下一個內容 // // ], // // "args": { // // "action": "next_edit_point" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.next_edit_point" // // } // // ] // // }, // // { // // "keys": [ // // "shift+ctrl+`"//閉合切換 // // ], // // "args": { // // "action": "split_join_tag" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.split_join_tag" // // } // // ] // // }, // // { // // "keys": [ // // "shift+alt+down"//滾動數字遞減10 // // ], // // "args": { // // "action": "decrement_number_by_10" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.decrement_number_by_10" // // } // // ] // // }, // // { // // "keys": [ // // "shift+ctrl+g"//改位置增長父層標籤 // // ], // // "command": "wrap_as_you_type", // // "context": [ // // { // // "operand": false, // // "operator": "equal", // // "match_all": true, // // "key": "setting.is_widget" // // }, // // { // // "match_all": true, // // "key": "emmet_action_enabled.wrap_as_you_type" // // } // // ] // // }, // // { // // "keys": [ // // "shift+ctrl+'"//修改標籤 // // ], // // "command": "rename_tag", // // "context": [ // // { // // "key": "emmet_action_enabled.rename_tag" // // } // // ] // // }, // // { // // "keys": [ // // "alt+up"//滾動數字遞增0.1 // // ], // // "args": { // // "action": "increment_number_by_01" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.increment_number_by_01" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+shift+u" // // ], // // "command": "update_as_you_type", // // "context": [ // // { // // "operand": false, // // "operator": "equal", // // "match_all": true, // // "key": "setting.is_widget" // // }, // // { // // "match_all": true, // // "key": "emmet_action_enabled.update_as_you_type" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+alt+j"//光標在匹配成對標籤的開頭 // // ], // // "args": { // // "action": "matching_pair" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.matching_pair" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+down"//滾動數字遞減1 // // ], // // "args": { // // "action": "decrement_number_by_1" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.decrement_number_by_1" // // } // // ] // // }, // // { // // "keys": [ // // "ctrl+e"//擴展標籤 // // ], // // "args": { // // "action": "expand_abbreviation" // // }, // // "command": "run_emmet_action", // // "context": [ // // { // // "key": "emmet_action_enabled.expand_abbreviation" // // } // // ] // // }, // { // "keys": [ // "tab" // ], // "command": "expand_abbreviation_by_tab", // "context": [ // { // "operand": "source.css, source.sass, source.less, source.scss, source.stylus, source.jade, text.slim, text.xml, text.html - source, text.haml, text.scala.html, source string", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "operand": "storage.type.templatetag.django", // "operator": "not_equal", // "match_all": true, // "key": "selector" // }, // { // "match_all": true, // "key": "selection_empty" // }, // { // "operator": "equal", // "operand": false, // "match_all": true, // "key": "has_next_field" // }, // { // "operator": "equal", // "operand": false, // "match_all": true, // "key": "setting.disable_tab_abbreviations" // }, // { // "operand": false, // "operator": "equal", // "match_all": true, // "key": "auto_complete_visible" // }, // { // "match_all": true, // "key": "is_abbreviation" // } // ] // }, // { // "keys": [ // "tab" // ], // "command": "expand_abbreviation_by_tab", // "context": [ // { // "operand": "source.css, source.sass, source.less, source.scss, source.stylus, source.jade, text.slim, text.xml, text.html - source, text.haml, text.scala.html, source string", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "operand": "storage.type.templatetag.django", // "operator": "not_equal", // "match_all": true, // "key": "selector" // }, // { // "match_all": true, // "key": "selection_empty" // }, // { // "operator": "equal", // "operand": false, // "match_all": true, // "key": "has_next_field" // }, // { // "operator": "equal", // "operand": true, // "match_all": true, // "key": "auto_complete_visible" // }, // { // "operator": "equal", // "operand": false, // "match_all": true, // "key": "setting.disable_tab_abbreviations_on_auto_complete" // }, // { // "match_all": true, // "key": "is_abbreviation" // } // ] // }, // { // "keys": [ // "enter" // ], // "args": { // "contents": "\n\t${0}\n" // }, // "command": "insert_snippet", // "context": [ // { // "operand": "meta.scope.between-tag-pair.html, meta.scope.between-tag-pair.xml", // "match_all": true, // "key": "selector" // }, // { // "operand": false, // "match_all": true, // "key": "auto_complete_visible" // }, // { // "match_all": true, // "key": "clear_fields_on_enter_key" // }, // { // "operand": false, // "match_all": true, // "key": "setting.disable_formatted_linebreak" // } // ] // }, // { // "keys": [ // "#" // ], // "args": { // "attribute": "id" // }, // "command": "emmet_insert_attribute", // "context": [ // { // "operand": "text.html meta.tag -string -punctuation.definition.tag.begin.html -meta.scope.between-tag-pair.html -source -meta.tag.template.value.twig", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "operator": "equal", // "operand": true, // "key": "setting.auto_id_class" // } // ] // }, // { // "keys": [ // "." // ], // "args": { // "attribute": "class" // }, // "command": "emmet_insert_attribute", // "context": [ // { // "operand": "text.html meta.tag -string -punctuation.definition.tag.begin.html -meta.scope.between-tag-pair.html -source -meta.tag.template.value.twig", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "operator": "equal", // "operand": true, // "key": "setting.auto_id_class" // } // ] // } // ] //默認快捷鍵 // [ // { "keys": ["ctrl+shift+n"], "command": "new_window" }, // { "keys": ["ctrl+shift+w"], "command": "close_window" }, // { "keys": ["ctrl+o"], "command": "prompt_open_file" }, // { "keys": ["ctrl+shift+t"], "command": "reopen_last_file" }, // { "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "h", "ipp", "inl", "m", "mm"]} }, // { "keys": ["ctrl+n"], "command": "new_file" }, // { "keys": ["ctrl+s"], "command": "save" }, // { "keys": ["ctrl+shift+s"], "command": "prompt_save_as" }, // { "keys": ["ctrl+f4"], "command": "close_file" }, // { "keys": ["ctrl+w"], "command": "close" }, // { "keys": ["ctrl+k", "ctrl+b"], "command": "toggle_side_bar" }, // { "keys": ["f11"], "command": "toggle_full_screen" }, // { "keys": ["shift+f11"], "command": "toggle_distraction_free" }, // { "keys": ["backspace"], "command": "left_delete" }, // { "keys": ["shift+backspace"], "command": "left_delete" }, // { "keys": ["ctrl+shift+backspace"], "command": "left_delete" }, // { "keys": ["delete"], "command": "right_delete" }, // { "keys": ["enter"], "command": "insert", "args": {"characters": "\n"} }, // { "keys": ["shift+enter"], "command": "insert", "args": {"characters": "\n"} }, // { "keys": ["ctrl+z"], "command": "undo" }, // { "keys": ["ctrl+shift+z"], "command": "redo" }, // { "keys": ["ctrl+y"], "command": "redo_or_repeat" }, // { "keys": ["ctrl+u"], "command": "soft_undo" }, // { "keys": ["ctrl+shift+u"], "command": "soft_redo" }, // { "keys": ["shift+delete"], "command": "cut" }, // { "keys": ["ctrl+insert"], "command": "copy" }, // { "keys": ["shift+insert"], "command": "paste" }, // { "keys": ["ctrl+x"], "command": "cut" }, // { "keys": ["ctrl+c"], "command": "copy" }, // { "keys": ["ctrl+v"], "command": "paste" }, // { "keys": ["ctrl+shift+v"], "command": "paste_and_indent" }, // { "keys": ["ctrl+k", "ctrl+v"], "command": "paste_from_history" }, // { "keys": ["left"], "command": "move", "args": {"by": "characters", "forward": false} }, // { "keys": ["right"], "command": "move", "args": {"by": "characters", "forward": true} }, // { "keys": ["up"], "command": "move", "args": {"by": "lines", "forward": false} }, // { "keys": ["down"], "command": "move", "args": {"by": "lines", "forward": true} }, // { "keys": ["shift+left"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} }, // { "keys": ["shift+right"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} }, // { "keys": ["shift+up"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} }, // { "keys": ["shift+down"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} }, // { "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false} }, // { "keys": ["ctrl+right"], "command": "move", "args": {"by": "word_ends", "forward": true} }, // { "keys": ["ctrl+shift+left"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} }, // { "keys": ["ctrl+shift+right"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} }, // { "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} }, // { "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} }, // { "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} }, // { "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} }, // { "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} }, // { "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} }, // { "keys": ["pageup"], "command": "move", "args": {"by": "pages", "forward": false} }, // { "keys": ["pagedown"], "command": "move", "args": {"by": "pages", "forward": true} }, // { "keys": ["shift+pageup"], "command": "move", "args": {"by": "pages", "forward": false, "extend": true} }, // { "keys": ["shift+pagedown"], "command": "move", "args": {"by": "pages", "forward": true, "extend": true} }, // { "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} }, // { "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} }, // { "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} }, // { "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} }, // { "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof", "extend": false} }, // { "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof", "extend": false} }, // { "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} }, // { "keys": ["ctrl+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} }, // { "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 1.0 } }, // { "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -1.0 } }, // { "keys": ["ctrl+pagedown"], "command": "next_view" }, // { "keys": ["ctrl+pageup"], "command": "prev_view" }, // { "keys": ["ctrl+tab"], "command": "next_view_in_stack" }, // { "keys": ["ctrl+shift+tab"], "command": "prev_view_in_stack" }, // { "keys": ["ctrl+a"], "command": "select_all" }, // { "keys": ["ctrl+shift+l"], "command": "split_selection_into_lines" }, // { "keys": ["escape"], "command": "single_selection", "context": // [ // { "key": "num_selections", "operator": "not_equal", "operand": 1 } // ] // }, // { "keys": ["escape"], "command": "clear_fields", "context": // [ // { "key": "has_next_field", "operator": "equal", "operand": true } // ] // }, // { "keys": ["escape"], "command": "clear_fields", "context": // [ // { "key": "has_prev_field", "operator": "equal", "operand": true } // ] // }, // { "keys": ["escape"], "command": "hide_panel", "args": {"cancel": true}, // "context": // [ // { "key": "panel_visible", "operator": "equal", "operand": true } // ] // }, // { "keys": ["escape"], "command": "hide_overlay", "context": // [ // { "key": "overlay_visible", "operator": "equal", "operand": true } // ] // }, // { "keys": ["escape"], "command": "hide_auto_complete", "context": // [ // { "key": "auto_complete_visible", "operator": "equal", "operand": true } // ] // }, // { "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} }, // { "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false}, // "context": // [ // { "key": "setting.tab_completion", "operator": "equal", "operand": true } // ] // }, // { "keys": ["tab"], "command": "replace_completion_with_next_completion", "context": // [ // { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, // { "key": "setting.tab_completion", "operator": "equal", "operand": true } // ] // }, // { "keys": ["tab"], "command": "reindent", "context": // [ // { "key": "setting.auto_indent", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true }, // { "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true } // ] // }, // { "keys": ["tab"], "command": "indent", "context": // [ // { "key": "text", "operator": "regex_contains", "operand": "\n" } // ] // }, // { "keys": ["tab"], "command": "next_field", "context": // [ // { "key": "has_next_field", "operator": "equal", "operand": true } // ] // }, // { "keys": ["tab"], "command": "commit_completion", "context": // [ // { "key": "auto_complete_visible" }, // { "key": "setting.auto_complete_commit_on_tab" } // ] // }, // { "keys": ["shift+tab"], "command": "insert", "args": {"characters": "\t"} }, // { "keys": ["shift+tab"], "command": "unindent", "context": // [ // { "key": "setting.shift_tab_unindent", "operator": "equal", "operand": true } // ] // }, // { "keys": ["shift+tab"], "command": "unindent", "context": // [ // { "key": "preceding_text", "operator": "regex_match", "operand": "^[\t ]*" } // ] // }, // { "keys": ["shift+tab"], "command": "unindent", "context": // [ // { "key": "text", "operator": "regex_contains", "operand": "\n" } // ] // }, // { "keys": ["shift+tab"], "command": "prev_field", "context": // [ // { "key": "has_prev_field", "operator": "equal", "operand": true } // ] // }, // { "keys": ["ctrl+]"], "command": "indent" }, // { "keys": ["ctrl+["], "command": "unindent" }, // { "keys": ["insert"], "command": "toggle_overwrite" }, // { "keys": ["ctrl+l"], "command": "expand_selection", "args": {"to": "line"} }, // { "keys": ["ctrl+d"], "command": "find_under_expand" }, // { "keys": ["ctrl+k", "ctrl+d"], "command": "find_under_expand_skip" }, // { "keys": ["ctrl+shift+space"], "command": "expand_selection", "args": {"to": "scope"} }, // { "keys": ["ctrl+shift+m"], "command": "expand_selection", "args": {"to": "brackets"} }, // { "keys": ["ctrl+m"], "command": "move_to", "args": {"to": "brackets"} }, // { "keys": ["ctrl+shift+j"], "command": "expand_selection", "args": {"to": "indentation"} }, // { "keys": ["ctrl+shift+a"], "command": "expand_selection", "args": {"to": "tag"} }, // { "keys": ["alt+."], "command": "close_tag" }, // { "keys": ["ctrl+q"], "command": "toggle_record_macro" }, // { "keys": ["ctrl+shift+q"], "command": "run_macro" }, // { "keys": ["ctrl+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} }, // { "keys": ["ctrl+shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"} }, // { "keys": ["enter"], "command": "commit_completion", "context": // [ // { "key": "auto_complete_visible" }, // { "key": "setting.auto_complete_commit_on_tab", "operand": false } // ] // }, // { "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} }, // { "keys": ["ctrl+shift+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} }, // { "keys": ["ctrl+alt+p"], "command": "prompt_select_workspace" }, // { "keys": ["ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} }, // { "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} }, // { "keys": ["ctrl+;"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} }, // { "keys": ["f12"], "command": "goto_definition" }, // { "keys": ["ctrl+shift+r"], "command": "goto_symbol_in_project" }, // { "keys": ["alt+keypad_minus"], "command": "jump_back" }, // { "keys": ["alt+shift+keypad_minus"], "command": "jump_forward" }, // { "keys": ["alt+-"], "command": "jump_back" }, // { "keys": ["alt+shift+-"], "command": "jump_forward" }, // { "keys": ["ctrl+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false} }, // { "keys": ["ctrl+shift+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse": true} }, // { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} }, // { "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} }, // { "keys": ["ctrl+shift+h"], "command": "replace_next" }, // { "keys": ["f3"], "command": "find_next" }, // { "keys": ["shift+f3"], "command": "find_prev" }, // { "keys": ["ctrl+f3"], "command": "find_under" }, // { "keys": ["ctrl+shift+f3"], "command": "find_under_prev" }, // { "keys": ["alt+f3"], "command": "find_all_under" }, // { "keys": ["ctrl+e"], "command": "slurp_find_string" }, // { "keys": ["ctrl+shift+e"], "command": "slurp_replace_string" }, // { "keys": ["ctrl+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files"} }, // { "keys": ["f4"], "command": "next_result" }, // { "keys": ["shift+f4"], "command": "prev_result" }, // { "keys": ["f6"], "command": "toggle_setting", "args": {"setting": "spell_check"} }, // { "keys": ["ctrl+f6"], "command": "next_misspelling" }, // { "keys": ["ctrl+shift+f6"], "command": "prev_misspelling" }, // { "keys": ["ctrl+shift+up"], "command": "swap_line_up" }, // { "keys": ["ctrl+shift+down"], "command": "swap_line_down" }, // { "keys": ["ctrl+backspace"], "command": "delete_word", "args": { "forward": false } }, // { "keys": ["ctrl+shift+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} }, // { "keys": ["ctrl+delete"], "command": "delete_word", "args": { "forward": true } }, // { "keys": ["ctrl+shift+delete"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} }, // { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } }, // { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } }, // { "keys": ["ctrl+j"], "command": "join_lines" }, // { "keys": ["ctrl+shift+d"], "command": "duplicate_line" }, // { "keys": ["ctrl+`"], "command": "show_panel", "args": {"panel": "console", "toggle": true} }, // { "keys": ["ctrl+space"], "command": "auto_complete" }, // { "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context": // [ // { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" }, // { "key": "auto_complete_visible", "operator": "equal", "operand": false }, // { "key": "setting.tab_completion", "operator": "equal", "operand": true } // ] // }, // { "keys": ["ctrl+alt+shift+p"], "command": "show_scope_name" }, // { "keys": ["f7"], "command": "build" }, // { "keys": ["ctrl+b"], "command": "build" }, // { "keys": ["ctrl+shift+b"], "command": "build", "args": {"variant": "Run"} }, // { "keys": ["ctrl+break"], "command": "exec", "args": {"kill": true} }, // { "keys": ["ctrl+t"], "command": "transpose" }, // { "keys": ["f9"], "command": "sort_lines", "args": {"case_sensitive": false} }, // { "keys": ["ctrl+f9"], "command": "sort_lines", "args": {"case_sensitive": true} }, // // Auto-pair quotes // { "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"$0\""}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, // { "key": "preceding_text", "operator": "not_regex_contains", "operand": "[\"a-zA-Z0-9_]$", "match_all": true }, // { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double", "match_all": true } // ] // }, // { "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"${0:$SELECTION}\""}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } // ] // }, // { "keys": ["\""], "command": "move", "args": {"by": "characters", "forward": true}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\"", "match_all": true }, // { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true }, // { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double", "match_all": true }, // ] // }, // { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "preceding_text", "operator": "regex_contains", "operand": "\"$", "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\"", "match_all": true }, // { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true }, // { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double", "match_all": true }, // ] // }, // // Auto-pair single quotes // { "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'$0'"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true }, // { "key": "preceding_text", "operator": "not_regex_contains", "operand": "['a-zA-Z0-9_]$", "match_all": true }, // { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true } // ] // }, // { "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'${0:$SELECTION}'"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } // ] // }, // { "keys": ["'"], "command": "move", "args": {"by": "characters", "forward": true}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true }, // { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true }, // { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true }, // ] // }, // { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "preceding_text", "operator": "regex_contains", "operand": "'$", "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true }, // { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true }, // { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single", "match_all": true }, // ] // }, // // Auto-pair brackets // { "keys": ["("], "command": "insert_snippet", "args": {"contents": "($0)"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true } // ] // }, // { "keys": ["("], "command": "insert_snippet", "args": {"contents": "(${0:$SELECTION})"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } // ] // }, // { "keys": [")"], "command": "move", "args": {"by": "characters", "forward": true}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true } // ] // }, // { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true } // ] // }, // // Auto-pair square brackets // { "keys": ["["], "command": "insert_snippet", "args": {"contents": "[$0]"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true } // ] // }, // { "keys": ["["], "command": "insert_snippet", "args": {"contents": "[${0:$SELECTION}]"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } // ] // }, // { "keys": ["]"], "command": "move", "args": {"by": "characters", "forward": true}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true } // ] // }, // { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "preceding_text", "operator": "regex_contains", "operand": "\\[$", "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true } // ] // }, // // Auto-pair curly brackets // { "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{$0}"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|$)", "match_all": true } // ] // }, // { "keys": ["{"], "command": "wrap_block", "args": {"begin": "{", "end": "}"}, "context": // [ // { "key": "indented_block", "match_all": true }, // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true }, // ] // }, // { "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{${0:$SELECTION}}"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } // ] // }, // { "keys": ["}"], "command": "move", "args": {"by": "characters", "forward": true}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true } // ] // }, // { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context": // [ // { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true } // ] // }, // { "keys": ["enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context": // [ // { "key": "setting.auto_indent", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true } // ] // }, // { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context": // [ // { "key": "setting.auto_indent", "operator": "equal", "operand": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // { "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true }, // { "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true } // ] // }, // { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": // [ // { "key": "setting.auto_indent", "operator": "equal", "operand": true }, // { "key": "selector", "operator": "equal", "operand": "meta.scope.between-tag-pair", "match_all": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // ] // }, // { "keys": ["shift+enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context": // [ // { "key": "setting.auto_indent", "operator": "equal", "operand": true }, // { "key": "selector", "operator": "equal", "operand": "meta.scope.between-tag-pair", "match_all": true }, // { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, // ] // }, // { // "keys": ["alt+shift+1"], // "command": "set_layout", // "args": // { // "cols": [0.0, 1.0], // "rows": [0.0, 1.0], // "cells": [[0, 0, 1, 1]] // } // }, // { // "keys": ["alt+shift+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]] // } // }, // { // "keys": ["alt+shift+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]] // } // }, // { // "keys": ["alt+shift+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]] // } // }, // { // "keys": ["alt+shift+8"], // "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]] // } // }, // { // "keys": ["alt+shift+9"], // "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]] // } // }, // { // "keys": ["alt+shift+5"], // "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] // ] // } // }, // { "keys": ["ctrl+1"], "command": "focus_group", "args": { "group": 0 } }, // { "keys": ["ctrl+2"], "command": "focus_group", "args": { "group": 1 } }, // { "keys": ["ctrl+3"], "command": "focus_group", "args": { "group": 2 } }, // { "keys": ["ctrl+4"], "command": "focus_group", "args": { "group": 3 } }, // { "keys": ["ctrl+5"], "command": "focus_group", "args": { "group": 4 } }, // { "keys": ["ctrl+6"], "command": "focus_group", "args": { "group": 5 } }, // { "keys": ["ctrl+7"], "command": "focus_group", "args": { "group": 6 } }, // { "keys": ["ctrl+8"], "command": "focus_group", "args": { "group": 7 } }, // { "keys": ["ctrl+9"], "command": "focus_group", "args": { "group": 8 } }, // { "keys": ["ctrl+shift+1"], "command": "move_to_group", "args": { "group": 0 } }, // { "keys": ["ctrl+shift+2"], "command": "move_to_group", "args": { "group": 1 } }, // { "keys": ["ctrl+shift+3"], "command": "move_to_group", "args": { "group": 2 } }, // { "keys": ["ctrl+shift+4"], "command": "move_to_group", "args": { "group": 3 } }, // { "keys": ["ctrl+shift+5"], "command": "move_to_group", "args": { "group": 4 } }, // { "keys": ["ctrl+shift+6"], "command": "move_to_group", "args": { "group": 5 } }, // { "keys": ["ctrl+shift+7"], "command": "move_to_group", "args": { "group": 6 } }, // { "keys": ["ctrl+shift+8"], "command": "move_to_group", "args": { "group": 7 } }, // { "keys": ["ctrl+shift+9"], "command": "move_to_group", "args": { "group": 8 } }, // { "keys": ["ctrl+0"], "command": "focus_side_bar" }, // { "keys": ["ctrl+k", "ctrl+up"], "command": "new_pane" }, // { "keys": ["ctrl+k", "ctrl+shift+up"], "command": "new_pane", "args": {"move": false} }, // { "keys": ["ctrl+k", "ctrl+down"], "command": "close_pane" }, // { "keys": ["ctrl+k", "ctrl+left"], "command": "focus_neighboring_group", "args": {"forward": false} }, // { "keys": ["ctrl+k", "ctrl+right"], "command": "focus_neighboring_group" }, // { "keys": ["ctrl+k", "ctrl+shift+left"], "command": "move_to_neighboring_group", "args": {"forward": false} }, // { "keys": ["ctrl+k", "ctrl+shift+right"], "command": "move_to_neighboring_group" }, // { "keys": ["alt+1"], "command": "select_by_index", "args": { "index": 0 } }, // { "keys": ["alt+2"], "command": "select_by_index", "args": { "index": 1 } }, // { "keys": ["alt+3"], "command": "select_by_index", "args": { "index": 2 } }, // { "keys": ["alt+4"], "command": "select_by_index", "args": { "index": 3 } }, // { "keys": ["alt+5"], "command": "select_by_index", "args": { "index": 4 } }, // { "keys": ["alt+6"], "command": "select_by_index", "args": { "index": 5 } }, // { "keys": ["alt+7"], "command": "select_by_index", "args": { "index": 6 } }, // { "keys": ["alt+8"], "command": "select_by_index", "args": { "index": 7 } }, // { "keys": ["alt+9"], "command": "select_by_index", "args": { "index": 8 } }, // { "keys": ["alt+0"], "command": "select_by_index", "args": { "index": 9 } }, // { "keys": ["f2"], "command": "next_bookmark" }, // { "keys": ["shift+f2"], "command": "prev_bookmark" }, // { "keys": ["ctrl+f2"], "command": "toggle_bookmark" }, // { "keys": ["ctrl+shift+f2"], "command": "clear_bookmarks" }, // { "keys": ["alt+f2"], "command": "select_all_bookmarks" }, // { "keys": ["ctrl+shift+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} }, // { "keys": ["alt+q"], "command": "wrap_lines" }, // { "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" }, // { "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" }, // { "keys": ["ctrl+k", "ctrl+space"], "command": "set_mark" }, // { "keys": ["ctrl+k", "ctrl+a"], "command": "select_to_mark" }, // { "keys": ["ctrl+k", "ctrl+w"], "command": "delete_to_mark" }, // { "keys": ["ctrl+k", "ctrl+x"], "command": "swap_with_mark" }, // { "keys": ["ctrl+k", "ctrl+y"], "command": "yank" }, // { "keys": ["ctrl+k", "ctrl+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} }, // { "keys": ["ctrl+k", "ctrl+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} }, // { "keys": ["ctrl+k", "ctrl+g"], "command": "clear_bookmarks", "args": {"name": "mark"} }, // { "keys": ["ctrl+k", "ctrl+c"], "command": "show_at_center" }, // { "keys": ["ctrl++"], "command": "increase_font_size" }, // { "keys": ["ctrl+="], "command": "increase_font_size" }, // { "keys": ["ctrl+keypad_plus"], "command": "increase_font_size" }, // { "keys": ["ctrl+-"], "command": "decrease_font_size" }, // { "keys": ["ctrl+keypad_minus"], "command": "decrease_font_size" }, // { "keys": ["ctrl+equals"], "command": "increase_font_size" }, // { "keys": ["ctrl+shift+equals"], "command": "decrease_font_size" }, // { "keys": ["ctrl+keypad_plus"], "command": "increase_font_size" }, // { "keys": ["ctrl+shift+keypad_plus"], "command": "decrease_font_size" }, // { "keys": ["alt+shift+w"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } }, // { "keys": ["ctrl+shift+["], "command": "fold" }, // { "keys": ["ctrl+shift+]"], "command": "unfold" }, // { "keys": ["ctrl+k", "ctrl+1"], "command": "fold_by_level", "args": {"level": 1} }, // { "keys": ["ctrl+k", "ctrl+2"], "command": "fold_by_level", "args": {"level": 2} }, // { "keys": ["ctrl+k", "ctrl+3"], "command": "fold_by_level", "args": {"level": 3} }, // { "keys": ["ctrl+k", "ctrl+4"], "command": "fold_by_level", "args": {"level": 4} }, // { "keys": ["ctrl+k", "ctrl+5"], "command": "fold_by_level", "args": {"level": 5} }, // { "keys": ["ctrl+k", "ctrl+6"], "command": "fold_by_level", "args": {"level": 6} }, // { "keys": ["ctrl+k", "ctrl+7"], "command": "fold_by_level", "args": {"level": 7} }, // { "keys": ["ctrl+k", "ctrl+8"], "command": "fold_by_level", "args": {"level": 8} }, // { "keys": ["ctrl+k", "ctrl+9"], "command": "fold_by_level", "args": {"level": 9} }, // { "keys": ["ctrl+k", "ctrl+0"], "command": "unfold_all" }, // { "keys": ["ctrl+k", "ctrl+j"], "command": "unfold_all" }, // { "keys": ["ctrl+k", "ctrl+t"], "command": "fold_tag_attributes" }, // { "keys": ["context_menu"], "command": "context_menu" }, // { "keys": ["alt+c"], "command": "toggle_case_sensitive", "context": // [ // { "key": "setting.is_widget", "operator": "equal", "operand": true } // ] // }, // { "keys": ["alt+r"], "command": "toggle_regex", "context": // [ // { "key": "setting.is_widget", "operator": "equal", "operand": true } // ] // }, // { "keys": ["alt+w"], "command": "toggle_whole_word", "context": // [ // { "key": "setting.is_widget", "operator": "equal", "operand": true } // ] // }, // { "keys": ["alt+a"], "command": "toggle_preserve_case", "context": // [ // { "key": "setting.is_widget", "operator": "equal", "operand": true } // ] // }, // // Find panel key bindings // { "keys": ["enter"], "command": "find_next", "context": // [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}] // }, // { "keys": ["shift+enter"], "command": "find_prev", "context": // [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}] // }, // { "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true}, // "context": [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}] // }, // // Replace panel key bindings // { "keys": ["enter"], "command": "find_next", "context": // [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}] // }, // { "keys": ["shift+enter"], "command": "find_prev", "context": // [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}] // }, // { "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true}, // "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}] // }, // { "keys": ["ctrl+alt+enter"], "command": "replace_all", "args": {"close_panel": true}, // "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}] // }, // // Incremental find panel key bindings // { "keys": ["enter"], "command": "hide_panel", "context": // [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}] // }, // { "keys": ["shift+enter"], "command": "find_prev", "context": // [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}] // }, // { "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true}, // "context": [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}] // }, // // HTML, XML close tag // { "keys": ["/"], "command": "close_tag", "args": { "insert_slash": true }, "context": // [ // { "key": "selector", "operator": "equal", "operand": "(text.html, text.xml) - string - comment", "match_all": true }, // { "key": "preceding_text", "operator": "regex_match", "operand": ".*<$", "match_all": true }, // { "key": "setting.auto_close_tags" } // ] // } // ] //插件highlighter顏色默認設置 // [ // { // "keys": ["ctrl+shift+c"], // "command": "color_picker", // "context": [ // { // "key": "color_highlighter.color_picker" // } // ] // }, // { // "keys": ["ctrl+shift+a"], // "command": "color_convert", // "context": [ // { // "key": "color_highlighter.color_convert" // } // ] // }, // { // "keys": ["ctrl+shift+,"], // "command": "color_convert_prev", // "context": [ // { // "key": "color_highlighter.color_convert_prev" // } // ] // }, // { // "keys": ["ctrl+shift+."], // "command": "color_convert_next", // "context": [ // { // "key": "color_highlighter.color_convert_next" // } // ] // }, // { // "keys": ["ctrl+alt+d"], // "command": "go_to_var_definition", // "context": [ // { // "key": "color_highlighter.go_to_var_definition" // } // ] // } // ] //emment默認快捷鍵 // This file is automatically generated with misc/generate-keymap.py script // [ // { // "keys": [ // "shift+ctrl+;" // ], // "args": { // "action": "remove_tag" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.remove_tag" // } // ] // }, // { // "keys": [ // "ctrl+up" // ], // "args": { // "action": "increment_number_by_1" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.increment_number_by_1" // } // ] // }, // { // "keys": [ // "ctrl+shift+forward_slash" // ], // "args": { // "action": "toggle_comment" // }, // "command": "run_emmet_action", // "context": [ // { // "operand": "source.css, source.less, source.scss, text.xml, text.html - source", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "match_all": true, // "key": "emmet_action_enabled.toggle_comment" // } // ] // }, // { // "keys": [ // "shift+ctrl+." // ], // "args": { // "action": "select_next_item" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.select_next_item" // } // ] // }, // { // "keys": [ // "ctrl+alt+enter" // ], // "command": "expand_as_you_type", // "context": [ // { // "operand": false, // "operator": "equal", // "match_all": true, // "key": "setting.is_widget" // }, // { // "match_all": true, // "key": "emmet_action_enabled.expand_as_you_type" // } // ] // }, // { // "keys": [ // "alt+down" // ], // "args": { // "action": "decrement_number_by_01" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.decrement_number_by_01" // } // ] // }, // { // "keys": [ // "ctrl+'" // ], // "args": { // "action": "encode_decode_data_url" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.encode_decode_data_url" // } // ] // }, // { // "keys": [ // "shift+ctrl+y" // ], // "args": { // "action": "evaluate_math_expression" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.evaluate_math_expression" // } // ] // }, // { // "keys": [ // "ctrl+shift+0" // ], // "args": { // "action": "balance_inward" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.balance_inward" // } // ] // }, // { // "keys": [ // "ctrl+," // ], // "args": { // "action": "balance_outward" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.balance_outward" // } // ] // }, // { // "keys": [ // "shift+alt+up" // ], // "args": { // "action": "increment_number_by_10" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.increment_number_by_10" // } // ] // }, // { // "keys": [ // "shift+ctrl+r" // ], // "args": { // "action": "reflect_css_value" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.reflect_css_value" // } // ] // }, // { // "keys": [ // "ctrl+alt+left" // ], // "args": { // "action": "prev_edit_point" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.prev_edit_point" // } // ] // }, // { // "keys": [ // "shift+ctrl+," // ], // "args": { // "action": "select_previous_item" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.select_previous_item" // } // ] // }, // { // "keys": [ // "ctrl+u" // ], // "args": { // "action": "update_image_size" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.update_image_size" // } // ] // }, // { // "keys": [ // "ctrl+alt+right" // ], // "args": { // "action": "next_edit_point" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.next_edit_point" // } // ] // }, // { // "keys": [ // "shift+ctrl+`" // ], // "args": { // "action": "split_join_tag" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.split_join_tag" // } // ] // }, // { // "keys": [ // "shift+alt+down" // ], // "args": { // "action": "decrement_number_by_10" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.decrement_number_by_10" // } // ] // }, // { // "keys": [ // "shift+ctrl+g" // ], // "command": "wrap_as_you_type", // "context": [ // { // "operand": false, // "operator": "equal", // "match_all": true, // "key": "setting.is_widget" // }, // { // "match_all": true, // "key": "emmet_action_enabled.wrap_as_you_type" // } // ] // }, // { // "keys": [ // "shift+ctrl+'" // ], // "command": "rename_tag", // "context": [ // { // "key": "emmet_action_enabled.rename_tag" // } // ] // }, // { // "keys": [ // "alt+up" // ], // "args": { // "action": "increment_number_by_01" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.increment_number_by_01" // } // ] // }, // { // "keys": [ // "ctrl+shift+u" // ], // "command": "update_as_you_type", // "context": [ // { // "operand": false, // "operator": "equal", // "match_all": true, // "key": "setting.is_widget" // }, // { // "match_all": true, // "key": "emmet_action_enabled.update_as_you_type" // } // ] // }, // { // "keys": [ // "ctrl+alt+j" // ], // "args": { // "action": "matching_pair" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.matching_pair" // } // ] // }, // { // "keys": [ // "ctrl+down" // ], // "args": { // "action": "decrement_number_by_1" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.decrement_number_by_1" // } // ] // }, // { // "keys": [ // "ctrl+e" // ], // "args": { // "action": "expand_abbreviation" // }, // "command": "run_emmet_action", // "context": [ // { // "key": "emmet_action_enabled.expand_abbreviation" // } // ] // }, // { // "keys": [ // "tab" // ], // "command": "expand_abbreviation_by_tab", // "context": [ // { // "operand": "source.css, source.sass, source.less, source.scss, source.stylus, source.jade, text.slim, text.xml, text.html - source, text.haml, text.scala.html, source string", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "operand": "storage.type.templatetag.django", // "operator": "not_equal", // "match_all": true, // "key": "selector" // }, // { // "match_all": true, // "key": "selection_empty" // }, // { // "operator": "equal", // "operand": false, // "match_all": true, // "key": "has_next_field" // }, // { // "operator": "equal", // "operand": false, // "match_all": true, // "key": "setting.disable_tab_abbreviations" // }, // { // "operand": false, // "operator": "equal", // "match_all": true, // "key": "auto_complete_visible" // }, // { // "match_all": true, // "key": "is_abbreviation" // } // ] // }, // { // "keys": [ // "tab" // ], // "command": "expand_abbreviation_by_tab", // "context": [ // { // "operand": "source.css, source.sass, source.less, source.scss, source.stylus, source.jade, text.slim, text.xml, text.html - source, text.haml, text.scala.html, source string", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "operand": "storage.type.templatetag.django", // "operator": "not_equal", // "match_all": true, // "key": "selector" // }, // { // "match_all": true, // "key": "selection_empty" // }, // { // "operator": "equal", // "operand": false, // "match_all": true, // "key": "has_next_field" // }, // { // "operator": "equal", // "operand": true, // "match_all": true, // "key": "auto_complete_visible" // }, // { // "operator": "equal", // "operand": false, // "match_all": true, // "key": "setting.disable_tab_abbreviations_on_auto_complete" // }, // { // "match_all": true, // "key": "is_abbreviation" // } // ] // }, // { // "keys": [ // "enter" // ], // "args": { // "contents": "\n\t${0}\n" // }, // "command": "insert_snippet", // "context": [ // { // "operand": "meta.scope.between-tag-pair.html, meta.scope.between-tag-pair.xml", // "match_all": true, // "key": "selector" // }, // { // "operand": false, // "match_all": true, // "key": "auto_complete_visible" // }, // { // "match_all": true, // "key": "clear_fields_on_enter_key" // }, // { // "operand": false, // "match_all": true, // "key": "setting.disable_formatted_linebreak" // } // ] // }, // { // "keys": [ // "#" // ], // "args": { // "attribute": "id" // }, // "command": "emmet_insert_attribute", // "context": [ // { // "operand": "text.html meta.tag -string -punctuation.definition.tag.begin.html -meta.scope.between-tag-pair.html -source -meta.tag.template.value.twig", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "operator": "equal", // "operand": true, // "key": "setting.auto_id_class" // } // ] // }, // { // "keys": [ // "." // ], // "args": { // "attribute": "class" // }, // "command": "emmet_insert_attribute", // "context": [ // { // "operand": "text.html meta.tag -string -punctuation.definition.tag.begin.html -meta.scope.between-tag-pair.html -source -meta.tag.template.value.twig", // "operator": "equal", // "match_all": true, // "key": "selector" // }, // { // "operator": "equal", // "operand": true, // "key": "setting.auto_id_class" // } // ] // } // ] //快捷鍵解析 /* Sublime Text 3 快捷鍵精華版 Alt+F3:選擇全部相同的詞 Alt+Shift+數字:分屏顯示 按Ctrl+Shift+上下鍵,可替換行 按Ctrl,依次點擊或選取,可須要編輯的多個位置 Shift+右鍵拖動:光標多不,用來更改或插入列內容 Alt+.:閉合標籤 Ctrl+Shift+/:當前位置插入註釋 Ctrl+/:註釋當前行 Ctrl+Shift+L:選擇多行 Ctrl+W:關閉當前打開文件 Ctrl+L:選擇行,重複可依次增長選擇下一行 Ctrl+Shift+Enter:在當前行前插入新行 Ctrl+X:刪除當前行 Ctrl+D:選擇單詞,重複可增長選擇下一個相同的單詞 Ctrl+M:跳轉到對應括號 Ctrl+U:軟撤銷,撤銷光標位置 Ctrl+J:選擇標籤內容 Ctrl+Shift+P:打開命令面板 Ctrl+P:搜索項目中的文件 Ctrl+G:跳轉到第幾行 Ctrl+Shift+W:關閉全部打開文件 Ctrl+Shift+V:粘貼並格式化 Ctrl+F:查找內容 Ctrl+Shift+F:查找並替換 Ctrl+H:替換 Ctrl+R:前往 method Ctrl+N:新建窗口 Ctrl+K+B:開關側欄 Ctrl+Shift+M:選中當前括號內容,重複可選着括號自己 Ctrl+F2:設置/刪除標記 Ctrl+Alt+/:塊註釋,並Focus到首行,寫註釋說明用的 Ctrl+Shift+A:選擇當前標籤先後,修改標籤用的 F11:全屏 Shift+F11:全屏免打擾模式,只編輯當前文件 Alt+數字:切換打開第N個文件 鼠標的前進後退鍵可切換Tab文件 選擇類 Ctrl+D 選中光標所佔的文本,繼續操做則會選中下一個相同的文本。 Alt+F3 選中文本按下快捷鍵,便可一次性選擇所有的相同文本進行同時編輯。舉個栗子:快速選中並更改全部相同的變量名、函數名等。 Ctrl+L 選中整行,繼續操做則繼續選擇下一行,效果和 Shift+↓ 效果同樣。 Ctrl+Shift+L 先選中多行,再按下快捷鍵,會在每行行尾插入光標,便可同時編輯這些行。 Ctrl+Shift+M 選擇括號內的內容(繼續選擇父括號)。舉個栗子:快速選中刪除函數中的代碼,重寫函數體代碼或重寫括號內裏的內容。 Ctrl+M 光標移動至括號內結束或開始的位置。 Ctrl+Enter 在下一行插入新行。舉個栗子:即便光標不在行尾,也能快速向下插入一行。 Ctrl+Shift+Enter 在上一行插入新行。舉個栗子:即便光標不在行首,也能快速向上插入一行。 Ctrl+Shift+[ 選中代碼,按下快捷鍵,摺疊代碼。 Ctrl+Shift+] 選中代碼,按下快捷鍵,展開代碼。 Ctrl+K+0 展開全部摺疊代碼。 Ctrl+← 向左單位性地移動光標,快速移動光標。 Ctrl+→ 向右單位性地移動光標,快速移動光標。 shift+↑ 向上選中多行。 shift+↓ 向下選中多行。 Shift+← 向左選中文本。 Shift+→ 向右選中文本。 Ctrl+Shift+← 向左單位性地選中文本。 Ctrl+Shift+→ 向右單位性地選中文本。 Ctrl+Shift+↑ 將光標所在行和上一行代碼互換(將光標所在行插入到上一行以前)。 Ctrl+Shift+↓ 將光標所在行和下一行代碼互換(將光標所在行插入到下一行以後)。 Ctrl+Alt+↑ 向上添加多行光標,可同時編輯多行。 Ctrl+Alt+↓ 向下添加多行光標,可同時編輯多行。 編輯類 Ctrl+J 合併選中的多行代碼爲一行。舉個栗子:將多行格式的CSS屬性合併爲一行。 Ctrl+Shift+D 複製光標所在整行,插入到下一行。 Tab 向右縮進。 Shift+Tab 向左縮進。 Ctrl+K+K 從光標處開始刪除代碼至行尾。 Ctrl+Shift+K 刪除整行。 Ctrl+/ 註釋單行。 Ctrl+Shift+/ 註釋多行。 Ctrl+K+U 轉換大寫。 Ctrl+K+L 轉換小寫。 Ctrl+Z 撤銷。 Ctrl+Y 恢復撤銷。 Ctrl+U 軟撤銷,感受和 Gtrl+Z 同樣。 Ctrl+F2 設置書籤 Ctrl+T 左右字母互換。 F6 單詞檢測拼寫 搜索類 Ctrl+F 打開底部搜索框,查找關鍵字。 Ctrl+shift+F 在文件夾內查找,與普通編輯器不一樣的地方是sublime容許添加多個文件夾進行查找,略高端,未研究。 Ctrl+P 打開搜索框。舉個栗子:一、輸入當前項目中的文件名,快速搜索文件,二、輸入@和關鍵字,查找文件中函數名,三、輸入:和數字,跳轉到文件中該行代碼,四、輸入#和關鍵字,查找變量名。 Ctrl+G 打開搜索框,自動帶:,輸入數字跳轉到該行代碼。舉個栗子:在頁面代碼比較長的文件中快速定位。 Ctrl+R 打開搜索框,自動帶@,輸入關鍵字,查找文件中的函數名。舉個栗子:在函數較多的頁面快速查找某個函數。 Ctrl+: 打開搜索框,自動帶#,輸入關鍵字,查找文件中的變量名、屬性名等。 Ctrl+Shift+P 打開命令框。場景栗子:打開命名框,輸入關鍵字,調用sublime text或插件的功能,例如使用package安裝插件。 Esc 退出光標多行選擇,退出搜索框,命令框等。 顯示類 Ctrl+Tab 按文件瀏覽過的順序,切換當前窗口的標籤頁。 Ctrl+PageDown 向左切換當前窗口的標籤頁。 Ctrl+PageUp 向右切換當前窗口的標籤頁。 Alt+Shift+1 窗口分屏,恢復默認1屏(非小鍵盤的數字) Alt+Shift+2 左右分屏-2列 Alt+Shift+3 左右分屏-3列 Alt+Shift+4 左右分屏-4列 Alt+Shift+5 等分4屏 Alt+Shift+8 垂直分屏-2屏 Alt+Shift+9 垂直分屏-3屏 Ctrl+K+B 開啓/關閉側邊欄。 F11 全屏模式 Shift+F11 免打擾模式*/ //sid-bar 右鍵側邊欄文件設置open-with--editapp設置第三方程序啓動 //[ // {"id": "side-bar-files-open-with", // "children": // [ // //application 1 // { // "caption": "Photoshopcs6", // "id": "side-bar-files-open-with-photoshop", // "command": "side_bar_files_open_with", // "args": { // "paths": [], // "application": "D:\\Program Files\\ps6\\Adobe Photoshop CS6 (64 Bit)\\Photoshop.exe", // windows // "extensions":"psd|png|jpg|jpeg", //any file with these extensions // "args":[] // }, // "open_automatically" : false // will close the view/tab and launch the application // }, // //separator // {"caption":"-"}, // //application n // { // "caption": "Chrome", // "id": "side-bar-files-open-with-chrome", // "command": "side_bar_files_open_with", // "args": { // "paths": [], // "application": "D:\\Program Files\\GoogleChrome_46.0.2490.86_PortableSoft/GoogleChromePortable\\App\\Google Chrome\\chrome.exe", // "extensions":".*", //any file with extension // "args":[] // }, // "open_automatically" : false // will close the view/tab and launch the application // }, // { // "caption": "safari", // "id": "side-bar-files-open-with-chrome", // "command": "side_bar_files_open_with", // "args": { // "paths": [], // "application": "D:\\Program Files (x86)\\Safari\\safari.exe", // "extensions":".*", //any file with extension // "args":[] // }, // "open_automatically" : false // will close the view/tab and launch the application // }, // { // "caption": "firefox", // "id": "side-bar-files-open-with-chrome", // "command": "side_bar_files_open_with", // "args": { // "paths": [], // "application": "D:\\Program Files (x86)\\Mozilla Firefox\\firefox.exe", // "extensions":".*", //any file with extension // "args":[] // }, // "open_automatically" : false // will close the view/tab and launch the application // }, // { // "caption": "ie", // "id": "side-bar-files-open-with-chrome", // "command": "side_bar_files_open_with", // "args": { // "paths": [], // "application": "C:\\Program Files (x86)\\Internet Explorer\\iexplore.exe", // "extensions":".*", //any file with extension // "args":[] // }, // "open_automatically" : false // will close the view/tab and launch the application // }, // { // "caption": "opera", // "id": "side-bar-files-open-with-chrome", // "command": "side_bar_files_open_with", // "args": { // "paths": [], // "application": "D:\\Program Files\\Opera\\launcher.exe", // "extensions":".*", //any file with extension // "args":[] // }, // "open_automatically" : false // will close the view/tab and launch the application // }, // {"caption":"-"} // ] // } // ]