文件在当前文件夹中关闭并显示在工作区文件夹中

问题描述 投票:0回答:1

当我单击子文件夹中的文件时,资源管理器会在工作区文件夹中显示该文件,并且子文件夹会自动关闭。例如,>

enter image description here

当我单击“ test1”文件夹下的“ test1.py”时,资源管理器将其显示在“ testspace”下,并关闭“ test1”文件夹。

如何禁用此行为?

这是我的文件夹的结构:

testspace/
  testspace.code-workspace
  test1/
    test1.py
  test2/
    test2.py

testspace.code-workspace的内容:

{
    "folders": [
        {"path": "."},
        {"path": "test1"},
        {"path": "test2"}
    ],
    "settings": {
        "files.exclude": {
            "test1": true,
            "test2": true,
        }
    }
}

当我单击子文件夹中的文件时,资源管理器会在工作区文件夹中显示该文件,并且子文件夹会自动关闭。例如,当我单击“ test1”文件夹下的“ test1.py”时,资源管理器...

visual-studio-code vscode-settings
1个回答
0
投票

feature称为自动对焦,可以在settings.json中禁用它。

© www.soinside.com 2019 - 2024. All rights reserved.