Unity3D: using Visual Studio Code and hide meta and other unwanted files


Go to Visual Studio Code preference, click “Preference” > “User Settings” or “Project Settings”, add below code in the “Settings.Json” file:

vscode_hide2

// Place your settings in this file to overwrite the default settings
{
    "files.exclude": {
    "**/*.meta": true,
    "Temp": true,
    "Library": true,
    "ProjectSettings": true,
    "obj": true,
    ".vs": true,
    ".vscode": true,
    "Assembly-C*.*": true,
    "*.csproj":true,
    "*.orig":true,
    "*.user":true,
    "*.userprefs":true
    }
}

 

Now, the VS code will cleanly show the files that you need.

2 thoughts on “Unity3D: using Visual Studio Code and hide meta and other unwanted files

  1. Here is the perfect solution.


    // Should be place in root folder of your Unity project here /.vscode/settings.json
    {
    "files.exclude": {
    // Root directory
    "[Bb]uild/": true,
    "[Bb]uilds/": true,
    "[L]ibrary/": true,
    "[Ll]ogs/": true,
    "[Oo]bj/": true,
    "[Tt]emp/": true,
    "[Pp]roject[Ss]ettings/": true,
    "[Mm]emoryCaptures/": true,
    "[Uu]ser[Ss]ettings/": true,
    // Unity generated .csproj and .sln files in root directory
    "*.csproj": true,
    "*.sln": true,
    "**/.DS_Store": true,
    "**/.git": true,
    "**/.gitignore": true,
    "**/.gitmodules": true,
    // File exensions
    "**/*.booproj": true,
    "**/*.pidb": true,
    "**/*.suo": true,
    "**/*.user": true,
    "**/*.userprefs": true,
    "**/*.unityproj": true,
    // Unity formats
    "**/*.mat": true,
    "**/*.meta": true,
    "**/*.prefab": true,
    "**/*.unity": true,
    "**/*.unityasset": true,
    "**/*.asset": true,
    "**/*.cubemap": true,
    "**/*.flare": true,
    // Binaries
    "**/*.dll": true,
    "**/*.exe": true,
    "**/*.bin": true,
    // Documents
    "**/*.pdf": true,
    "**/*.doc": true,
    "**/*.docx": true,
    // Images
    "**/*.gif": true,
    "**/*.ico": true,
    "**/*.jpg": true,
    "**/*.jpeg": true,
    "**/*.png": true,
    "**/*.psd": true,
    "**/*.tga": true,
    "**/*.tif": true,
    "**/*.tiff": true,
    // Audio
    "**/*.mid": true,
    "**/*.midi": true,
    "**/*.wav": true,
    "**/*.mp3": true,
    // Media
    "**/*.mp4": true,
    "**/*.avi": true,
    "**/*.mov": true,
    // 3D models
    "**/*.obj": true,
    "**/*.OBJ": true,
    "**/*.fbx": true,
    "**/*.FBX": true,
    "**/*.ma": true,
    "**/*.MA": true,
    "**/*.lxo": true,
    "**/*.LXO": true,
    "**/*.3ds": true,
    "**/*.3DS": true,
    "**/*.MAX": true,
    "**/*.max": true,
    }
    }

Leave a Reply