Skip to content

Instantly share code, notes, and snippets.

@mindryu
Created May 17, 2019 03:11
Show Gist options
  • Save mindryu/a9b54b4854708548a0ab750982153413 to your computer and use it in GitHub Desktop.
Save mindryu/a9b54b4854708548a0ab750982153413 to your computer and use it in GitHub Desktop.
Jupyterlab Keyboard Shortcut
{
// 오토 포맷
"jupyterlab_code_formatter:black":{
"command":"jupyterlab_code_formatter:black",
"keys": [
"Ctrl S",
"Ctrl S"
],
"selector": ".jp-Notebook.jp-mod-editMode"
},
// Move cell up
"notebook:move-cell-up": {
"selector": ".jp-Notebook:focus",
"command": "notebook:move-cell-up",
"keys": [
"Ctrl ArrowUp"
]
},
// Move cell down
"notebook:move-cell-down": {
"selector": ".jp-Notebook:focus",
"command": "notebook:move-cell-down",
"keys": [
"Ctrl ArrowDown"
]
},
// Convert to markdown
"notebook:change-cell-to-markdown": {
"command": "notebook:change-cell-to-markdown",
"keys": [
"Ctrl M"
],
"selector": ".jp-Notebook:focus",
"title": "Change to Markdown Cell Type",
"category": "Notebook Cell Operations"
},
// Convert to Code
"notebook:change-cell-to-code": {
"command": "notebook:change-cell-to-code",
"keys": [
"Ctrl C"
],
"selector": ".jp-Notebook:focus",
"title": "Change to Code Cell Type",
"category": "Notebook Cell Operations"
},
// Merge Cell
"notebook:merge-cells": {
"command": "notebook:merge-cells",
"keys": [
"Ctrl Shift M"
],
"selector": ".jp-Notebook:focus",
"title": "Merge Selected Cells",
"category": "Notebook Cell Operations"
},
// Save as
"docmanager:save-as": {
"command": "docmanager:save-as",
"keys": [
"Ctrl Alt S"
],
"selector": "body",
"title": "Save As",
"category": "File Operations"
},
// Split Cell
"notebook:split-cell-at-cursor": {
"command": "notebook:split-cell-at-cursor",
"keys": [
"Ctrl Shift S"
],
"selector": ".jp-Notebook.jp-mod-editMode",
"title": "Split Cell at Cursor",
"category": "Notebook Operations"
},
// Console : Excute
"console:run-forced": {
"command": "console:run-forced",
"keys": [
"Enter"
],
"selector": ".jp-CodeConsole-promptCell",
"title": "Run Cell (forced)",
"category": "Console"
},
// Console : Line Break
"console:linebreak": {
"command": "console:linebreak",
"keys": [
"Shift Enter"
],
"selector": ".jp-CodeConsole-promptCell",
"title": "Insert Line Break",
"category": "Console"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment