Skip to content

Cmd + Shift + ← should move cursor to the end of the previous line when positioned before an indented token #331582

Description

@monolithed

When the cursor is placed before an indented token on a new line, pressing Cmd + Shift + ← should jump to the end of the previous line, allowing a single Backspace to delete all indentation and pull the token up.

const memberships = await this.entityManager.find(
    CompanyMembershipEntity,
    ...

Starting point:

find(
    |CompanyMembershipEntity,

Actual behavior:

Problem 1 – Press Cmd + Shift + ← once:

find(
|    CompanyMembershipEntity,

Cursor moves to the beginning of the line, before all spaces.
Now I have to press Backspace 2 times (or however many spaces / tabs there are) to delete the indentation.

Problem 2 – Press Cmd + Shift + ← twice:

const memberships = await this.entityManager|.find(
    CompanyMembershipEntity,

Cursor jumps further left to the previous line, often before .find, skipping completely over the opening parenthesis.

Screen.Recording.2026-08-19.at.02.19.51.mov

Expected behavior:

Press Cmd + Shift + ← once:

find(|
    CompanyMembershipEntity,

Cursor moves directly after the opening parenthesis ( on the previous line.

Then press Backspace once:

find(|CompanyMembershipEntity,
    where,
    { populate }
);

All indentation is deleted with ONE keystroke – the entire block of spaces is removed at once, and CompanyMembershipEntity is now on the same line as find(.

WS:

Screen.Recording.2026-08-19.at.02.20.20.mov

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions