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

Ctrl+Delete removing entire line when used at the end of line #3882

Closed
kaestlyn opened this issue Mar 8, 2016 · 4 comments
Closed

Ctrl+Delete removing entire line when used at the end of line #3882

kaestlyn opened this issue Mar 8, 2016 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug
Milestone

Comments

@kaestlyn
Copy link

kaestlyn commented Mar 8, 2016

If you have some lines in a file such as:

public void Add( int x,
                          int y )
{
    // some code
}

If you place your cursor at the end of the first line, and hit Ctrl+Delete it removes the entire line, so you end up with just

                          int y )
{
    // some code
}

I would expect it to remove all the space between the current position and the next word:

public void Add( int x, int y )
{
    // some code
}

This is on Windows 7 if that's relevant or not.

@SmilyOrg
Copy link

SmilyOrg commented Mar 9, 2016

I think it's a regression in the latest update (0.10.10?). Pretty annoying :)

@bpasero
Copy link
Member

bpasero commented Mar 21, 2016

@alexandrudima I end up with this after the first Ctrl+Delete:

public void Add( int x,                          int y )
{
    // some code
}

Please reopen if your fix wanted to get me to this as suggested by the issuer:

public void Add( int x, int y )
{
    // some code
}

@bpasero bpasero added the verified Verification succeeded label Mar 21, 2016
@alexdima
Copy link
Member

I like the suggestion, saves an extra Ctrl+Delete.

My change was to fix the blatantly wrong behavior of Ctrl+Delete that would delete the current line.

@alexdima alexdima modified the milestones: April 2016, March 2016 Mar 21, 2016
@alexdima alexdima reopened this Mar 21, 2016
@alexdima alexdima removed the verified Verification succeeded label Mar 21, 2016
@bpasero
Copy link
Member

bpasero commented Mar 21, 2016

👍

@bpasero bpasero assigned alexdima and unassigned bpasero Mar 21, 2016
@alexdima alexdima modified the milestones: May 2016, April 2016 Apr 29, 2016
@alexdima alexdima assigned bpasero and unassigned alexdima May 27, 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
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

5 participants