Visual-Studio-Code – How to exclude a directory from the Visual Studio Code “Explore” tab?

I am trying to exclude multiple folders on the “Browse” tab in Visual Studio Code. For this, I added the following jsconfig.json to the root of the project: < p>

{
"compilerOptions": {
"target": "ES6"
},
"exclude" : [
"node_modules"
]
}

But the “node_modules” folder is still visible in the directory tree. What am I doing wrong? Are there other options?

Use files.exclude:

>Go to file – >Preferences -> Settings (or on the Mac code -> Preferences -> Settings)
>Select the Workspace Settings tab
>Add this code to the settings.json file shown on the right:

// Place your settings in this file to overwrite default and user settings.

{
"files.exclude": {
"**/.git": true, // this is a default value
"**/.DS_Store": true, // this is a default value

"** /node_modules": true, // this excludes all folders
// named "node_modules" from
// the explore tree

// alternative version
"node_modules ": true // this excludes the folder
// only from the root of
// your workspace
}
}

If you choose a file – >Preferences -> User Settings Then you configure the exclusion folder globally for the current user.

I am trying to exclude on the “Browse” tab in Visual Studio Code Multiple folders. For this, I added the following jsconfig.json to the root of the project:

{
"compilerOptions": {< br /> "target": "ES6"
},
"exclude": [
"node_modules"
]
}

But The “node_modules” folder is still visible in the directory tree. What am I doing wrong? Are there other options?

Use files.exclude:

>Go to File -> Preferences -> Settings (or on Mac code- >Preferences -> Settings)
>Select the Workspace Settings tab
>Add this code to the settings.json file shown on the right:

 // Place your settings in this file to overwrite default and user settings.

{
"files.exclude": {
"**/.git": true, / / this is a default value
"**/.DS_Store": true, // this is a default value

"**/node_modules": true, // this excludes all folders
// named "node_modules" from
// the explore tree

// alternative version
"node_modules": true // this excludes the folder
// only from the root of
// your workspace
}
}

If you choose File-> Preferences-> User Settings then you are global for the current user Configure excluded folders.

WordPress database error: [Table 'yf99682.wp_s6mz6tyggq_comments' doesn't exist]
SELECT SQL_CALC_FOUND_ROWS wp_s6mz6tyggq_comments.comment_ID FROM wp_s6mz6tyggq_comments WHERE ( comment_approved = '1' ) AND comment_post_ID = 1974 ORDER BY wp_s6mz6tyggq_comments.comment_date_gmt ASC, wp_s6mz6tyggq_comments.comment_ID ASC

Leave a Comment

Your email address will not be published.