Skip to content

[Feature Request] Surround a selection with brackets and quotes in all kind of text editorsΒ #1141

@sergeniously

Description

@sergeniously

({[<"'Hello'">]})

The greeting above was texted in VSCode's default text editor by typing the word Hello, selecting it and sequentially pressing each opening bracket and quote. Is not it amazing?

In all modern and self-respecting IDEs (aka VSCode, CLion, etc) there is a feature that surrounds a selected text with brackets or quotes when you type an opening bracket or quote: (, {, [, <, ", '. It is an extremely useful feature for those people who value their time.

I would say it is the only thing I'm missing in Eclipse since Eclipse CDT has a Bug 431534 in its Surround with... feature which prepends unwanted spaces for ${word_selection} and so that cannot be considered as an applicable feature.

I've come here with the feature request from eclipse-cdt because I think it would be better implement it in the general TextEditor base class so that every Eclipse plugin will automatically support the feature (which could be optionally enabled/disabled in General / Text Editors preferences).

Furthermore, this feature together with another excellent and unique Eclipse feature of selecting text between brackets by double-click could make Eclipse the currently best IDE in the World!

Thank you in advance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions