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

Backspace must decrease indent (as Shift-Tab do) when the line is empty #3685

Closed
dimdin opened this issue Mar 3, 2016 · 3 comments
Closed
Assignees
Labels
feature-request Request for new features or functionality
Milestone

Comments

@dimdin
Copy link

dimdin commented Mar 3, 2016

e.g. for this code

    if (cond) {
        return ;
        |

where | is the cursor position. By pressing backspace the cursor must be aligned with "if".

@NinoFloris
Copy link

+1 very useful feature that I love from sublime

@outcoldman
Copy link
Contributor

@dimdin implemented it with PR #5423
Please review unit test https://github.com/Microsoft/vscode/pull/5423/files#diff-03a74fc8e046bdf7481eefdc7cce74c8R2147 to check that I have not missed anything

outcoldman added a commit to outcoldman/vscode that referenced this issue Apr 19, 2016
In case when on the left side of the line there are only spaces - help
user to delete whole indent = tabSize.
outcoldman added a commit to outcoldman/vscode that referenced this issue Apr 21, 2016
In case when on the left side of the line there are only spaces - help
user to delete whole indent = tab size.
@alexdima
Copy link
Member

alexdima commented May 3, 2016

Thanks to @outcoldman this has now landed with PR #5423 . It will most likely come out with the May release in about a month.

@alexdima alexdima closed this as completed May 3, 2016
@alexdima alexdima added the feature-request Request for new features or functionality label May 3, 2016
@alexdima alexdima added this to the May 2016 milestone May 3, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

5 participants