如何在转到定义时禁用窥视 [英] How to disable peek on go to definition

查看:23
本文介绍了如何在转到定义时禁用窥视的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在visual studio中,当我在任何方法上按F12(转到定义)时,它会在文档选项卡右侧的窥视"窗口中打开,在深色主题上以类似紫红色/粉红色的颜色显示.问题是 99% 的时间我需要 F12 进入 2 个或更多方法,但该窗口一直被最新的替换.所以我需要记住每次按 F12 时单击 pin.我想知道我是否可以禁用此 peek 并让 F12 在正常窗口中打开,就像我打开课程一样.

In visual studio when i press F12 (go to definition) on any methods it open in a "peek" kind of window on the right side of the document tabs in fushia/pink like color on the dark theme. The problem is that 99% of the time i need to F12 into 2 or more methods but that window keep being replace by the latest. So i need to remember to click pin for every single time i press F12. I am wondering if i can disable this peek and make F12 open in a normal window like i opened the class.

我已经禁用了项目树视图上的预览类,它可以在同一个查看"选项卡中打开任何类.

I already disabled the preview class on the project treeview which open any class in the same "peek" tab.

我找到了一些帮助,但是对于带有 powertool 的 VS2013,但是 VS2015 这些工具是集成的,我没有找到等效的选项菜单.

I found some help but for VS2013 with powertool but VS2015 these tools are integrated and i didn't found the equivalent option menu.

我的 VS 是最新的,不包括我不使用的最新 Azure 更新.

My VS is up to date excluding the latest Azure update which i don't use.

推荐答案

检查 Visual Studio 选项:

Check the Visual Studio options:

  • 禁用控制单击在 Peek 中显示定义"选项:选项生产力电动工具其他扩展.
  • 禁用允许在预览选项卡中打开新文件":选项环境选项卡和窗口.
  • 确保您已将 F12 键分配给每个 GlobalEdit.GoToDefinition范围在:选项环境键盘.
  • Disable "Control click shows definitions in Peek" option in: OptionsProductivity Power ToolsOther Extentions.
  • Disable "Allow new files to be opened in preview tab" in: OptionsEnvironmentTabs and Windows.
  • Ensure you have F12 key assigned to Edit.GoToDefinition per Global scope in: OptionsEnvironmentKeyboard.

更新:它也适用于 Visual Studio 2017.

UPDATE: It works for Visual Studio 2017 as well.

这篇关于如何在转到定义时禁用窥视的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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