简体   繁体   English

用于向上/向下移动打开编辑器的 VSCode 快捷方式(不是组而是打开编辑器)

[英]VSCode shortcut for move open editor up / down (not group but open editor)

I don't mean move editor group or viewed file (split editor groups);我不是说移动编辑器组或查看文件(拆分编辑器组); -- but in the list of open editors in the sidebar. --但在边栏的打开编辑器列表中。

They can be rearranged by mouse-dragging them into desired position. Can't find the name for shortcut command, if it exists.可以通过将鼠标拖动到所需的 position 来重新排列它们。找不到快捷命令的名称(如果存在)。

For clarity, attaching a screenshot: (it's unfortunately way too large)为清楚起见,附上屏幕截图:(不幸的是它太大了)

从侧边栏打开编辑器的屏幕截图

Use case is rearranging open editors according to some flow (of data, functions or whatever) to simplify thinking about it.用例是根据一些流程(数据、功能或其他)重新排列打开的编辑器,以简化对它的思考。

Thanks!谢谢!

I do not see any command that would allow you to re-order the Open Editors list directly.我没有看到任何允许您直接重新排序Open Editors列表的命令。

But the order of that list is determined by the order of your opened tabs, so if you move the file tabs around the Open Editors list changes to match.但是该列表的顺序由您打开的选项卡的顺序决定,因此如果您在Open Editors列表中移动文件选项卡,则会更改以匹配。 So these would do what you want:所以这些会做你想做的:

Move Editor Left: Ctrl + Shift + PageUp向左移动编辑器: Ctrl + Shift + PageUp

Move Editor Right: Ctrl + Shift + PageDown向右移动编辑器: Ctrl + Shift + PageDown

This works even if you have the setting Editor: Show Tabs disabled so that only a single tab is displayed - you can still move that tab left and right and that is reflected in the Open Editors list!!即使您禁用了设置Editor: Show Tabs ,以便只显示一个选项卡,这仍然有效 - 您仍然可以左右移动该选项卡,这反映在Open Editors列表中!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM