有没有办法用 CTRL+[NUMBER] 而不是 CTRL+TAB 切换选项卡? [英] Is there a way to switch tabs with CTRL+[NUMBER] instead of CTRL+TAB?

查看:37
本文介绍了有没有办法用 CTRL+[NUMBER] 而不是 CTRL+TAB 切换选项卡?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 Visual Studio Community 2017 并且经常在多个类文件之间切换.我必须执行此操作的方法是反复按 Ctrl+Tab(或 Ctrl+Shift+Tab),直到到达所需的选项卡.

如果有一种方法可以通过按 Ctrl+(选项卡的索引)类似于浏览器选项卡的导航方式在选项卡之间切换会更方便.例如按 Ctrl+1 打开浏览器上的第一个/最左边的标签,Ctrl+2 打开第二个,依此类推

查看工具 > 选项 > 环境 > 键盘,有一些使用 View.NavigateBackward 和 View.NavigateForward(Ctrl+Tab 和 Ctrl+Shift+Tab 功能)的命令可以重新映射 - 但是没有任何功能我在上面描述过.

有一些线程为 Visual Studio Code 解决了这个问题,但是(我真的很惊讶/一定很愚蠢)我找不到仅适用于 Visual Studio 的线程.

Visual Studio Code 的线程:

您还可以另外启用显示标签编号选项以简化 NavigateToTabXX 命令的使用:

I am using Visual Studio Community 2017 and am frequently switching between several class files. The way I am having to do this is by pressing Ctrl+Tab (or Ctrl+Shift+Tab) repeatedly until I reach the desired tab.

It would be more convenient if there was a way to switch between tabs by pressing Ctrl+(tab's index) similar to how browser tabs are navigated. e.g. pressing Ctrl+1 opens the first/leftmost tab on your browser, Ctrl+2 opens the second one, etc.

Looking in Tools > Options > Environment > Keyboard, there are commands that use View.NavigateBackward and View.NavigateForward (The Ctrl+Tab and Ctrl+Shift+Tab functionality) that can be re-mapped - however nothing for the functionality I described above.

There are threads solving this issue for Visual Studio Code, however (and I'm really surprised/must be really dumb that) there are no threads that I could find for just Visual Studio.

Threads for Visual Studio Code:

Is there a quick change tabs function in Visual Studio Code?

https://github.com/Microsoft/vscode/issues/24753

解决方案

You can switch to a specific tab with a keyboard shortcut with my Tabs Studio extension:

And you can additionally enable the Show tab numbers option to simplify usage of NavigateToTabXX commands:

这篇关于有没有办法用 CTRL+[NUMBER] 而不是 CTRL+TAB 切换选项卡?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆