visual-studio-code - 在 VSCode 中缩小空目录资源管理器?

标签 visual-studio-code

这个问题在这里已经有了答案:





Is there a way to flatten or merge single-folder folders in vs code explorer?

(1 个回答)


1年前关闭。




我正在寻找某种方法来减少资源管理器中目录的可见大小,其中只有一个目录/文件。我不太确定如何解释这一点,但基本上我想转一下:

OPEN FOLDER  
-ChildFolder  
--GrandchildFolder  
---GreatgrandchildFolder  
---file  
---file  

Into this:  
OPEN FOLDER  
-ChildFolder\GrandchildFolder  
--GreatgrandchildFolder  
--file  
--file  

GitHub 就是这样做的,例如在 https://github.com/Bukkit/Bukkit/tree/master/src 上(一个java项目),你看到test/java/org/bukkit(悬停显示“此路径跳过空目录”)。

有没有办法在 VSCode 中做到这一点?它非常小,但在跨多个 Java 项目工作时会非常好。

最佳答案

这应该在 2019 年 12 月中旬提供 with VSCode 1.41 .

Compact folders in Explorer

In the File Explorer, we now render single child folders in a compact form.
In such a form, single child folders will be compressed in a combined tree element.
Useful for Java package structures, for example.

Setting explorer.compactFolders controls this behavior.
By default, this setting is turned on.



https://media.githubusercontent.com/media/microsoft/vscode-docs/vnext/release-notes/images/1_41/explorer-compact.gif

关于visual-studio-code - 在 VSCode 中缩小空目录资源管理器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44982183/

相关文章:

reactjs - 解析错误 : Argument for '--jsx' option must be: 'preserve' , 'react-native' , 'react'

javascript - 使用带有 Visual Studio Code/JS 的非标准内置函数添加自动完成功能

javascript - 在 Docker 容器内开发时启用 VS Code IntelliSense

git - 使用vscode扩展 native 读取当前git分支

javascript - 如何在 Visual Studio Code 中显示 'console.log' 输出?

c++ - 无法识别 visual studio 代码任务构建 'C:\Program'

ubuntu-14.04 - Visual Studio Code 无法通过命令行打开

visual-studio-code - 将 .history 文件夹设置为被智能感知忽略

visual-studio-code - Visual Studio Code 源代码管理未显示更改

c++ - VS Code 无法识别包含路径