When using alt-shortcut to move lines, honor collapsed sections and skip over them #55667
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
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!
The text was updated successfully, but these errors were encountered: