Ticket #44 (closed enhancement: fixed)

Opened 6 years ago

Last modified 5 years ago

Auto-indent

Reported by: patspam Owned by:
Priority: minor Milestone:
Component: editor Version: 0.04
Keywords: Cc:

Description

New lines should be auto-indented to the current indent level of the previous line.

This might be better tackled as part of support for auto-formatting of code (Perl::Tidy) but ideally auto-indent would be smart enough to increase indentation when the previous line contains an opening brace, decrease indentation when a pair of braces is closed, etc.. (as per vim).

Change History

comment:1 Changed 5 years ago by tsee

  • Status changed from new to closed
  • Resolution set to fixed

I would say this is reasonably well implemented in Padre trunk now. Including auto-sensing and adapting to the predominant indentation style of the given document.

Note: See TracTickets for help on using tickets.