visual-studio-code - vscode:如何避免“快速打开”?
问题描述
我是 vscode 的新手。在其他 IDE 中,当我按住 CTRL 按钮时,将光标放在方法名称上并单击鼠标左键,我将导航到 IDE 中包含方法定义的新选项卡。
但是,在 vscode 中,当我这样做时,我看到了这样的外观:
在当前选项卡内打开一个新窗口。我只想要“常规”行为。
我编辑了 settings.json 文件并添加了:
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false
不幸的是,它没有成功。
你知道在这种情况下有什么帮助吗?
解决方案
"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",
推荐阅读
- python - 如何使用动态@id 将文本发送到输入字段
- swagger - 如何使用 Power Apps 自定义 API 从 Power Apps 调用 IoT Central Device Bridge?
- javascript - 表达式预期在 if 条件附近
- python - 如何在python中使用for循环求解非线性方程?
- python-3.x - SystemCheckError:系统检查发现了一些问题:
- python - 有什么方法可以删除 python googlemaps api 上的标记?
- python-3.x - 允许门户用户访问功能或导航到 odoo 12 页面
- paypal - PayPal 服务器 SDK:如何批准订单 ID
- python - 更新硒模块后我无法运行我的代码
- r - Rmarkdown 中 stringr::str_view 输出的高度