Skip to content

[Feature request] Auto-indentation in Python #15122

@BlueBatSamurai

Description

@BlueBatSamurai

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

In Python it's nessessary to indent every statement inside an if, loop, function definition or similar block.

Therefore e.g. IDLE automatically indents the next line with an additional tab when you press enter after a colon.
But apparently Notepad++ doesn't support this.

Describe the solution you'd like.

It would be very helpful if you could add this feature to Notepad++ too.
(But maybe only for files in Python language, as in other contexts you may not want this to happen.
And you should be able to disable it in the settings.)

Debug Information

Notepad++ v8.6.5   (64-bit)
Build time : Mar 29 2024 - 17:04:43
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
OS Name : Windows 10 Pro (64-bit
OS Version : 22H2
OS Build : 19045.4291
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions