Skip to content

Auto-indent for pdb's multi-line mode #133349

Closed
@gaogaotiantian

Description

@gaogaotiantian

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    stdlibPython modules in the Lib dirtype-featureA feature request or enhancement

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions