Skip to content

Use correct indentation when inserting new line after an empty line #264

Description

@aesilevich

Example code:

func foo() {
  let x = 10

  let y = 20
}

How to reproduce:

  1. Move cursor to the third (empty line)
  2. Press the Return button

After pressing Return, the editor will insert new line without indentation. It should insert indentation spaces (two spaces) at the beginning of the new line.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions