Community
    • Login

    Auto-indent: an experiment in a plugin

    Scheduled Pinned Locked Moved Notepad++ & Plugin Development
    1 Posts 1 Posters 148 Views
    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.
    • CoisesC
      Coises
      last edited by

      The oddities and annoyances of auto-indent have been brought up before:

      • Odd (?) caret placement with auto-indent
      • Auto-Indent - Basic not always works as expected
      • Issues #11750, #15843, #15845.

      In hopes of making some progress on this, I’ve created a plugin, with the intention that it can serve as a testing ground / proof-of-concept for how auto-indent could be improved:

      Controlled Auto-indent implements a more customizable version of the Auto-indent feature built into Notepad++. I’ve created it to enable some discussion and evaluation of possibly useful extensions to Notepad++ itself, which hopefully will eventually render this plugin obsolete.

      Controlled Auto-indent will do nothing unless you check the Enable item on its menu. This assures that you can get it out of the way quickly if it is causing problems or if you want to use only built-in Notepad++ functionality.

      Before enabling this plugin, please make sure the Notepad++ setting at Settings | Preferences… | Indentation : Auto-indent is set to None.

      Controlled Auto-indent does not apply indentation to multiple or rectangular selections. This differs from the Auto-indent built into Notepad++, which computes indentation based on the primary selection or the row selected last and applies that to all selections or rows.

      The Settings… dialog offers various options to control automatic indentation. These are explained in the help file.

      1 Reply Last reply Reply Quote 5
      • First post
        Last post
      The Community of users of the Notepad++ text editor.
      Powered by NodeBB | Contributors