Sublime 3文本编辑器,显示文件名两次

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

我正在使用MacBook Air。我安装了XAMPP的成功并且它运行良好。现在我在sublime文本编辑器3中打开文件夹,但我得到两次文件名。

例如

._test1.php
._test2.php
._test3.php
._test4.php
test1.php
test2.php
test3.php
test4.php

截图

enter image description here

enter image description here

我正在使用最新的崇高编辑器。你能帮我解决这个问题吗?

enter image description here enter image description here

sublimetext3 sublimetext2 text-editor
1个回答
1
投票

Your code should be:

{
   "font-size":13,
   "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "._*"]
}

“._”文件这些不可见文件是在外部卷上创建的文件的“资源分叉”段。在Macintosh文件系统(HFS和HFS)中,支持两种类型的文件信息:一种是资源派生,另一种是数据派生。数据分支将包含用户提供的信息,例如word文档的文本,资源分支将包含有关文档的信息,例如作者,特定于文档的首选项和其他元数据。

在Mac OS X文件系统中,这些分支被视为一个文件,并且显示为这样;但是,许多文件系统不支持资源分支,包括Windows机器(SMB和NTFS)上使用的那些文件系统。因此,当用户将文件复制到这些系统时,资源分叉可能会丢失。因此,Apple在OS X中构建了一个文件处理机制,当复制到不支持资源分支的磁盘时,它会自动将资源和数据分成两个文件。

要将这些文件排除在Sublime中,您必须将._*添加到Sublime首选项中的file_exclude_patterns

"file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db", "._*"]
© www.soinside.com 2019 - 2024. All rights reserved.