Skip to content

Commit

Permalink
Merge pull request jupyter#5889 from jmandreoli/patch-1
Browse files Browse the repository at this point in the history
Added section for file editor configuration
  • Loading branch information
Zsailer authored Dec 9, 2020
2 parents c5a0f80 + 9e62e2d commit 0c83c9d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/source/frontend_config.rst
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,18 @@ to reissue the patch on new notebooks.
<https://codemirror.net/doc/manual.html#option_indentUnit>`_ which are available
for configuration.

You can similarly change the options of the file editor by entering the following
snippet in the browser's Javascript console once (from a file editing page).::

var config = Jupyter.editor.config
var patch = {
Editor: {
codemirror_options: {
indentUnit: 2
}
}
}
config.update(patch)

Example - Restoring the notebook's default indentation
------------------------------------------------------
Expand Down

0 comments on commit 0c83c9d

Please sign in to comment.