Community

    • Login
    • Search
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    Automatic indentation for Python

    Help wanted · · · – – – · · ·
    python indentation autoindent
    2
    3
    2454
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • CutterXYZ
      CutterXYZ last edited by

      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?

      Thanks.

      Claudia Frank 1 Reply Last reply Reply Quote 0
      • Claudia Frank
        Claudia Frank @CutterXYZ last edited by

        @CutterXYZ

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

        Cheers
        Claudia

        1 Reply Last reply Reply Quote 0
        • CutterXYZ
          CutterXYZ last edited by

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

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright © 2014 NodeBB Forums | Contributors