Dot and underscore showing with file name when open folder in VS code editor or Sublime editor
Asked Answered
C

3

7

I am using MacBook Air. I downloaded the visual code editor from here. I tested the page and it's working.

I am getting an issue with the file name. I am getting the file name twice. The first file name starts from the ._ and my second file name is correct.

For example.

I have the files below the files in my folder.

about.php index.php

When I open in visual studio code editor then I am getting

._about.php
._index.php
about.php
index.php

Please let me know what is the issue with my editor.

enter image description here

Would you help me out with this issue?

Now I am getting the same issue on the sublime editor.

Coup answered 13/3, 2020 at 6:31 Comment(0)
F
8

For VSCode users you actually can hide these files from sidebar :

Go to Code > Preferences > Settings. Search for files:exclude in the search at the top. Add new pattern (any file which starts with ._):

**/._*

Here what it looks like on my machine

enter image description here

Femineity answered 24/10, 2022 at 11:13 Comment(1)
Thank you my friend. That was the only solution.Parlor
T
0

If your file is on a hard drive with exFAT format, Mac will automatically generate dot underscore file. Dot underscore files are Mac system files and unrelated to visual studio code. They are the result of storing your files on a hard drive partition that does not support extended file attributes. They have likely always been there on your Mac, but since they are OS X system files, they were hidden

more details https://apple.stackexchange.com/questions/14980/why-are-dot-underscore-files-created-and-how-can-i-avoid-them

Terrellterrena answered 19/5, 2021 at 18:58 Comment(1)
Not on visual studio code, I am also getting this issue on sublime. I am getting this issue for the last 1 year but before I was not getting this issue.Coup
T
0

find . -name "._*" -type f -delete

Temporize answered 6/6, 2022 at 3:54 Comment(2)
try this commandTemporize
Your answer could be improved with additional supporting information. Please edit to add further details, such as citations or documentation, so that others can confirm that your answer is correct. You can find more information on how to write good answers in the help center.Schulte

© 2022 - 2024 — McMap. All rights reserved.