1. 程式人生 > >快捷鍵設置 keyiing.json

快捷鍵設置 keyiing.json

transform log 駝峰 默認 ack ctrl+s 去除空格 process bre

  1. // 快捷鍵設置 keyiing.json
  2. // 將鍵綁定放入此文件中以覆蓋默認值
  3. [
  4. ????/* // 轉換大寫
  5. ????{
  6. ????????"key" : "ctrl+shift+u",
  7. ????????"command" : "editor.action.transformToUppercase",
  8. ????????"when" : "editorTextFocus"
  9. ????},
  10. ????// 轉換小寫
  11. ????{
  12. ????????"key" : "ctrl+shift+l",
  13. ????????"command" : "editor.action.transformToLowercase",
  14. ????????"when" : "editorTextFocus"
  15. ????},*/
  16. ????// 定制與 sublime 相同的大小寫轉換快捷鍵,需安裝 TextTransform 插件
  17. ????{
  18. ????????"key": "ctrl+k ctrl+u",
  19. ????????"command": "uppercase",
  20. ????????"when": "editorTextFocus"
  21. ????},
  22. ????{
  23. ????????"key": "ctrl+k ctrl+l",
  24. ????????"command": "lowercase",
  25. ????????"when
    ": "editorTextFocus"
  26. ????},
  27. ????// ctrl+space 被切換輸入法快捷鍵占用
  28. ????// {
  29. ????// "key": "ctrl+alt+space",
  30. ????// "command": "editor.action.triggerSuggest",
  31. ????// "when": "editorTextFocus"
  32. ????// },
  33. ????// ctrl+d 刪除一行
  34. ????{
  35. ????????"key": "ctrl+d",
  36. ????????"command": "editor.action.deleteLines
    ",
  37. ????????"when": "editorTextFocus"
  38. ????},
  39. ????// 選中高亮
  40. ????{
  41. ????????"key": "alt+d",
  42. ????????"command": "editor.action.addSelectionToNextFindMatch",
  43. ????????"when": "editorFocus"
  44. ????},
  45. ????// ctrl+shift+/多行註釋
  46. ????{
  47. ????????"key": "ctrl+shift+/",
  48. ????????"command": "editor.action.blockComment",
  49. ????????"when": "editorTextFocus"
  50. ????},
  51. ????// 高亮文本編輯顏色
  52. ????{
  53. ????????"key": "alt+q",
  54. ????????"command": "textmarker.markText",
  55. ????????"when": "editorTextFocus"
  56. ????},
  57. ????// 清除文本編輯顏色
  58. ????{
  59. ????????"key": "alt+z",
  60. ????????"command": "textmarker.clearAllHighlight",
  61. ????????"when": "editorTextFocus"
  62. ????},
  63. ????// 註釋table化
  64. ????// {
  65. ????// "key": "alt+t",
  66. ????// "command": "extension.table.formatCurrent",
  67. ????// "when": "editorTextFocus"
  68. ????// },
  69. ????// 格式化熱鍵 覆蓋點擊文件的快捷鍵
  70. ????// {
  71. ????// "key" : "alt+f",
  72. ????// "command": "editor.action.format",
  73. ????// "when" : "editorHasFormattingProvider && editorTextFocus && !editorReadonly"
  74. ????// },
  75. ????// 復制一行到下一行
  76. ????{
  77. ????????// "key" : "ctrl+shift+c",
  78. ????????"key": "alt+c",
  79. ????????// "command": "editor.action.fLinesDownAction",
  80. ????????"command": "editor.action.copyLinesDownAction",
  81. ????????"when": "editorTextFocus"
  82. ????},
  83. ????// 復制一行到下一行
  84. ????{
  85. ????????"key": "alt+j",
  86. ????????"command": "editor.Add.doc.comments",
  87. ????????"when": "editorTextFocus"
  88. ????},
  89. ????// 快速添加註釋信息
  90. ????// {
  91. ????// "key": "alt+j",
  92. ????// // "command": "docthis.documentEverythingVisible"
  93. ????// // "command": "docthis.documentEverything"
  94. ????// "command": "docthis.documentThis"
  95. ????// },
  96. ????// // log日誌打印參數信息
  97. ????// {
  98. ????// "key": "ctrl+t",
  99. ????// "command": "extension.insertLogStatement",
  100. ????// "when": "editorTextFocus"
  101. ????// },
  102. ????// 清除所有log日誌
  103. ????{
  104. ????????"key": "alt+shift+l",
  105. ????????"command": "extension.deleteAllLogStatements"
  106. ????},
  107. ????// 調試快捷鍵 以防占用
  108. ????// {
  109. ????// "key": "ctrl+shift+d",
  110. ????// "command": "workbench.view.debug"
  111. ????// },
  112. ????//逗號分隔
  113. ????{
  114. ????????"key": "alt+shift+w",
  115. ????????"command": "words"
  116. ????},
  117. ????//駝峰命名小寫下劃線
  118. ????{
  119. ????????"key": "alt+n",
  120. ????????"command": "snakeCase"
  121. ????},
  122. ????// // 替換選擇
  123. ????// {
  124. ????// "key": "alt+r",
  125. ????// "command": "replace"
  126. ????// },
  127. ????//駝峰命名小寫
  128. ????{
  129. ????????"key": "alt+e",
  130. ????????"command": "camelCase"
  131. ????},
  132. ????//括號匹配
  133. ????{
  134. ????????"key": "alt+m",
  135. ????????"command": "expand-selection-to-scope.expand"
  136. ????},
  137. ????//快捷建立方法method
  138. ????{
  139. ????????"key": "alt+f",
  140. ????????"command": "cmstead.jsRefactor.wrapInExecutedFunction"
  141. ????},
  142. ????// json轉對象
  143. ????// {
  144. ????// "key": "ctrl+shift+j",
  145. ????// "command": "jsonToJSObject.convert"
  146. ????// },
  147. ????// 去除空格
  148. ????{
  149. ????????"key": "ctrl+;",
  150. ????????"command": "blankLine.process"
  151. ????},
  152. ????// : = 對齊
  153. ????{
  154. ????????"key": "alt+=",
  155. ????????"command": "alignment.align",
  156. ????????"when": "editorHasSelection"
  157. ????},
  158. ????// 選擇一行 下選擇
  159. ????{
  160. ????????"key": "ctrl+s",
  161. ????????"command": "expandLineSelection",
  162. ????????"when": "editorTextFocus"
  163. ????},
  164. ????// //調試debug
  165. ????// {
  166. ????// "key": "alt+3",
  167. ????// "command": "workbench.action.debug.restart",
  168. ????// "when": "inDebugMode"
  169. ????// },
  170. ????// {
  171. ????// "key": "ctrl+t",
  172. ????// "command": "extension.translateon",
  173. ????// "when": "editorTextFocus"
  174. ????// }
  175. ????// log日誌打印參數信息
  176. ????{
  177. ????????"key": "ctrl+enter",
  178. ????????"command": "extension.complete-statement",
  179. ????????"when": "editorTextFocus"
  180. ????},
  181. ????// log日誌打印參數信息
  182. ????{
  183. ????????"key": "alt+w",
  184. ????????"command": "extension.insertLogStatement",
  185. ????????"when": "editorTextFocus"
  186. ????},
  187. ????// tab element鍵設置
  188. ????{
  189. ????????"key": "alt+a",
  190. ????????"command": "editor.emmet.action.expandAbbreviation",
  191. ????????"when": "config.emmet.triggerExpansionOnTab && editorTextFocus && !config.emmet.useNewEmmet && !editorHasMultipleSelections && !editorHasSelection && !editorReadonly && !editorTabMovesFocus"
  192. ????}
  193. ]

?

快捷鍵設置 keyiing.json