为什么 sublime 不显示在这个目录中,上面有一个链接符号? [英] Why doesn't sublime show inside this directory with a link symbol on it?

查看:35
本文介绍了为什么 sublime 不显示在这个目录中,上面有一个链接符号?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在本例中为src".我怎样才能让它显示出来?编辑一些设置?见图片.

In this case "src". And how can I get it to show up? Editing some setting? See picture.

推荐答案

当你在 Sublime 中打开一个文件夹时,它会抓取整个文件夹,以便为该特定文件夹中存在的每个文件和文件夹提供一个完整的目录,以便它可以显示在侧栏中,为符号编入索引,等等.这就是为什么打开整个驱动器的根目录或像主目录这样的大型结构不是一个好主意的原因.

When you open a folder in Sublime, it crawls the entire folder in order to come up with a complete catalog of every file and folder that exists within that particular folder, so that it can be displayed in the side bar, indexed for symbols, and so on. This is the reason why it's not a good idea to open the root of an entire drive or a large structure like your home directory, for example.

带有链接的文件夹是指向已在文件夹树中看到的其他文件夹的符号链接.Sublime 不会查看它们的内部,因为无法检测链接是否最终导致遍历返回到它开始的位置,这将永远扫描同一个文件夹树,直到内存耗尽.

Folders with a link on them are Symbolic Links to other folders that have already been seen in the folder tree. Sublime doesn't look inside them because it's impossible to detect if the link ultimately ends up causing the traversal to end up back where it started, which would end up scanning the same folder tree forever until memory runs out.

因此,没有设置控制能够查看此类文件夹的内部.但是,如果您右键单击它,则会出现一个名为 Reveal Link Source 的可选内容,它会显示它所链接到的内容.

As such there is no setting that controls being able to look inside such a folder. However if you right click on it, there is an optional entitled Reveal Link Source that will show you what it's linking to.

通过比较来自操作系统的底层文件夹信息来确定什么是链接,什么不是链接(例如,在 Linux 上它会比较 inode);第一次看到,它被添加,所有其他对相同数据的引用都被视为链接.

The determination of what's a link and what is not is done by comparing the underlying folder information from the OS (e.g. on Linux it would compare the inode); the first time one is seen, it's added, and all other references to the same data are considered links.

作为旁注,在极少数情况下,这会与无法正确识别项目的设计不佳的文件系统(例如在本地公开远程文件系统的文件系统)发生冲突.控制台会告诉您何时找到链接.不过,只有当屏幕截图中的项目实际上不是符号链接时,这才有意义.

As a side note, in rare cases this has been known to run afoul of poorly designed file systems (such as those that expose a remote file system locally) that don't properly identify items. The console tells you when links are found. That's only of interest if the item in your screenshot actually is not a symlink, though.

这篇关于为什么 sublime 不显示在这个目录中,上面有一个链接符号?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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