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

When using alt-shortcut to move lines, honor collapsed sections and skip over them #55667

Closed
jakedohm opened this issue Aug 2, 2018 · 2 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) editor-folding Editor code folding issues feature-request Request for new features or functionality

Comments

@jakedohm
Copy link

jakedohm commented Aug 2, 2018

Currently when I'm moving a line (or more) of code, by holding alt and using the up/down arrow keys, if I run into a collapsed section of code, the line I'm moving will cause the collapsed section to un-collapse. I think it makes sense for the code moving feature to honor collapsed sections, and skip over them, instead of moving the code through them. I can't think of a scenario where I'd want to move a line into a collapse section, I'm always using it to re-arrange sections of code, and in that case it's often nice to collapse my high-level sections (each containing possibly 100s of lines of code) and use alt-arrows to re-arrange them.

Let me know if you need any more explanation, or examples.

Thanks for all of the amazing work on VS Code, I'm really loving it!

@vscodebot vscodebot bot added editor editor-folding Editor code folding issues labels Aug 2, 2018
@alexdima alexdima added the feature-request Request for new features or functionality label Aug 2, 2018
@usernamehw
Copy link
Contributor

usernamehw commented Dec 6, 2018

/duplicate of #63972

@vscodebot vscodebot bot added the *duplicate Issue identified as a duplicate of another issue(s) label Dec 6, 2018
@vscodebot
Copy link

vscodebot bot commented Dec 6, 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 Dec 6, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 20, 2019
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) editor-folding Editor code folding issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

3 participants