Skip to content

Improve auto-indent #14

@michielp1807

Description

@michielp1807

Currently the auto-indent just copies the indentation of the current line when pressing enter.

Ideally we would:

  • automatically insert an extra tab if a new block is opened (e.g. after a function, if, for, while, etc.)
  • automatically dedent after typing end on a new line (unless the user already manually adjusted the indentation, maybe look for the line that opened the block to match the indentation?)
  • optionally also make Alt+Up and Alt+Down automatically indent

This would require some basic parsing of lua syntax, see lua manual for syntax definitions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions