更改Ctrl + Tab行为以在Visual Studio中的文档之间移动 [英] Changing Ctrl + Tab behavior for moving between documents in Visual Studio

查看:68
本文介绍了更改Ctrl + Tab行为以在Visual Studio中的文档之间移动的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以更改 Ctrl + Tab Shift + Ctrl + Tab 在Visual Studio中工作?我已经禁用了弹出式导航器窗口,因为我只想在选项卡控件中的项目之间切换.我的问题是切换到下一个和上一个文档的操作不一致.

Is it possible to change how Ctrl + Tab and Shift + Ctrl + Tab work in Visual Studio? I have disabled the popup navigator window, because I only want to switch between items in the tab control. My problem is the inconsistency of what switching to the next and previous document do.

我所见过的所有使用制表符控件打开文件的其他程序,都使用 Ctrl + Tab 从左向右移动和 Shift + Ctrl + Tab 可以从右向左移动. Visual Studio通过跳转到最后一个选择的选项卡打破了这一点.您永远不会知道最终将要处理的文档,而且两次也不会以相同的方式进行.

Every other program that uses a tab control for open document I have seen uses Ctrl + Tab to move from left to right and Shift + Ctrl + Tab to go right to left. Visual Studio breaks this with its jump to the last tab selected. You can never know what document you will end up on, and it is never the same way twice.

这很违反直觉.这是一种鼓励所有人一次只打开两个文档的巧妙方法吗?

It is very counterintuitive. Is this a subtle way to encourage everyone to only ever have two document open at once?

比方说,我有几个文件正在打开.我正在一个人中工作,我需要查看右侧下一个选项卡中的内容.在地球表面上的所有其他单个应用程序中, Ctrl + Tab 会将我带到那里.但是在Visual Studio中,我不知道它将带我去哪个其他选项卡.如果我只打开过两个文档,那么效果很好.一旦您转到三个或三个以上,就无法确定Visual Studio已决定将您发送到哪个选项卡.

Let's say I have a few files open. I am working in one, and I need to see what is in the next tab to the right. In every other single application on the face of the Earth, Ctrl + Tab will get me there. But in Visual Studio, I have no idea which of the other tabs it will take me to. If I only ever have two documents open, this works great. As soon as you go to three or more, all bets are off as to what tab Visual Studio has decided to send you to.

问题在于,我不必考虑该工具,它应该淡出背景,并且我应该在考虑任务.当前选项卡的行为不断使我退出任务,并使我不得不注意该工具.

The problem with this is that I shouldn't have to think about the tool, it should fade into the background, and I should be thinking about the task. The current tab behavior keeps pulling me out of the task and makes me have to pay attention to the tool.

推荐答案

在Visual Studio 2015(以及VS的早期版本)中,但必须安装

In Visual Studio 2015 (as well as previous versions of VS, but you must install Productivity Power Tools if you're using VS2013 or below), there are two new commands in Visual Studio:

Window.NextTab Window.PreviousTab

只需从 Ctrl + Alt + PageUp / Ctrl + Alt + PageDown Ctrl + Tab / Ctrl + Shift + 制表符:

Just go remap them from Ctrl+Alt+PageUp/Ctrl+Alt+PageDown to Ctrl+Tab/Ctrl+Shift+Tab in:

菜单工具-> 选项-> 环境-> 键盘

Menu Tools -> Options -> Environment -> Keyboard

注意:在Visual Studio 2010等早期版本中,Window.NextTab和Window.PreviousTab分别命名为 Window.NextDocumentWellTab Window.PreviousDocumentWellTab .

Note: In earlier versions such as Visual Studio 2010, Window.NextTab and Window.PreviousTab were named Window.NextDocumentWellTab and Window.PreviousDocumentWellTab.

这篇关于更改Ctrl + Tab行为以在Visual Studio中的文档之间移动的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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