vsCode settings filter meta files

Insert image description here

  1. Open Visual Studio Code, click the "File" menu in the upper left corner, and then select "Preferences" > "Settings" (or use the shortcut key Ctrl + ,).

  2. In the “Settings” interface, you will see a search box. Enter "files.exclude" in the search box, which will display settings related to file filtering.

  3. Click the "Edit in settings.json" link, which will open your user settings file settings.json. If you want this setting to apply globally, rather than just for a specific project, you can set it here.

  4. In settings.jsonthe file, add or modify the following:

    {
          
          
        "files.exclude": {
          
          
            "**/*.meta": true
        }
    }
    

Save the settings.json file and close it. Visual Studio Code will now hide .meta files in Explorer for all projects.
Please note that this setting is global and affects all projects. If you only want to set filtering rules for a specific project, follow the previous answer and set them in the project's .vscode/settings.json file.

Guess you like

Origin blog.csdn.net/weixin_42562717/article/details/130381233