Issue
I'm working in an angular2 project with vscode. Is there any way to group files with same names and different extensións as same as Visual Studio do it.
Example:
- myscript.ts
- myscript.js
- myscript.map.js
Solution
Short answer is no but you can hide the non-ts files.
Go to Files -> Preferences -> Workspace Settings and on the right pane paste:
// Place your settings in this file to overwrite default and user settings.
{
"files.exclude": {
// include the defaults from VS Code
"**/.git": true,
"**/.DS_Store": true,
// exclude .js and .js.map files, when in a TypeScript project
"**/*.js": { "when": "$(basename).ts"},
"**/*.js.map": true
}
}
Answered By - eko
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.