首页 > 解决方案 > vscode:如何避免“快速打开”?

问题描述

我是 vscode 的新手。在其他 IDE 中,当我按住 CTRL 按钮时,将光标放在方法名称上并单击鼠标左键,我将导航到 IDE 中包含方法定义的新选项卡。

但是,在 vscode 中,当我这样做时,我看到了这样的外观:

在此处输入图像描述

在当前选项卡内打开一个新窗口。我只想要“常规”行为。

我编辑了 settings.json 文件并添加了:

"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false

不幸的是,它没有成功。

你知道在这种情况下有什么帮助吗?

标签: visual-studio-codevscode-settings

解决方案


"editor.gotoLocation.multiple": "goto",

Controls the behavior of 'Go To' commands, like Go To Definition, when multiple target locations exist.


Alternatively/additionally show references in the SideBar:

"references.preferredLocation": "view",

推荐阅读