gaogaotiantian · GitHub

Feature or enhancement

Proposal:

PyREPL has a nice auto-indent when working on a multiline code. We can't fully utilize that on pdb yet, but we can do something similar.

Basically we can achieve this:

(Pdb) def f():
...   <auto-indent>
...   <same-indent>

The only thing that we can't do as good as PyREPL is to intercept backspace and remove a full indent instead of a space - I think this would be a bit too complicated and nor worth it.

Overall I believe this gives users a better experience.

Has this already been discussed elsewhere?

This is a minor feature, which does not need previous discussion elsewhere

Links to previous discussion of this feature:

No response

Linked PRs

Read the original on github.com ↗