在 VSCode 中缩小空目录资源管理器? [英] Shrink down empty directories explorer in VSCode?

查看:30
本文介绍了在 VSCode 中缩小空目录资源管理器?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

打开文件夹-子文件夹--孙文件夹---曾孙文件夹- -文件- -文件进入这个:打开文件夹-ChildFolder\GrandchildFolder--曾孙文件夹- 文件- 文件

GitHub 做了这样的事情,例如在

I'm looking for some way to reduce the visible size of directories in the explorer, that only have one directory/file in them. I'm not quite sure how to explain this, but basically I want to turn this:

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

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

GitHub does something like this, for example on https://github.com/Bukkit/Bukkit/tree/master/src (a java project), you see test/java/org/bukkit (hovering shows "this path skips through empty directories").

Is there any way to do this in VSCode? It's pretty minor but would be really nice to have when working across multiple java projects.

解决方案

This should be available mid-december 2019 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.

这篇关于在 VSCode 中缩小空目录资源管理器?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆