Skip to content

Override completion should place cursor near arrow #29495

@jcouv

Description

@jcouv

Currently, the cursor is placed at the end of the inserted code (as shown below).

At least in the case of a completion with an arrow body, that isn't most useful, since you won't type more statements in the body and you likely won't leave the inserted code as-is.

I'd propose that the cursor be left between the fat arrow and the inserted code.

This way, you could easily:

  • convert the body to a block body,
  • delete the body to type what you want.

override-completion

Also, I think the override completion should not add a body when there is already one. This happens when you copy&paste one override method, then rename the method name.

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Complete

Status

Misc

Relationships

None yet

Development

No branches or pull requests

Issue actions