简体   繁体   English

如何在VS Code中禁用对象定义窗口?

[英]How do I disable the object definition window in VS Code?

In VS Code, if I Ctl+click or press F12 on an object defined elsewhere in the file, the focus is moved to that object, but additionally a window opens up showing me exactly what I'm already trying to look at except in a smaller window than I would normally be viewing the object definition. 在VS Code中,如果我按Ctl +单击或在文件中其他位置定义的对象上按F12键,则焦点将移至该对象,但是另外会打开一个窗口,向我显示我正试图查看的内容,除了比我通常查看对象定义小的窗口。 If I instead press Alt+F12, this object definition window opens without moving my focus to the object. 如果我改按Alt + F12,则会打开该对象定义窗口,而不会将焦点移到该对象上。

In the case of pressing Alt+F12, this functionality could potentially be useful since it saves me from having to navigate from the code I'm working with. 在按Alt + F12的情况下,此功能可能很有用,因为它使我不必从正在使用的代码中导航。 However, in the case of Ctl+click or F12, both navigating away from the code I'm working with and displaying the object definition in a smaller window is not helpful and I want to disable it. 但是,对于Ctl + click或F12,从我正在使用的代码导航并在较小的窗口中显示对象定义都无济于事,我想禁用它。

Here is an image of what I'm trying to describe when using Ctl+click or F12: 这是我使用Ctl + click或F12时要描述的图像: VS代码对象定义窗口

How do I disable this? 如何禁用此功能? I would prefer to only disable the functionality that both shows the window and navigates away, but would settle for disabling showing the window entirely. 我宁愿只禁用既显示窗口又导航的功能,但会决定完全禁用显示窗口。

VS Code 1.26.1版中已解决此问题。

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

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