Skip to content

Triggering on type formatting on deletions #1187

Open
@vinistock

Description

@vinistock

Generally, on type formatting is used to autocomplete code as the developer types specific characters. However, there are also use cases for doing similar operations on deletions.

For example, when doing string interpolation in Ruby, we are currently closing brace automatically using on type formatting (from "#{" to "#{}"), but we'd also be interested in removing that closing brace in case the user deletes the opening one with backspace (from "#{}" to "#"). There are other use cases involving end tokens and pipes too.

Is it possible to trigger on type formatting on backspace? And if so, what's the trigger character?

Metadata

Metadata

Assignees

No one assigned

    Labels

    feature-requestRequest for new features or functionality

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions