ipython / ipython

Official repository for IPython itself. Other repos in the IPython organization contain things like the website, documentation builds, etc.

Home Page:https://ipython.readthedocs.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to change `IPython.terminal.shortcuts.newline_autoindent` to 2 extra spaces?

sci-42ver opened this issue · comments

In the doc, it says

That is to say, indent by 4 extra space after a function definition, class definition, context manager

Then in ipython, for example when I write one for loop when pressing enter after for ...:, then 4 extra spaces will be inserted. Is there one way to change this behavior to 2 spaces?