Guest User

Untitled

a guest
Oct 22nd, 2017
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.89 KB | None | 0 0
  1. // Place your key bindings in this file to overwrite the defaults
  2. [
  3. // Start Toggle Explorer View
  4. { "key": "cmd+1", "command": "workbench.view.explorer" },
  5. { "key": "cmd+2", "command": "workbench.view.search" },
  6. { "key": "cmd+3", "command": "workbench.view.scm" },
  7. { "key": "cmd+4", "command": "workbench.view.debug" },
  8. { "key": "cmd+5", "command": "workbench.view.extensions" },
  9. { "key": "cmd+b", "command": "workbench.action.toggleSidebarVisibility" },
  10. // End Toggle Explorer View
  11. { "key": "cmd+1", "command": "workbench.view.explorer" },
  12. // Start Toggle sidebar focus
  13. {
  14. "key": "cmd+m `",
  15. "command": "workbench.view.explorer",
  16. "when": "explorerViewletVisible"
  17. },
  18. {
  19. "key": "cmd+m `",
  20. "command": "workbench.view.search",
  21. "when": "searchViewletVisible"
  22. },
  23. {
  24. "key": "cmd+m `",
  25. "command": "workbench.action.toggleSidebarVisibility",
  26. "when": "!explorerViewletVisible && !searchViewletVisible"
  27. },
  28. // End Toggle sidebar focus
  29. // Start FocusEditorGroup
  30. {
  31. "key": "cmd+m 1",
  32. "command": "workbench.action.focusFirstEditorGroup"
  33. },
  34. {
  35. "key": "cmd+m 2",
  36. "command": "workbench.action.focusSecondEditorGroup"
  37. },
  38. {
  39. "key": "cmd+m 3",
  40. "command": "workbench.action.focusThirdEditorGroup"
  41. },
  42. {
  43. "key": "cmd+m m",
  44. "command": "workbench.action.minimizeOtherEditors"
  45. },
  46. {
  47. "key": "cmd+m b",
  48. "command": "workbench.action.toggleSidebarVisibility"
  49. },
  50. {
  51. "key": "cmd+m cmd+m",
  52. "command": "workbench.action.evenEditorWidths"
  53. },
  54. {
  55. "key": "cmd+m e",
  56. "command": "workbench.files.action.focusOpenEditorsView"
  57. },
  58. {
  59. "key": "cmd+m f",
  60. "command": "workbench.files.action.focusFilesExplorer"
  61. },
  62. {
  63. "key": "h",
  64. "command": "list.collapse",
  65. "when": "listFocus"
  66. },
  67. {
  68. "key": "l",
  69. "command": "list.expand",
  70. "when": "listFocus"
  71. },
  72. {
  73. "key": "cmd+shift+n",
  74. "command": "explorer.newFolder",
  75. "when": "listFocus"
  76. },
  77. {
  78. "key": "cmd+m l",
  79. "command": "workbench.action.focusNextGroup"
  80. },
  81. {
  82. "key": "cmd+m h",
  83. "command": "workbench.action.focusPreviousGroup"
  84. },
  85. {
  86. "key": "cmd+m s",
  87. "command": "actions.find",
  88. "when": "findWidgetVisible"
  89. },
  90. // End FocusEditorGroup
  91. // Start Manage Tabs
  92. {
  93. "key": "cmd+k left",
  94. "command": "workbench.action.moveActiveEditorGroupLeft"
  95. },
  96. {
  97. "key": "cmd+k right",
  98. "command": "workbench.action.moveActiveEditorGroupRight"
  99. },
  100. {
  101. "key": "cmd+k shift+cmd+left",
  102. "command": "workbench.action.moveEditorLeftInGroup"
  103. },
  104. {
  105. "key": "cmd+k shift+cmd+right",
  106. "command": "workbench.action.moveEditorRightInGroup"
  107. },
  108. // End Manage Tabs
  109. // Start Previous / Next actions
  110. {
  111. "key": "cmd+down",
  112. "command": "search.action.focusNextSearchResult",
  113. "when": "searchViewletVisible"
  114. },
  115. {
  116. "key": "cmd+up",
  117. "command": "search.action.focusPreviousSearchResult",
  118. "when": "searchViewletVisible"
  119. },
  120. // End Previous / Next actions
  121. // Start quickOpenSelect
  122. {
  123. "key": "ctrl+`",
  124. "command": "workbench.action.quickOpenNavigatePrevious",
  125. "when": "inQuickOpen"
  126. },
  127. {
  128. "key": "ctrl+tab",
  129. "command": "workbench.action.quickOpenNavigateNext",
  130. "when": "inQuickOpen"
  131. },
  132. // End quickOpenSelect
  133. // Start Presentation mode
  134. {
  135. "key": "cmd+=",
  136. "command": "workbench.action.zoomIn"
  137. },
  138. {
  139. "key": "cmd+-",
  140. "command": "workbench.action.zoomOut"
  141. },
  142. {
  143. "key": "cmd+0",
  144. "command": "workbench.action.zoomReset"
  145. },
  146. // End Presentation mode
  147. // Start PyCharm like Commands
  148. {
  149. "key": "ctrl+alt+i",
  150. "command": "editor.action.reindentlines",
  151. "when": "editorFocus && editorLangId != 'html'"
  152. },
  153. {
  154. "key": "ctrl+alt+i",
  155. "command": "HookyQR.beautify",
  156. "when": "editorFocus && editorLangId == 'html'"
  157. },
  158. {
  159. "key": "enter",
  160. "command": "list.select",
  161. "when": "listFocus"
  162. },
  163. {
  164. "key": "f2",
  165. "command": "renameFile",
  166. "when": "explorerViewletVisible && filesExplorerFocus"
  167. },
  168. {
  169. "key": "alt+up",
  170. "command": "editor.action.smartSelect.grow",
  171. "when": "editorTextFocus"
  172. },
  173. {
  174. "key": "alt+down",
  175. "command": "editor.action.smartSelect.shrink",
  176. "when": "editorTextFocus"
  177. },
  178. {
  179. "key": "cmd+f",
  180. "command": "actions.find"
  181. },
  182. {
  183. "key": "alt+f",
  184. "command": "closeFindWidget",
  185. "when": "findWidgetVisible && editorFocus"
  186. },
  187. // End PyCharm like Commands
  188. // Start switch between angular 2 files
  189. {
  190. "key": "alt+s t",
  191. "command": "extension.switchTemplate",
  192. "when": "editorTextFocus"
  193. },
  194. {
  195. "key": "alt+s s",
  196. "command": "extension.switchStyle",
  197. "when": "editorTextFocus"
  198. },
  199. {
  200. "key": "alt+s c",
  201. "command": "extension.switchTS",
  202. "when": "editorTextFocus"
  203. },
  204. // Stop switch between angular 2 files
  205. // Start word navigation
  206. {
  207. "key": "alt+w left",
  208. "command": "subwordNavigation.cursorSubwordLeft",
  209. "when": "editorTextFocus"
  210. },
  211. {
  212. "key": "alt+w right",
  213. "command": "subwordNavigation.cursorSubwordRight",
  214. "when": "editorTextFocus"
  215. },
  216. {
  217. "key": "alt+w shift+left",
  218. "command": "subwordNavigation.cursorSubwordLeftSelect",
  219. "when": "editorTextFocus"
  220. },
  221. {
  222. "key": "alt+w shift+right",
  223. "command": "subwordNavigation.cursorSubwordRightSelect",
  224. "when": "editorTextFocus"
  225. },
  226. {
  227. "key": "alt+w backspace",
  228. "command": "subwordNavigation.deleteSubwordLeft",
  229. "when": "editorTextFocus"
  230. },
  231. {
  232. "key": "alt+w delete",
  233. "command": "subwordNavigation.deleteSubwordRight",
  234. "when": "editorTextFocus"
  235. },
  236. {
  237. "key": "ctrl+alt+d",
  238. "command": "-workbench.view.debug"
  239. },
  240. {
  241. "key": "ctrl+d",
  242. "command": "-workbench.action.debug.run",
  243. "when": "!inDebugMode && !terminalFocus"
  244. },
  245. {
  246. "key": "ctrl+d",
  247. "command": "-list.focusPageDown",
  248. "when": "listFocus"
  249. },
  250. {
  251. "key": "ctrl+d",
  252. "command": "-deleteRight",
  253. "when": "editorTextFocus && !editorReadonly"
  254. },
  255. {
  256. "key": "escape",
  257. "command": "closeParameterHints",
  258. "when": "editorTextFocus && parameterHintsVisible"
  259. }
  260. // {
  261. // "key": "ctrl-`",
  262. // "command": "workbench.action.terminal.toggleTerminal"
  263. // }
  264. // End work navigation
  265. ]
Add Comment
Please, Sign In to add comment