Visual Studio Code – Hide Files

Want to hide certain files like .js, .map from Visual Studio Code ? Here is a quick trick.

·        Press CTRL + SHIFT + P
·        Type “setting” in the bar
·        Click on “Open User Settings”

user settings

·        Use the code given below

The green part defines how you can conditionally choose which files to hide and which files to show. For example, some .js files in this project were generated from .ts (TypeScript) files. Whereas, the others .js files were custom written and required.

{
“window.zoomLevel”: 2,
“files.exclude”: {
“**/*.js.map”: true,
“**/*.js”: {
           “when”: “$(basename).ts”
      }
}
}

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s