What I recommend:
Create a file in the root of your application named myProject.code-workspace
and edit it like this:
{
"folders": [
{
"path": "."
}
],
"settings": {
"search.exclude": {
"**/node_modules": true,
},
"files.exclude": {
"**/android": true,
"**/ios": true,
},
"editor.formatOnSave": true, // not needed
}
}
In this way your project will ignore the files in the "explore" tab. if you want to exclude the files only for the search environment, add it to search.exclude
, otherwise to files.exclude
in the settings
rules. You can add/edit as you want.
VSCode will detect that file and consider it as the JSON for the workspace config. Don't forget to open this workspace in your VSCode by going to file > open workspace
and select this file.
For more info: https://code.visualstudio.com/docs/getstarted/settings