Vscode sets hidden files, and ._.DS_Store and ._ files appear for the mixed use of U disks in mac system and windows system

When we use an external USB flash drive, some ._.DS_Store and ._ files are often generated. The reason for this type of file is that you open it on the mac and display it in the finder. When you view the folder, these hidden files will be generated by default.
You can't see it when you use mac, but when you send the entire folder to a window user, win will see it.
When using VScode, it will be displayed in the file menu, which feels very cumbersome. It is not convenient to find files and look at the project structure.

So how do we want to hide this kind of ._ files?

insert image description here
Need to hide this ._ file in vscode

step

1. Open the settings in the lower left corner of vscode

insert image description here
insert image description here

2 Search hidden in settings

insert image description here

3. Find Files: Exclude

Configure glob patterns to exclude files and folders. For example, File Explorer decides which files and folders to show or hide based on this setting. See the "#search.exclude#" setting to define search-specific exclusions.

Click Add mode.
Add **/._*and click OK, and the useless ._ files will be hidden

insert image description here

Guess you like

Origin blog.csdn.net/qq_38594056/article/details/130040766