Skip to content

Feature request: insert closing delimiter #601

@kengruven

Description

@kengruven

Hello! I'm a longtime on-again/off-again js2-mode user. Recently, I've been writing a lot of programs in Racket, and racket-mode has a very nifty feature that I've come to enjoy: when you type either ) or ], it will figure out the correct closing delimiter from context (whether ) or ] or } or maybe even others) and insert that, so when I'm are at the end of a line or function I can just hit ] several times until everything is closed.

JS has at least the variety of delimiters as Racket, and so I think a similar feature would be tremendously useful here, too. I've only ever been a user of js2-mode, not a developer, so I have no idea how difficult this would be to implement. Anyway, thanks!

Metadata

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