Automatic indentation for Python

  • Hello,

    Out of curiosity, why isn’t Python code automatically indented in NPP?
    For example, hitting enter after the following line should indent the next line:

    if a < b:
    no indentation here

    I’ve noticed a plugin doing just that, apparently available since 2012. Why isn’t this feature implemented natively?


  • @CutterXYZ

    because notepad++ isn’t a python only editor.
    And the reason for the plugin architecture is exactly for such cases.


  • Sorry, I don’t know much about language definitions for NPP, but aren’t indentation rules supposed to be part of them?