Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Wrap control statement content when adding open brace #26968

Closed
stringham opened this issue May 19, 2017 · 3 comments
Closed
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality languages-basic Basic language support issues
Milestone

Comments

@stringham
Copy link
Contributor

I would like vscode to handle adding opening braces like Sublime Text does when adding one as part of a control statement (if, while, for, etc) with a single indented statement.

Here is an example gif of Sublime Text:
wrap-statement

Notice that if there are multiple indented statements, it does not wrap them.

I think it's a delightful experience and a common workflow, and I've missed it since migrating from Sublime Text to vscode.

It may be reasonable to implement this with an extension, but I wasn't able to identify the appropriate api to use in implementing this feature as an extension.

@Tyriar Tyriar added the feature-request Request for new features or functionality label May 19, 2017
@alexdima alexdima added languages-basic Basic language support issues editor labels May 20, 2017
@alexdima alexdima added this to the Backlog milestone May 20, 2017
@alexdima alexdima removed their assignment May 20, 2017
@rebornix rebornix removed their assignment Sep 5, 2017
@EmmanuelBeziat
Copy link

#13982 Also

@rebornix
Copy link
Member

rebornix commented Sep 5, 2018

Right now our auto closing feature doesn't take language semantics into account. Let's track this issue in #6841 which is the earliest issue. Thanks for your feedback!

@rebornix rebornix added the *duplicate Issue identified as a duplicate of another issue(s) label Sep 5, 2018
@vscodebot
Copy link

vscodebot bot commented Sep 5, 2018

Thanks for creating this issue! We figured it's covering the same as another one we already have. Thus, we closed this one as a duplicate. You can search for existing issues here. See also our issue reporting guidelines.

Happy Coding!

@vscodebot vscodebot bot closed this as completed Sep 5, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 20, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality languages-basic Basic language support issues
Projects
None yet
Development

No branches or pull requests

5 participants