Guest User

Untitled

a guest
Jun 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.36 KB | None | 0 0
  1. // Place your key bindings in this file to overwrite the defaults
  2. // File path on Ubuntu is $HOME/.config/Code/User/keybindings.json
  3.  
  4. [
  5. // ctrl+shift to navigate among UI elements
  6. {
  7. "key": "ctrl+shift+up",
  8. "command": "-workbench.action.terminal.scrollUp",
  9. "when": "terminalFocus"
  10. },
  11. {
  12. "key": "ctrl+shift+o",
  13. "command": "-workbench.action.gotoSymbol",
  14. },
  15. {
  16. "key": "ctrl+shift+o",
  17. "command": "workbench.action.output.toggleOutput",
  18. },
  19. // ctrl+g chord to do fancy goto operations
  20. {
  21. "key": "ctrl+g",
  22. "command": "-workbench.action.gotoLine",
  23. },
  24. {
  25. "key": "ctrl+g g",
  26. "command": "workbench.action.gotoLine",
  27. },
  28. {
  29. "key": "ctrl+g o",
  30. "command": "workbench.action.gotoSymbol",
  31. },
  32. {
  33. "key": "ctrl+g d",
  34. "command": "C_Cpp.GoToDeclaration",
  35. "when": "editorTextFocus && editorLangId == 'cpp'"
  36. },
  37. {
  38. "key": "ctrl+f12",
  39. "command": "-C_Cpp.GoToDeclaration",
  40. "when": "editorTextFocus && editorLangId == 'cpp'"
  41. },
  42. {
  43. "key": "ctrl+g d",
  44. "command": "C_Cpp.GoToDeclaration",
  45. "when": "editorTextFocus && editorLangId == 'c'"
  46. },
  47. {
  48. "key": "ctrl+f12",
  49. "command": "-C_Cpp.GoToDeclaration",
  50. "when": "editorTextFocus && editorLangId == 'c'"
  51. },
  52. {
  53. "key": "ctrl+g d",
  54. "command": "editor.action.goToDeclaration",
  55. "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor && editorLangId != 'cpp' && editorLangId !='c'"
  56. },
  57. {
  58. "key": "f12",
  59. "command": "-editor.action.goToDeclaration",
  60. "when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
  61. },
  62. {
  63. "key": "n",
  64. "command": "editor.action.diffReview.next",
  65. "when": "isInDiffEditor"
  66. },
  67. {
  68. "key": "f7",
  69. "command": "-editor.action.diffReview.next",
  70. "when": "isInDiffEditor"
  71. },
  72. {
  73. "key": "ctrl+g n",
  74. "command": "editor.action.marker.nextInFiles",
  75. "when": "editorFocus && !editorReadonly"
  76. },
  77. {
  78. "key": "f8",
  79. "command": "-editor.action.marker.nextInFiles",
  80. "when": "editorFocus && !editorReadonly"
  81. },
  82. {
  83. "key": "f7",
  84. "command": "-editor.action.wordHighlight.next",
  85. "when": "editorTextFocus && hasWordHighlights"
  86. },
  87. {
  88. "key": "p",
  89. "command": "editor.action.diffReview.prev",
  90. "when": "isInDiffEditor"
  91. },
  92. {
  93. "key": "shift+f7",
  94. "command": "-editor.action.diffReview.prev",
  95. "when": "isInDiffEditor"
  96. },
  97. {
  98. "key": "ctrl+g p",
  99. "command": "editor.action.marker.prevInFiles",
  100. "when": "editorFocus && !editorReadonly"
  101. },
  102. {
  103. "key": "shift+f8",
  104. "command": "-editor.action.marker.prevInFiles",
  105. "when": "editorFocus && !editorReadonly"
  106. },
  107. {
  108. "key": "shift+f7",
  109. "command": "-editor.action.wordHighlight.prev",
  110. "when": "editorTextFocus && hasWordHighlights"
  111. },
  112. {
  113. "key": "ctrl+g s",
  114. "command": "workbench.action.showAllSymbols"
  115. },
  116. {
  117. "key": "ctrl+t",
  118. "command": "-workbench.action.showAllSymbols"
  119. },
  120. {
  121. "key": "n",
  122. "command": "goToNextReference",
  123. "when": "referenceSearchVisible"
  124. },
  125. {
  126. "key": "f4",
  127. "command": "-goToNextReference",
  128. "when": "referenceSearchVisible"
  129. },
  130. {
  131. "key": "n",
  132. "command": "goToNextReferenceFromEmbeddedEditor",
  133. "when": "inReferenceSearchEditor"
  134. },
  135. {
  136. "key": "f4",
  137. "command": "-goToNextReferenceFromEmbeddedEditor",
  138. "when": "inReferenceSearchEditor"
  139. },
  140. {
  141. "key": "p",
  142. "command": "goToPreviousReference",
  143. "when": "referenceSearchVisible"
  144. },
  145. {
  146. "key": "shift+f4",
  147. "command": "-goToPreviousReference",
  148. "when": "referenceSearchVisible"
  149. },
  150. {
  151. "key": "p",
  152. "command": "goToPreviousReferenceFromEmbeddedEditor",
  153. "when": "inReferenceSearchEditor"
  154. },
  155. {
  156. "key": "shift+f4",
  157. "command": "-goToPreviousReferenceFromEmbeddedEditor",
  158. "when": "inReferenceSearchEditor"
  159. },
  160. {
  161. "key": "ctrl+g t",
  162. "command": "editor.action.goToTypeDefinition"
  163. },
  164. ]
Add Comment
Please, Sign In to add comment