Skip to content

Make 'else:' back up to matching if indentation #10

Closed
@gradha

Description

Given the following snippet of code:

      if state.debug_idetools:
        if not state.server_mode:
          output.add(ATT_NL & "command: " &
            XMLEncode(idetools_args(state,
              state.procs[index].line,
              state.procs[index].col).join(" ")))

pressing enter at the end will put the cursor aligned with state, and typing else: will autoalign the else: with the column starting with XMLEncode. It would be better if the indentation went back to the first found if starting a column.

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