Editor (markdown and code editors, CodeMirror, etc.) settings

Editor (markdown and code editors, CodeMirror, etc.) settings#

The default behaviour in the code and markdown cell editors has some annoying foibles. For example, brackets aren’t necessarily closed, highlighting text and clicking an open bracket deletes the text rather than wrapping it in brackets, etc.)

The following settings are recommended:

  • in .jupyter/lab/user-settings/@jupyterlab/codemirror-extension/plugin.jupyterlab-settings:

{
    "defaultConfig": {
        "autoClosingBrackets": true,
        "codeFolding": false,
        "highlightActiveLine": false
    }
}
  • in .jupyter/lab/user-settings/@jupyterlab/fileditor-extension/plugin.jupyterlab-settings:

{
    "editorConfig": {
        "autoClosingBrackets": true,
        "codeFolding": false
    }
}
  • in .jupyter/lab/user-settings/@jupyterlab/notebook-extension/tracker.jupyterlab-settings:

{
    "codeCellConfig": {
        "autoClosingBrackets": true,
        "lineNumbers": false,
        "lineWrap": false
    },
    "defaultCell": "code",
    "markdownCellConfig": {
        "lineNumbers": false,
        "matchBrackets": true
    }
}