EN
Visual Studio Code - hide *.js.map files
3 points
In this short article we would like to show how to configure VS Code to hide *.js.map
files.
VS Code provies two modes for settings view: UI and JSON. Below steps show how to use JSON mode.
Do following steps:
- open setting:
File -> Preferences -> Settings,
or shortcut:ctrl
+,
- in top right corner click Open Settings (JSON) icon,
- paste following configuration line inside
"files.exclude"
property:xxxxxxxxxx
1"**/*.js.map": true
Full configuration example (settings.json
file):
xxxxxxxxxx
1
{
2
"window.zoomLevel": 0,
3
"workbench.iconTheme": "vscode-great-icons",
4
"files.exclude": {
5
"**/*.js.map": true
6
}
7
}
This section contains configuration examples for both UI and JSON modes.
When TypeScript files are used (*.ts
or *.tsx
) we need to ignore 2 type of files: *.js
and *.js.map
.
Use following fonfiguration to ignore complied files in Settings in JSON mode:
xxxxxxxxxx
1
{
2
"window.zoomLevel": 0,
3
"workbench.iconTheme": "vscode-great-icons",
4
"files.exclude": {
5
"**/*.js.map": true,
6
"**/*.js": {"when": "$(basename).ts"}
7
}
8
}
or
xxxxxxxxxx
1
{
2
"window.zoomLevel": 0,
3
"workbench.iconTheme": "vscode-great-icons",
4
"files.exclude": {
5
"**/*.js.map": true,
6
"**/*.js": {"when": "$(basename).tsx"}
7
}
8
}
Hint: use
exclude
keyword inSearch settings
field to go toFiles: Exclude
section.
Screenshot from Settings in UI mode:
