sublime text 3  v-3103默认快捷键设置

  1. [
  2. { "keys": ["ctrl+shift+n"], "command": "new_window" },
  3. { "keys": ["ctrl+shift+w"], "command": "close_window" },
  4. { "keys": ["ctrl+o"], "command": "prompt_open_file" },
  5. { "keys": ["ctrl+shift+t"], "command": "reopen_last_file" },
  6. { "keys": ["alt+o"], "command": "switch_file", "args": {"extensions": ["cpp", "cxx", "cc", "c", "hpp", "hxx", "hh", "h", "ipp", "inl", "m", "mm"]} },
  7. { "keys": ["ctrl+n"], "command": "new_file" },
  8. { "keys": ["ctrl+s"], "command": "save" },
  9. { "keys": ["ctrl+shift+s"], "command": "prompt_save_as" },
  10. { "keys": ["ctrl+f4"], "command": "close_file" },
  11. { "keys": ["ctrl+w"], "command": "close" },
  12.  
  13. { "keys": ["ctrl+k", "ctrl+b"], "command": "toggle_side_bar" },
  14. { "keys": ["f11"], "command": "toggle_full_screen" },
  15. { "keys": ["shift+f11"], "command": "toggle_distraction_free" },
  16.  
  17. { "keys": ["backspace"], "command": "left_delete" },
  18. { "keys": ["shift+backspace"], "command": "left_delete" },
  19. { "keys": ["ctrl+shift+backspace"], "command": "left_delete" },
  20. { "keys": ["delete"], "command": "right_delete" },
  21. { "keys": ["enter"], "command": "insert", "args": {"characters": "\n"} },
  22. { "keys": ["shift+enter"], "command": "insert", "args": {"characters": "\n"} },
  23.  
  24. { "keys": ["ctrl+z"], "command": "undo" },
  25. { "keys": ["ctrl+shift+z"], "command": "redo" },
  26. { "keys": ["ctrl+y"], "command": "redo_or_repeat" },
  27. { "keys": ["ctrl+u"], "command": "soft_undo" },
  28. { "keys": ["ctrl+shift+u"], "command": "soft_redo" },
  29.  
  30. { "keys": ["shift+delete"], "command": "cut" },
  31. { "keys": ["ctrl+insert"], "command": "copy" },
  32. { "keys": ["shift+insert"], "command": "paste" },
  33. { "keys": ["ctrl+x"], "command": "cut" },
  34. { "keys": ["ctrl+c"], "command": "copy" },
  35. { "keys": ["ctrl+v"], "command": "paste" },
  36. { "keys": ["ctrl+shift+v"], "command": "paste_and_indent" },
  37. { "keys": ["ctrl+k", "ctrl+v"], "command": "paste_from_history" },
  38.  
  39. { "keys": ["left"], "command": "move", "args": {"by": "characters", "forward": false} },
  40. { "keys": ["right"], "command": "move", "args": {"by": "characters", "forward": true} },
  41. { "keys": ["up"], "command": "move", "args": {"by": "lines", "forward": false} },
  42. { "keys": ["down"], "command": "move", "args": {"by": "lines", "forward": true} },
  43. { "keys": ["shift+left"], "command": "move", "args": {"by": "characters", "forward": false, "extend": true} },
  44. { "keys": ["shift+right"], "command": "move", "args": {"by": "characters", "forward": true, "extend": true} },
  45. { "keys": ["shift+up"], "command": "move", "args": {"by": "lines", "forward": false, "extend": true} },
  46. { "keys": ["shift+down"], "command": "move", "args": {"by": "lines", "forward": true, "extend": true} },
  47.  
  48. { "keys": ["ctrl+left"], "command": "move", "args": {"by": "words", "forward": false} },
  49. { "keys": ["ctrl+right"], "command": "move", "args": {"by": "word_ends", "forward": true} },
  50. { "keys": ["ctrl+shift+left"], "command": "move", "args": {"by": "words", "forward": false, "extend": true} },
  51. { "keys": ["ctrl+shift+right"], "command": "move", "args": {"by": "word_ends", "forward": true, "extend": true} },
  52.  
  53. { "keys": ["alt+left"], "command": "move", "args": {"by": "subwords", "forward": false} },
  54. { "keys": ["alt+right"], "command": "move", "args": {"by": "subword_ends", "forward": true} },
  55. { "keys": ["alt+shift+left"], "command": "move", "args": {"by": "subwords", "forward": false, "extend": true} },
  56. { "keys": ["alt+shift+right"], "command": "move", "args": {"by": "subword_ends", "forward": true, "extend": true} },
  57.  
  58. { "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} },
  59. { "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} },
  60.  
  61. { "keys": ["pageup"], "command": "move", "args": {"by": "pages", "forward": false} },
  62. { "keys": ["pagedown"], "command": "move", "args": {"by": "pages", "forward": true} },
  63. { "keys": ["shift+pageup"], "command": "move", "args": {"by": "pages", "forward": false, "extend": true} },
  64. { "keys": ["shift+pagedown"], "command": "move", "args": {"by": "pages", "forward": true, "extend": true} },
  65.  
  66. { "keys": ["home"], "command": "move_to", "args": {"to": "bol", "extend": false} },
  67. { "keys": ["end"], "command": "move_to", "args": {"to": "eol", "extend": false} },
  68. { "keys": ["shift+home"], "command": "move_to", "args": {"to": "bol", "extend": true} },
  69. { "keys": ["shift+end"], "command": "move_to", "args": {"to": "eol", "extend": true} },
  70. { "keys": ["ctrl+home"], "command": "move_to", "args": {"to": "bof", "extend": false} },
  71. { "keys": ["ctrl+end"], "command": "move_to", "args": {"to": "eof", "extend": false} },
  72. { "keys": ["ctrl+shift+home"], "command": "move_to", "args": {"to": "bof", "extend": true} },
  73. { "keys": ["ctrl+shift+end"], "command": "move_to", "args": {"to": "eof", "extend": true} },
  74.  
  75. { "keys": ["ctrl+up"], "command": "scroll_lines", "args": {"amount": 1.0 } },
  76. { "keys": ["ctrl+down"], "command": "scroll_lines", "args": {"amount": -1.0 } },
  77.  
  78. { "keys": ["ctrl+pagedown"], "command": "next_view" },
  79. { "keys": ["ctrl+pageup"], "command": "prev_view" },
  80.  
  81. { "keys": ["ctrl+tab"], "command": "next_view_in_stack" },
  82. { "keys": ["ctrl+shift+tab"], "command": "prev_view_in_stack" },
  83.  
  84. { "keys": ["ctrl+a"], "command": "select_all" },
  85. { "keys": ["ctrl+shift+l"], "command": "split_selection_into_lines" },
  86. { "keys": ["escape"], "command": "single_selection", "context":
  87. [
  88. { "key": "num_selections", "operator": "not_equal", "operand": 1 }
  89. ]
  90. },
  91. { "keys": ["escape"], "command": "clear_fields", "context":
  92. [
  93. { "key": "has_next_field", "operator": "equal", "operand": true }
  94. ]
  95. },
  96. { "keys": ["escape"], "command": "clear_fields", "context":
  97. [
  98. { "key": "has_prev_field", "operator": "equal", "operand": true }
  99. ]
  100. },
  101. { "keys": ["escape"], "command": "hide_panel", "args": {"cancel": true},
  102. "context":
  103. [
  104. { "key": "panel_visible", "operator": "equal", "operand": true }
  105. ]
  106. },
  107. { "keys": ["escape"], "command": "hide_overlay", "context":
  108. [
  109. { "key": "overlay_visible", "operator": "equal", "operand": true }
  110. ]
  111. },
  112. { "keys": ["escape"], "command": "hide_popup", "context":
  113. [
  114. { "key": "popup_visible", "operator": "equal", "operand": true }
  115. ]
  116. },
  117. { "keys": ["escape"], "command": "hide_auto_complete", "context":
  118. [
  119. { "key": "auto_complete_visible", "operator": "equal", "operand": true }
  120. ]
  121. },
  122.  
  123. { "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": true} },
  124. { "keys": ["tab"], "command": "insert_best_completion", "args": {"default": "\t", "exact": false},
  125. "context":
  126. [
  127. { "key": "setting.tab_completion", "operator": "equal", "operand": true },
  128. { "key": "preceding_text", "operator": "not_regex_match", "operand": ".*\\b[0-9]+$", "match_all": true },
  129. ]
  130. },
  131. { "keys": ["tab"], "command": "replace_completion_with_next_completion", "context":
  132. [
  133. { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
  134. { "key": "setting.tab_completion", "operator": "equal", "operand": true }
  135. ]
  136. },
  137. { "keys": ["tab"], "command": "reindent", "context":
  138. [
  139. { "key": "setting.auto_indent", "operator": "equal", "operand": true },
  140. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  141. { "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true },
  142. { "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true }
  143. ]
  144. },
  145. { "keys": ["tab"], "command": "indent", "context":
  146. [
  147. { "key": "text", "operator": "regex_contains", "operand": "\n" }
  148. ]
  149. },
  150. { "keys": ["tab"], "command": "next_field", "context":
  151. [
  152. { "key": "has_next_field", "operator": "equal", "operand": true }
  153. ]
  154. },
  155. { "keys": ["tab"], "command": "commit_completion", "context":
  156. [
  157. { "key": "auto_complete_visible" },
  158. { "key": "setting.auto_complete_commit_on_tab" }
  159. ]
  160. },
  161.  
  162. { "keys": ["shift+tab"], "command": "insert", "args": {"characters": "\t"} },
  163. { "keys": ["shift+tab"], "command": "unindent", "context":
  164. [
  165. { "key": "setting.shift_tab_unindent", "operator": "equal", "operand": true }
  166. ]
  167. },
  168. { "keys": ["shift+tab"], "command": "unindent", "context":
  169. [
  170. { "key": "preceding_text", "operator": "regex_match", "operand": "^[\t ]*" }
  171. ]
  172. },
  173. { "keys": ["shift+tab"], "command": "unindent", "context":
  174. [
  175. { "key": "text", "operator": "regex_contains", "operand": "\n" }
  176. ]
  177. },
  178. { "keys": ["shift+tab"], "command": "prev_field", "context":
  179. [
  180. { "key": "has_prev_field", "operator": "equal", "operand": true }
  181. ]
  182. },
  183.  
  184. { "keys": ["ctrl+]"], "command": "indent" },
  185. { "keys": ["ctrl+["], "command": "unindent" },
  186.  
  187. { "keys": ["insert"], "command": "toggle_overwrite" },
  188.  
  189. { "keys": ["ctrl+l"], "command": "expand_selection", "args": {"to": "line"} },
  190. { "keys": ["ctrl+d"], "command": "find_under_expand" },
  191. { "keys": ["ctrl+k", "ctrl+d"], "command": "find_under_expand_skip" },
  192. { "keys": ["ctrl+shift+space"], "command": "expand_selection", "args": {"to": "scope"} },
  193. { "keys": ["ctrl+shift+m"], "command": "expand_selection", "args": {"to": "brackets"} },
  194. { "keys": ["ctrl+m"], "command": "move_to", "args": {"to": "brackets"} },
  195. { "keys": ["ctrl+shift+j"], "command": "expand_selection", "args": {"to": "indentation"} },
  196. { "keys": ["ctrl+shift+a"], "command": "expand_selection", "args": {"to": "tag"} },
  197.  
  198. { "keys": ["alt+."], "command": "close_tag" },
  199.  
  200. { "keys": ["ctrl+q"], "command": "toggle_record_macro" },
  201. { "keys": ["ctrl+shift+q"], "command": "run_macro" },
  202.  
  203. { "keys": ["ctrl+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line.sublime-macro"} },
  204. { "keys": ["ctrl+shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"} },
  205. { "keys": ["enter"], "command": "commit_completion", "context":
  206. [
  207. { "key": "auto_complete_visible" },
  208. { "key": "setting.auto_complete_commit_on_tab", "operand": false }
  209. ]
  210. },
  211.  
  212. { "keys": ["ctrl+p"], "command": "show_overlay", "args": {"overlay": "goto", "show_files": true} },
  213. { "keys": ["ctrl+shift+p"], "command": "show_overlay", "args": {"overlay": "command_palette"} },
  214. { "keys": ["ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@"} },
  215. { "keys": ["ctrl+g"], "command": "show_overlay", "args": {"overlay": "goto", "text": ":"} },
  216. { "keys": ["ctrl+;"], "command": "show_overlay", "args": {"overlay": "goto", "text": "#"} },
  217. { "keys": ["f12"], "command": "goto_definition" },
  218. { "keys": ["ctrl+shift+r"], "command": "goto_symbol_in_project" },
  219. { "keys": ["alt+keypad_minus"], "command": "jump_back" },
  220. { "keys": ["alt+shift+keypad_minus"], "command": "jump_forward" },
  221. { "keys": ["alt+-"], "command": "jump_back" },
  222. { "keys": ["alt+shift+-"], "command": "jump_forward" },
  223.  
  224. { "keys": ["ctrl+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse": false} },
  225. { "keys": ["ctrl+shift+i"], "command": "show_panel", "args": {"panel": "incremental_find", "reverse": true} },
  226. { "keys": ["ctrl+f"], "command": "show_panel", "args": {"panel": "find", "reverse": false} },
  227. { "keys": ["ctrl+h"], "command": "show_panel", "args": {"panel": "replace", "reverse": false} },
  228. { "keys": ["ctrl+shift+h"], "command": "replace_next" },
  229. { "keys": ["f3"], "command": "find_next" },
  230. { "keys": ["shift+f3"], "command": "find_prev" },
  231. { "keys": ["ctrl+f3"], "command": "find_under" },
  232. { "keys": ["ctrl+shift+f3"], "command": "find_under_prev" },
  233. { "keys": ["alt+f3"], "command": "find_all_under" },
  234. { "keys": ["ctrl+e"], "command": "slurp_find_string" },
  235. { "keys": ["ctrl+shift+e"], "command": "slurp_replace_string" },
  236. { "keys": ["ctrl+shift+f"], "command": "show_panel", "args": {"panel": "find_in_files"} },
  237. { "keys": ["f4"], "command": "next_result" },
  238. { "keys": ["shift+f4"], "command": "prev_result" },
  239.  
  240. { "keys": ["f6"], "command": "toggle_setting", "args": {"setting": "spell_check"} },
  241. { "keys": ["ctrl+f6"], "command": "next_misspelling" },
  242. { "keys": ["ctrl+shift+f6"], "command": "prev_misspelling" },
  243.  
  244. { "keys": ["ctrl+shift+up"], "command": "swap_line_up" },
  245. { "keys": ["ctrl+shift+down"], "command": "swap_line_down" },
  246.  
  247. { "keys": ["ctrl+backspace"], "command": "delete_word", "args": { "forward": false } },
  248. { "keys": ["ctrl+shift+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} },
  249.  
  250. { "keys": ["ctrl+delete"], "command": "delete_word", "args": { "forward": true } },
  251. { "keys": ["ctrl+shift+delete"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} },
  252.  
  253. { "keys": ["ctrl+/"], "command": "toggle_comment", "args": { "block": false } },
  254. { "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": true } },
  255.  
  256. { "keys": ["ctrl+j"], "command": "join_lines" },
  257. { "keys": ["ctrl+shift+d"], "command": "duplicate_line" },
  258.  
  259. { "keys": ["ctrl+`"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
  260.  
  261. { "keys": ["ctrl+space"], "command": "auto_complete" },
  262. { "keys": ["ctrl+space"], "command": "replace_completion_with_auto_complete", "context":
  263. [
  264. { "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
  265. { "key": "auto_complete_visible", "operator": "equal", "operand": false },
  266. { "key": "setting.tab_completion", "operator": "equal", "operand": true }
  267. ]
  268. },
  269.  
  270. { "keys": ["ctrl+alt+shift+p"], "command": "show_scope_name" },
  271.  
  272. { "keys": ["f7"], "command": "build" },
  273. { "keys": ["ctrl+b"], "command": "build" },
  274. { "keys": ["ctrl+shift+b"], "command": "build", "args": {"select": true} },
  275. { "keys": ["ctrl+break"], "command": "exec", "args": {"kill": true} },
  276.  
  277. { "keys": ["ctrl+t"], "command": "transpose" },
  278.  
  279. { "keys": ["f9"], "command": "sort_lines", "args": {"case_sensitive": false} },
  280. { "keys": ["ctrl+f9"], "command": "sort_lines", "args": {"case_sensitive": true} },
  281.  
  282. // Auto-pair quotes
  283. { "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"$0\""}, "context":
  284. [
  285. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  286. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  287. { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true },
  288. { "key": "preceding_text", "operator": "not_regex_contains", "operand": "[\"a-zA-Z0-9_]$", "match_all": true },
  289. { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true }
  290. ]
  291. },
  292. { "keys": ["\""], "command": "insert_snippet", "args": {"contents": "\"${0:$SELECTION}\""}, "context":
  293. [
  294. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  295. { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
  296. ]
  297. },
  298. { "keys": ["\""], "command": "move", "args": {"by": "characters", "forward": true}, "context":
  299. [
  300. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  301. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  302. { "key": "following_text", "operator": "regex_contains", "operand": "^\"", "match_all": true },
  303. { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
  304. { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true },
  305. ]
  306. },
  307. { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
  308. [
  309. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  310. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  311. { "key": "preceding_text", "operator": "regex_contains", "operand": "\"$", "match_all": true },
  312. { "key": "following_text", "operator": "regex_contains", "operand": "^\"", "match_all": true },
  313. { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
  314. { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.double - punctuation.definition.string.end", "match_all": true },
  315. ]
  316. },
  317.  
  318. // Auto-pair single quotes
  319. { "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'$0'"}, "context":
  320. [
  321. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  322. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  323. { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|>|$)", "match_all": true },
  324. { "key": "preceding_text", "operator": "not_regex_contains", "operand": "['a-zA-Z0-9_]$", "match_all": true },
  325. { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single - punctuation.definition.string.end", "match_all": true }
  326. ]
  327. },
  328. { "keys": ["'"], "command": "insert_snippet", "args": {"contents": "'${0:$SELECTION}'"}, "context":
  329. [
  330. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  331. { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
  332. ]
  333. },
  334. { "keys": ["'"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
  335. [
  336. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  337. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  338. { "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true },
  339. { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
  340. { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single - punctuation.definition.string.end", "match_all": true },
  341. ]
  342. },
  343. { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
  344. [
  345. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  346. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  347. { "key": "preceding_text", "operator": "regex_contains", "operand": "'$", "match_all": true },
  348. { "key": "following_text", "operator": "regex_contains", "operand": "^'", "match_all": true },
  349. { "key": "selector", "operator": "not_equal", "operand": "punctuation.definition.string.begin", "match_all": true },
  350. { "key": "eol_selector", "operator": "not_equal", "operand": "string.quoted.single - punctuation.definition.string.end", "match_all": true },
  351. ]
  352. },
  353.  
  354. // Auto-pair brackets
  355. { "keys": ["("], "command": "insert_snippet", "args": {"contents": "($0)"}, "context":
  356. [
  357. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  358. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  359. { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true }
  360. ]
  361. },
  362. { "keys": ["("], "command": "insert_snippet", "args": {"contents": "(${0:$SELECTION})"}, "context":
  363. [
  364. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  365. { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
  366. ]
  367. },
  368. { "keys": [")"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
  369. [
  370. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  371. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  372. { "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true }
  373. ]
  374. },
  375. { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
  376. [
  377. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  378. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  379. { "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true },
  380. { "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true }
  381. ]
  382. },
  383.  
  384. // Auto-pair square brackets
  385. { "keys": ["["], "command": "insert_snippet", "args": {"contents": "[$0]"}, "context":
  386. [
  387. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  388. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  389. { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|;|\\}|$)", "match_all": true }
  390. ]
  391. },
  392. { "keys": ["["], "command": "insert_snippet", "args": {"contents": "[${0:$SELECTION}]"}, "context":
  393. [
  394. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  395. { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
  396. ]
  397. },
  398. { "keys": ["]"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
  399. [
  400. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  401. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  402. { "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true }
  403. ]
  404. },
  405. { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
  406. [
  407. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  408. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  409. { "key": "preceding_text", "operator": "regex_contains", "operand": "\\[$", "match_all": true },
  410. { "key": "following_text", "operator": "regex_contains", "operand": "^\\]", "match_all": true }
  411. ]
  412. },
  413.  
  414. // Auto-pair curly brackets
  415. { "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{$0}"}, "context":
  416. [
  417. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  418. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  419. { "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|$)", "match_all": true }
  420. ]
  421. },
  422. { "keys": ["{"], "command": "wrap_block", "args": {"begin": "{", "end": "}"}, "context":
  423. [
  424. { "key": "indented_block", "match_all": true },
  425. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  426. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  427. { "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true },
  428. ]
  429. },
  430. { "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{${0:$SELECTION}}"}, "context":
  431. [
  432. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  433. { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
  434. ]
  435. },
  436. { "keys": ["}"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
  437. [
  438. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  439. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  440. { "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true }
  441. ]
  442. },
  443. { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Left Right.sublime-macro"}, "context":
  444. [
  445. { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
  446. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  447. { "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true },
  448. { "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true }
  449. ]
  450. },
  451.  
  452. { "keys": ["enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context":
  453. [
  454. { "key": "setting.auto_indent", "operator": "equal", "operand": true },
  455. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  456. { "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true },
  457. { "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true }
  458. ]
  459. },
  460. { "keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context":
  461. [
  462. { "key": "setting.auto_indent", "operator": "equal", "operand": true },
  463. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  464. { "key": "preceding_text", "operator": "regex_contains", "operand": "\\{$", "match_all": true },
  465. { "key": "following_text", "operator": "regex_contains", "operand": "^\\}", "match_all": true }
  466. ]
  467. },
  468.  
  469. { "keys": ["enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context":
  470. [
  471. { "key": "setting.auto_indent", "operator": "equal", "operand": true },
  472. { "key": "selector", "operator": "equal", "operand": "meta.scope.between-tag-pair", "match_all": true },
  473. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  474. ]
  475. },
  476. { "keys": ["shift+enter"], "command": "insert_snippet", "args": {"contents": "\n\t$0\n"}, "context":
  477. [
  478. { "key": "setting.auto_indent", "operator": "equal", "operand": true },
  479. { "key": "selector", "operator": "equal", "operand": "meta.scope.between-tag-pair", "match_all": true },
  480. { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
  481. ]
  482. },
  483.  
  484. {
  485. "keys": ["alt+shift+1"],
  486. "command": "set_layout",
  487. "args":
  488. {
  489. "cols": [0.0, 1.0],
  490. "rows": [0.0, 1.0],
  491. "cells": [[0, 0, 1, 1]]
  492. }
  493. },
  494. {
  495. "keys": ["alt+shift+2"],
  496. "command": "set_layout",
  497. "args":
  498. {
  499. "cols": [0.0, 0.5, 1.0],
  500. "rows": [0.0, 1.0],
  501. "cells": [[0, 0, 1, 1], [1, 0, 2, 1]]
  502. }
  503. },
  504. {
  505. "keys": ["alt+shift+3"],
  506. "command": "set_layout",
  507. "args":
  508. {
  509. "cols": [0.0, 0.33, 0.66, 1.0],
  510. "rows": [0.0, 1.0],
  511. "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1]]
  512. }
  513. },
  514. {
  515. "keys": ["alt+shift+4"],
  516. "command": "set_layout",
  517. "args":
  518. {
  519. "cols": [0.0, 0.25, 0.5, 0.75, 1.0],
  520. "rows": [0.0, 1.0],
  521. "cells": [[0, 0, 1, 1], [1, 0, 2, 1], [2, 0, 3, 1], [3, 0, 4, 1]]
  522. }
  523. },
  524. {
  525. "keys": ["alt+shift+8"],
  526. "command": "set_layout",
  527. "args":
  528. {
  529. "cols": [0.0, 1.0],
  530. "rows": [0.0, 0.5, 1.0],
  531. "cells": [[0, 0, 1, 1], [0, 1, 1, 2]]
  532. }
  533. },
  534. {
  535. "keys": ["alt+shift+9"],
  536. "command": "set_layout",
  537. "args":
  538. {
  539. "cols": [0.0, 1.0],
  540. "rows": [0.0, 0.33, 0.66, 1.0],
  541. "cells": [[0, 0, 1, 1], [0, 1, 1, 2], [0, 2, 1, 3]]
  542. }
  543. },
  544. {
  545. "keys": ["alt+shift+5"],
  546. "command": "set_layout",
  547. "args":
  548. {
  549. "cols": [0.0, 0.5, 1.0],
  550. "rows": [0.0, 0.5, 1.0],
  551. "cells":
  552. [
  553. [0, 0, 1, 1], [1, 0, 2, 1],
  554. [0, 1, 1, 2], [1, 1, 2, 2]
  555. ]
  556. }
  557. },
  558. { "keys": ["ctrl+1"], "command": "focus_group", "args": { "group": 0 } },
  559. { "keys": ["ctrl+2"], "command": "focus_group", "args": { "group": 1 } },
  560. { "keys": ["ctrl+3"], "command": "focus_group", "args": { "group": 2 } },
  561. { "keys": ["ctrl+4"], "command": "focus_group", "args": { "group": 3 } },
  562. { "keys": ["ctrl+5"], "command": "focus_group", "args": { "group": 4 } },
  563. { "keys": ["ctrl+6"], "command": "focus_group", "args": { "group": 5 } },
  564. { "keys": ["ctrl+7"], "command": "focus_group", "args": { "group": 6 } },
  565. { "keys": ["ctrl+8"], "command": "focus_group", "args": { "group": 7 } },
  566. { "keys": ["ctrl+9"], "command": "focus_group", "args": { "group": 8 } },
  567. { "keys": ["ctrl+shift+1"], "command": "move_to_group", "args": { "group": 0 } },
  568. { "keys": ["ctrl+shift+2"], "command": "move_to_group", "args": { "group": 1 } },
  569. { "keys": ["ctrl+shift+3"], "command": "move_to_group", "args": { "group": 2 } },
  570. { "keys": ["ctrl+shift+4"], "command": "move_to_group", "args": { "group": 3 } },
  571. { "keys": ["ctrl+shift+5"], "command": "move_to_group", "args": { "group": 4 } },
  572. { "keys": ["ctrl+shift+6"], "command": "move_to_group", "args": { "group": 5 } },
  573. { "keys": ["ctrl+shift+7"], "command": "move_to_group", "args": { "group": 6 } },
  574. { "keys": ["ctrl+shift+8"], "command": "move_to_group", "args": { "group": 7 } },
  575. { "keys": ["ctrl+shift+9"], "command": "move_to_group", "args": { "group": 8 } },
  576. { "keys": ["ctrl+0"], "command": "focus_side_bar" },
  577.  
  578. { "keys": ["ctrl+k", "ctrl+up"], "command": "new_pane" },
  579. { "keys": ["ctrl+k", "ctrl+shift+up"], "command": "new_pane", "args": {"move": false} },
  580. { "keys": ["ctrl+k", "ctrl+down"], "command": "close_pane" },
  581. { "keys": ["ctrl+k", "ctrl+left"], "command": "focus_neighboring_group", "args": {"forward": false} },
  582. { "keys": ["ctrl+k", "ctrl+right"], "command": "focus_neighboring_group" },
  583. { "keys": ["ctrl+k", "ctrl+shift+left"], "command": "move_to_neighboring_group", "args": {"forward": false} },
  584. { "keys": ["ctrl+k", "ctrl+shift+right"], "command": "move_to_neighboring_group" },
  585.  
  586. { "keys": ["alt+1"], "command": "select_by_index", "args": { "index": 0 } },
  587. { "keys": ["alt+2"], "command": "select_by_index", "args": { "index": 1 } },
  588. { "keys": ["alt+3"], "command": "select_by_index", "args": { "index": 2 } },
  589. { "keys": ["alt+4"], "command": "select_by_index", "args": { "index": 3 } },
  590. { "keys": ["alt+5"], "command": "select_by_index", "args": { "index": 4 } },
  591. { "keys": ["alt+6"], "command": "select_by_index", "args": { "index": 5 } },
  592. { "keys": ["alt+7"], "command": "select_by_index", "args": { "index": 6 } },
  593. { "keys": ["alt+8"], "command": "select_by_index", "args": { "index": 7 } },
  594. { "keys": ["alt+9"], "command": "select_by_index", "args": { "index": 8 } },
  595. { "keys": ["alt+0"], "command": "select_by_index", "args": { "index": 9 } },
  596.  
  597. { "keys": ["f2"], "command": "next_bookmark" },
  598. { "keys": ["shift+f2"], "command": "prev_bookmark" },
  599. { "keys": ["ctrl+f2"], "command": "toggle_bookmark" },
  600. { "keys": ["ctrl+shift+f2"], "command": "clear_bookmarks" },
  601. { "keys": ["alt+f2"], "command": "select_all_bookmarks" },
  602.  
  603. { "keys": ["ctrl+shift+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete Line.sublime-macro"} },
  604.  
  605. { "keys": ["alt+q"], "command": "wrap_lines" },
  606.  
  607. { "keys": ["ctrl+k", "ctrl+u"], "command": "upper_case" },
  608. { "keys": ["ctrl+k", "ctrl+l"], "command": "lower_case" },
  609.  
  610. { "keys": ["ctrl+k", "ctrl+space"], "command": "set_mark" },
  611. { "keys": ["ctrl+k", "ctrl+a"], "command": "select_to_mark" },
  612. { "keys": ["ctrl+k", "ctrl+w"], "command": "delete_to_mark" },
  613. { "keys": ["ctrl+k", "ctrl+x"], "command": "swap_with_mark" },
  614. { "keys": ["ctrl+k", "ctrl+y"], "command": "yank" },
  615. { "keys": ["ctrl+k", "ctrl+k"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard EOL.sublime-macro"} },
  616. { "keys": ["ctrl+k", "ctrl+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Delete to Hard BOL.sublime-macro"} },
  617. { "keys": ["ctrl+k", "ctrl+g"], "command": "clear_bookmarks", "args": {"name": "mark"} },
  618. { "keys": ["ctrl+k", "ctrl+c"], "command": "show_at_center" },
  619.  
  620. { "keys": ["ctrl++"], "command": "increase_font_size" },
  621. { "keys": ["ctrl+="], "command": "increase_font_size" },
  622. { "keys": ["ctrl+keypad_plus"], "command": "increase_font_size" },
  623. { "keys": ["ctrl+-"], "command": "decrease_font_size" },
  624. { "keys": ["ctrl+keypad_minus"], "command": "decrease_font_size" },
  625.  
  626. { "keys": ["ctrl+equals"], "command": "increase_font_size" },
  627. { "keys": ["ctrl+shift+equals"], "command": "decrease_font_size" },
  628. { "keys": ["ctrl+keypad_plus"], "command": "increase_font_size" },
  629. { "keys": ["ctrl+shift+keypad_plus"], "command": "decrease_font_size" },
  630.  
  631. { "keys": ["alt+shift+w"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } },
  632.  
  633. { "keys": ["ctrl+shift+["], "command": "fold" },
  634. { "keys": ["ctrl+shift+]"], "command": "unfold" },
  635. { "keys": ["ctrl+k", "ctrl+1"], "command": "fold_by_level", "args": {"level": 1} },
  636. { "keys": ["ctrl+k", "ctrl+2"], "command": "fold_by_level", "args": {"level": 2} },
  637. { "keys": ["ctrl+k", "ctrl+3"], "command": "fold_by_level", "args": {"level": 3} },
  638. { "keys": ["ctrl+k", "ctrl+4"], "command": "fold_by_level", "args": {"level": 4} },
  639. { "keys": ["ctrl+k", "ctrl+5"], "command": "fold_by_level", "args": {"level": 5} },
  640. { "keys": ["ctrl+k", "ctrl+6"], "command": "fold_by_level", "args": {"level": 6} },
  641. { "keys": ["ctrl+k", "ctrl+7"], "command": "fold_by_level", "args": {"level": 7} },
  642. { "keys": ["ctrl+k", "ctrl+8"], "command": "fold_by_level", "args": {"level": 8} },
  643. { "keys": ["ctrl+k", "ctrl+9"], "command": "fold_by_level", "args": {"level": 9} },
  644. { "keys": ["ctrl+k", "ctrl+0"], "command": "unfold_all" },
  645. { "keys": ["ctrl+k", "ctrl+j"], "command": "unfold_all" },
  646. { "keys": ["ctrl+k", "ctrl+t"], "command": "fold_tag_attributes" },
  647.  
  648. { "keys": ["context_menu"], "command": "context_menu" },
  649.  
  650. { "keys": ["alt+c"], "command": "toggle_case_sensitive", "context":
  651. [
  652. { "key": "setting.is_widget", "operator": "equal", "operand": true }
  653. ]
  654. },
  655. { "keys": ["alt+r"], "command": "toggle_regex", "context":
  656. [
  657. { "key": "setting.is_widget", "operator": "equal", "operand": true }
  658. ]
  659. },
  660. { "keys": ["alt+w"], "command": "toggle_whole_word", "context":
  661. [
  662. { "key": "setting.is_widget", "operator": "equal", "operand": true }
  663. ]
  664. },
  665. { "keys": ["alt+a"], "command": "toggle_preserve_case", "context":
  666. [
  667. { "key": "setting.is_widget", "operator": "equal", "operand": true }
  668. ]
  669. },
  670.  
  671. // Find panel key bindings
  672. { "keys": ["enter"], "command": "find_next", "context":
  673. [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
  674. },
  675. { "keys": ["shift+enter"], "command": "find_prev", "context":
  676. [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
  677. },
  678. { "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true},
  679. "context": [{"key": "panel", "operand": "find"}, {"key": "panel_has_focus"}]
  680. },
  681.  
  682. // Replace panel key bindings
  683. { "keys": ["enter"], "command": "find_next", "context":
  684. [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
  685. },
  686. { "keys": ["shift+enter"], "command": "find_prev", "context":
  687. [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
  688. },
  689. { "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true},
  690. "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
  691. },
  692. { "keys": ["ctrl+alt+enter"], "command": "replace_all", "args": {"close_panel": true},
  693. "context": [{"key": "panel", "operand": "replace"}, {"key": "panel_has_focus"}]
  694. },
  695.  
  696. // Incremental find panel key bindings
  697. { "keys": ["enter"], "command": "hide_panel", "context":
  698. [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}]
  699. },
  700. { "keys": ["shift+enter"], "command": "find_prev", "context":
  701. [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}]
  702. },
  703. { "keys": ["alt+enter"], "command": "find_all", "args": {"close_panel": true},
  704. "context": [{"key": "panel", "operand": "incremental_find"}, {"key": "panel_has_focus"}]
  705. },
  706.  
  707. // HTML, XML close tag
  708. { "keys": ["/"], "command": "close_tag", "args": { "insert_slash": true }, "context":
  709. [
  710. { "key": "selector", "operator": "equal", "operand": "(text.html, text.xml) - string - comment", "match_all": true },
  711. { "key": "preceding_text", "operator": "regex_match", "operand": ".*<$", "match_all": true },
  712. { "key": "setting.auto_close_tags" }
  713. ]
  714. }
  715. ]

sublime text 3  v-3103 修改默认快捷键设置 采用的eclipse风格 大家可根据个人习惯来修改

  1. [
  2. //=======================我的快捷键=======================//
  3. // 删除当前行
  4. { "keys": ["ctrl+d"], "command":"run_macro_file", "args": {"file":"Packages/Default/Delete Line.sublime-macro"} },
  5. // 复制选中行到行后||新增一行
  6. { "keys": ["ctrl+alt+down"], "command":"duplicate_line" },
  7. // 选词(按住-继续选择下个相同的字符串)
  8. { "keys": ["ctrl+g"], "command":"find_under_expand" },
  9. // gb一次选中所有的
  10. { "keys": ["ctrl+g", "ctrl+b"],"command": "find_all_under" },
  11. // 自动提示、补全
  12. { "keys": ["alt+/"], "command":"auto_complete" },
  13. { "keys": ["alt+/"], "command":"replace_completion_with_auto_complete", "context":
  14. [
  15. { "key": "last_command", "operator":"equal", "operand": "insert_best_completion" },
  16. { "key": "auto_complete_visible", "operator":"equal", "operand": false },
  17. { "key": "setting.tab_completion", "operator":"equal", "operand": true }
  18. ]
  19. },
  20. // 与上行互换
  21. { "keys": ["alt+up"], "command":"swap_line_up" },
  22. // 与下行互换
  23. { "keys": ["alt+down"], "command":"swap_line_down" },
  24. { "keys": ["alt+/","alt+/"], "command":"insert_best_completion" },
  25. //与tab键冲突,秒之
  26. { "keys": ["shift+tab"], "command":"insert_best_completion", "args": {"default":"\t", "exact": true} },
  27. { "keys": ["shift+tab"], "command":"insert_best_completion", "args": {"default":"\t", "exact": false},
  28. "context":
  29. [
  30. { "key": "setting.tab_completion", "operator":"equal", "operand": true }
  31. ]
  32. },
  33. { "keys": ["shift+tab"], "command":"replace_completion_with_next_completion", "context":
  34. [
  35. { "key": "last_command", "operator":"equal", "operand": "insert_best_completion" },
  36. { "key": "setting.tab_completion", "operator":"equal", "operand": true }
  37. ]
  38. },
  39. { "keys": ["shift+tab"], "command":"reindent", "context":
  40. [
  41. { "key": "setting.auto_indent", "operator":"equal", "operand": true },
  42. { "key": "selection_empty", "operator":"equal", "operand": true, "match_all": true },
  43. { "key": "preceding_text", "operator":"regex_match", "operand": "^$","match_all": true },
  44. { "key": "following_text", "operator":"regex_match", "operand": "^$","match_all": true }
  45. ]
  46. },
  47. { "keys": ["shift+tab"], "command":"indent", "context":
  48. [
  49. { "key": "text", "operator":"regex_contains", "operand": "\n" }
  50. ]
  51. },
  52. { "keys": ["shift+tab"], "command":"next_field", "context":
  53. [
  54. { "key": "has_next_field", "operator":"equal", "operand": true }
  55. ]
  56. },
  57. { "keys": ["shift+tab"], "command":"commit_completion", "context":
  58. [
  59. { "key": "auto_complete_visible" },
  60. { "key": "setting.auto_complete_commit_on_tab" }
  61. ]
  62. },
  63. //移动光标
  64. { "keys": ["alt+l"], "command": "move","args": {"by": "characters", "forward":false} },
  65. { "keys": ["alt+r"], "command": "move","args": {"by": "characters", "forward":true} },
  66. { "keys": ["alt+u"], "command": "move","args": {"by": "lines", "forward":false} },
  67. { "keys": ["alt+d"], "command": "move","args": {"by": "lines", "forward":true} },
  68. { "keys": ["shift+alt+l" ], "command":"move", "args": {"by": "characters","forward": false, "extend": true} },
  69. { "keys": ["shift+alt+r"], "command":"move", "args": {"by": "characters","forward": true, "extend": true} },
  70. { "keys": ["shift+alt+u" ], "command":"move", "args": {"by": "lines","forward": false, "extend": true} },
  71. { "keys": ["shift+alt+d" ], "command":"move", "args": {"by": "lines","forward": true, "extend": true} },
  72. //移动光标到行首或行末
  73. { "keys": ["alt+b"], "command":"move_to", "args": {"to": "bol","extend": false} },
  74. { "keys": ["alt+e"], "command":"move_to", "args": {"to": "eol","extend": false} },
  75. { "keys": ["shift+alt+b"], "command":"move_to", "args": {"to": "bol","extend": true} },
  76. { "keys": ["shift+alt+e"], "command":"move_to", "args": {"to": "eol","extend": true} },
  77. //滚屏
  78. { "keys": ["alt+g"], "command":"scroll_lines", "args": {"amount": 1.0 } },
  79. { "keys": ["alt+h"], "command":"scroll_lines", "args": {"amount": -1.0 } },
  80. //缩进
  81. { "keys": ["shift+tab"], "command":"unindent" },

 //格式化代码
 {"keys": ["ctrl+alt+f"], "command": "reindent" , "args": {"single_line": false}},

  1. ]

原文地址:http://blog.csdn.net/ablipan/article/details/17138045

参考地址:http://blog.jobbole.com/82527/ 【附带gif演示 lz喜欢】

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 免打扰模式

//----------------------------------------------------------------------------

  • Ctrl+Shift+P:打开命令面板
  • Ctrl+P:搜索项目中的文件
  • Ctrl+G:跳转到第几行
  • Ctrl+W:关闭当前打开文件
  • Ctrl+Shift+W:关闭所有打开文件
  • Ctrl+Shift+V:粘贴并格式化
  • Ctrl+D:选择单词,重复可增加选择下一个相同的单词
  • Ctrl+L:选择行,重复可依次增加选择下一行
  • Ctrl+Shift+L:选择多行
  • Ctrl+Shift+Enter:在当前行前插入新行
  • Ctrl+X:删除当前行
  • Ctrl+M:跳转到对应括号
  • Ctrl+U:软撤销,撤销光标位置
  • Ctrl+J:选择标签内容
  • Ctrl+F:查找内容
  • Ctrl+Shift+F:查找并替换
  • Ctrl+H:替换
  • Ctrl+R:前往 method
  • Ctrl+N:新建窗口
  • Ctrl+K+B:开关侧栏
  • Ctrl+Shift+M:选中当前括号内容,重复可选着括号本身
  • Ctrl+F2:设置/删除标记
  • Ctrl+/:注释当前行
  • Ctrl+Shift+/:当前位置插入注释
  • Ctrl+Alt+/:块注释,并Focus到首行,写注释说明用的
  • Ctrl+Shift+A:选择当前标签前后,修改标签用的
  • F11:全屏
  • Shift+F11:全屏免打扰模式,只编辑当前文件
  • Alt+F3:选择所有相同的词
  • Alt+.:闭合标签
  • Alt+Shift+数字:分屏显示
  • Alt+数字:切换打开第N个文件
  • Shift+右键拖动:光标多不,用来更改或插入列内容
  • 鼠标的前进后退键可切换Tab文件
  • 按Ctrl,依次点击或选取,可需要编辑的多个位置
  • 按Ctrl+Shift+上下键,可替换行

sublime text 3快捷键设置的更多相关文章

  1. 在sublime text 3中设置浏览器预览快捷键

    1.安装 SideBarEnhancements ctrl+shift+p,进入命令模式,然后输入package control(或者直接输 pci 或许也行),回车: 输入:SideBarEnhan ...

  2. sublime text 3 快捷键大全以及配置编译环境

    Sublime text 3是码农最喜欢的代码编辑器,每天和代码打交道,必先利其器,掌握基本的代码编辑器的快捷键,能让你打码更有效率.刚开始可能有些生疏,只要花一两个星期坚持使用并熟悉这些常用的快捷键 ...

  3. sublime text 3 快捷键大全

    Sublime Text 3 快捷键精华版 Ctrl+Shift+P:打开命令面板Ctrl+P:搜索项目中的文件Ctrl+G:跳转到第几行Ctrl+W:关闭当前打开文件Ctrl+Shift+W:关闭所 ...

  4. sublime text 3 快捷键大全以及配置编译环境(转)

    Sublime text 3是码农最喜欢的代码编辑器,每天和代码打交道,必先利其器,掌握基本的代码编辑器的快捷键,能让你打码更有效率.刚开始可能有些生疏,只要花一两个星期 坚持使用并熟悉这些常用的快捷 ...

  5. sublime text常用快捷键及多行光标批量操作教程

    sublime text常用快捷键及多行光标批量操作教程   版权声明:本文为博主原创文章,未经博主允许不得转载. https://blog.csdn.net/a772304419/article/d ...

  6. Sublime Text 3 快捷键 一览

    Sublime Text 3 快捷键精华版 Ctrl+Shift+P:打开命令面板 Ctrl+P:搜索项目中的文件 Ctrl+G:跳转到第几行 Ctrl+W:关闭当前打开文件 Ctrl+Shift+W ...

  7. Sublime Text 3 快捷键(转载)

    本文转自:https://segmentfault.com/a/1190000002570753 (欢迎阅读原文,侵删) Sublime Text 3 快捷键精华版 Ctrl+Shift+P:打开命令 ...

  8. Sublime Text 2 快捷键 (windows)

    转自:http://istyles.blog.163.com/blog/static/1811003892011828111418654/ Lucifr翻译了 Sublime Text 2 快捷键 M ...

  9. sublime text 全局搜索快捷键

    sublime text 全局搜索快捷键 ctrl+shift+F

随机推荐

  1. android 欢迎界面的淡入效果

    package com.example.spinnertest; import android.app.Activity; import android.content.Intent; import ...

  2. htmlparser 精确提取的一些代码

    一. ConnectionManager manager = Page.getConnectionManager(); Parser parser = new Parser(manager .open ...

  3. nginx错误汇总

    一.Nginx出现413 Request Entity Too Large错误解决方法 Nginx出现的413 Request Entity Too Large错误,这个错误一般在上传文件的时候出现, ...

  4. pop3

    POP3_Client pop3 = new POP3_Client(); pop3, false); pop3.Authenticate("username", "pa ...

  5. POJ ---3070 (矩阵乘法求Fibonacci 数列)

    Fibonacci   Description In the Fibonacci integer sequence, F0 = 0, F1 = 1, and Fn = Fn − 1 + Fn − 2  ...

  6. Loadrunner 录制成功,但是脚本并没有产生

    LR 在用IE 录制脚本已经成功,但是结束录制以后,并没有脚本产生,在产生脚本log 中提示: [Net An. Error    (14c8:1cec)] Request Connection: R ...

  7. Java笔记(二十四)……集合工具类Collections&Arrays

    Collections 集合框架的工具类,方法全部为静态 Collections与Collection的区别 Collection是集合框架的一个顶层接口,里面定义了单列集合的共性方法 Collect ...

  8. HDU3727 - Jewel(主席树)

    题目大意 对一个序列进行以下四种操作: 1.Insert x 在序列尾部插入x 2.Query_1 s t k 查询区间[s,t]的第k小 3.Query_2 x 查询x的在序列中排名 4.Query ...

  9. C# WinForm多线程(三)---- Control.Invoke[转]

    开发中遇到更新Winform中控件假死问题,通过看了这篇文章了解了原理,感谢!此处标记起来,以备查看! 原文地址:http://www.cnblogs.com/joechen/archive/2009 ...

  10. 注册表-在IE上永久显示我的名字"www.baidu.com - 朱建强"

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\新建字符串 名为:window title值为:"朱建强"