Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

450
Visualizações
How to hide .js and .map files in WebStorm while working on Angular2-typescript project

I tried adding the extensions to .gitignore but the result is as below:

webstorm file explorer

The files are not completely hidden.

over 4 years ago · Santiago Trujillo
3 Respostas
Responde à pergunta

0

When using WebStorm without the built-in TypeScript Compiler (e.g. because you are running an Angular2 project with their npm start script which does the compiling already) and the other method doesn't work, you can configure your own filtered "Project" panel for WebStorm:

  1. Select Project Files section of the side panel (Project section does not offer the needed config menu)
  2. Click on the gear icon to configure enter image description here
  3. Select "Edit Scopes" from that menu
  4. Add a new Scope
  5. Set the Pattern to an appropriate filter to exclude the *.js and *.js.map files (I am using !file[my-root-folder]:app//*.js&&!file[my-root-folder]:app//*.js.map)
  6. You can select this scope as a section of the side panel (instead of Project or Project Files) under the name you set the scope.
over 4 years ago · Santiago Trujillo Relatório

0

  • Enable Typescript Compiler (Generated files are hidden when compiler generates them)

enter image description here

  • Change your view to Project as suggested by Cibes

enter image description here

over 4 years ago · Santiago Trujillo Relatório

0

For me, using the Project panel, rather than the Project Files panel did the trick collapsing the *.js and .js.map files and hiding them beneath their corresponding *.ts file.

enter image description here

Note: This is only working when WebStorm's TypeScript Compiler is enabled. (see A_Singh's answer)

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda