plugin.json 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228
  1. {
  2. "jupyter.lab.setting-icon": "ui-components:text-editor",
  3. "jupyter.lab.setting-icon-label": "Editor",
  4. "jupyter.lab.menus": {
  5. "main": [
  6. {
  7. "id": "jp-mainmenu-file",
  8. "items": [
  9. {
  10. "type": "submenu",
  11. "submenu": {
  12. "id": "jp-mainmenu-file-new",
  13. "items": [
  14. {
  15. "command": "fileeditor:create-new",
  16. "rank": 30
  17. },
  18. {
  19. "command": "fileeditor:create-new-markdown-file",
  20. "rank": 30
  21. }
  22. ]
  23. }
  24. }
  25. ]
  26. },
  27. {
  28. "id": "jp-mainmenu-settings",
  29. "items": [
  30. {
  31. "type": "separator",
  32. "rank": 30
  33. },
  34. {
  35. "type": "submenu",
  36. "submenu": {
  37. "id": "jp-mainmenu-settings-fileeditorindent",
  38. "label": "Text Editor Indentation",
  39. "items": [
  40. {
  41. "command": "fileeditor:change-tabs",
  42. "args": {
  43. "insertSpaces": false,
  44. "size": 4
  45. }
  46. },
  47. {
  48. "command": "fileeditor:change-tabs",
  49. "args": {
  50. "insertSpaces": true,
  51. "size": 1
  52. }
  53. },
  54. {
  55. "command": "fileeditor:change-tabs",
  56. "args": {
  57. "insertSpaces": true,
  58. "size": 2
  59. }
  60. },
  61. {
  62. "command": "fileeditor:change-tabs",
  63. "args": {
  64. "insertSpaces": true,
  65. "size": 4
  66. }
  67. },
  68. {
  69. "command": "fileeditor:change-tabs",
  70. "args": {
  71. "insertSpaces": true,
  72. "size": 8
  73. }
  74. }
  75. ]
  76. },
  77. "rank": 30
  78. },
  79. {
  80. "command": "fileeditor:toggle-autoclosing-brackets-universal",
  81. "rank": 30
  82. },
  83. {
  84. "command": "fileeditor:change-font-size",
  85. "rank": 30,
  86. "args": {
  87. "delta": 1,
  88. "isMenu": true
  89. }
  90. },
  91. {
  92. "command": "fileeditor:change-font-size",
  93. "rank": 30,
  94. "args": {
  95. "delta": -1,
  96. "isMenu": true
  97. }
  98. }
  99. ]
  100. }
  101. ],
  102. "context": [
  103. {
  104. "command": "fileeditor:create-console",
  105. "selector": ".jp-FileEditor"
  106. },
  107. {
  108. "command": "fileeditor:markdown-preview",
  109. "selector": ".jp-FileEditor"
  110. },
  111. {
  112. "command": "fileeditor:undo",
  113. "selector": ".jp-FileEditor",
  114. "rank": 1
  115. },
  116. {
  117. "command": "fileeditor:redo",
  118. "selector": ".jp-FileEditor",
  119. "rank": 2
  120. },
  121. {
  122. "command": "fileeditor:cut",
  123. "selector": ".jp-FileEditor",
  124. "rank": 3
  125. },
  126. {
  127. "command": "fileeditor:copy",
  128. "selector": ".jp-FileEditor",
  129. "rank": 4
  130. },
  131. {
  132. "command": "fileeditor:paste",
  133. "selector": ".jp-FileEditor",
  134. "rank": 5
  135. },
  136. {
  137. "command": "fileeditor:select-all",
  138. "selector": ".jp-FileEditor",
  139. "rank": 6
  140. }
  141. ]
  142. },
  143. "title": "Text Editor",
  144. "description": "Text editor settings.",
  145. "definitions": {
  146. "editorConfig": {
  147. "properties": {
  148. "autoClosingBrackets": {
  149. "type": "boolean"
  150. },
  151. "codeFolding": {
  152. "type": "boolean"
  153. },
  154. "cursorBlinkRate": {
  155. "type": "number",
  156. "title": "Cursor blinking rate",
  157. "description": "Half-period in milliseconds used for cursor blinking. The default blink rate is 530ms. By setting this to zero, blinking can be disabled. A negative value hides the cursor entirely."
  158. },
  159. "fontFamily": {
  160. "type": ["string", "null"]
  161. },
  162. "fontSize": {
  163. "type": ["integer", "null"],
  164. "minimum": 1,
  165. "maximum": 100
  166. },
  167. "insertSpaces": {
  168. "type": "boolean"
  169. },
  170. "lineHeight": {
  171. "type": ["number", "null"]
  172. },
  173. "lineNumbers": {
  174. "type": "boolean"
  175. },
  176. "lineWrap": {
  177. "type": "string",
  178. "enum": ["off", "on", "wordWrapColumn", "bounded"]
  179. },
  180. "matchBrackets": {
  181. "type": "boolean"
  182. },
  183. "readOnly": {
  184. "type": "boolean"
  185. },
  186. "rulers": {
  187. "type": "array",
  188. "items": {
  189. "type": "number"
  190. }
  191. },
  192. "tabSize": {
  193. "type": "number"
  194. },
  195. "wordWrapColumn": {
  196. "type": "integer"
  197. }
  198. },
  199. "additionalProperties": false,
  200. "type": "object"
  201. }
  202. },
  203. "properties": {
  204. "editorConfig": {
  205. "title": "Editor Configuration",
  206. "description": "The configuration for all text editors.\nIf `fontFamily`, `fontSize` or `lineHeight` are `null`,\nvalues from current theme are used.",
  207. "$ref": "#/definitions/editorConfig",
  208. "default": {
  209. "autoClosingBrackets": false,
  210. "codeFolding": false,
  211. "cursorBlinkRate": 530,
  212. "fontFamily": null,
  213. "fontSize": null,
  214. "insertSpaces": true,
  215. "lineHeight": null,
  216. "lineNumbers": true,
  217. "lineWrap": "on",
  218. "matchBrackets": true,
  219. "readOnly": false,
  220. "rulers": [],
  221. "tabSize": 4,
  222. "wordWrapColumn": 80
  223. }
  224. }
  225. },
  226. "additionalProperties": false,
  227. "type": "object"
  228. }