gpt4 book ai didi

visual-studio-code - 拆分编辑器 : Go to Definition opens a new tab in the current split even if the target is already open in another split

转载 作者:行者123 更新时间:2023-12-04 17:54:23 24 4
gpt4 key购买 nike

  • VSCode 版本:1.8.1
  • 操作系统版本:Ubuntu 16.04.1 LTS

重现步骤:

  1. 拆分编辑器
  2. 打开 source1.js,在第一个拆分中有一个函数定义
  3. 在第一次拆分中打开unrelated.js
  4. 第一个拆分中的事件选项卡是 unrelated.js
  5. 打开source2.js调用第二个split中的函数
  6. 从第二个拆分ctrl+点击函数名
  7. source1.js 在第二次拆分中再次打开

我想跳转到第一个split打开的source1.js

注意:如果 source1.js 是第一个拆分中的事件选项卡,它将按预期工作。

最佳答案

this issue我找到了解决方案:在用户/工作区设置中设置 "workbench.editor.revealIfOpen": true。默认情况下,它的值为 false

此设置的说明:

Controls if an editor is revealed in any of the visible groups if opened. If disabled, an editor will prefer to open in the currently active editor group. If enabled, an already opened editor will be revealed instead of opened again in the currently active editor group. Note that there are some cases where this setting is ignored, e.g. when forcing an editor to open in a specific group or to the side of the currently active group.

关于visual-studio-code - 拆分编辑器 : Go to Definition opens a new tab in the current split even if the target is already open in another split,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41652575/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com