title: In WebStorm, how do I exclude js files generated from ts/tsx?
body: <p>When I use <code>Enable Typescript Compiler</code>, the TypeScript compiler generates a <code>.js</code> file for every <code>.ts</code> and <code>.tsx</code> file.</p>
  <p><a href="https://i.stack.imgur.com/Yr0lR.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Yr0lR.jpg" alt="Enable Typescript Compiler" /></a></p>
  <p>When doing code completion, WebStorm does not know that the files were generated and therefore it suggests completion from the generated files as well as from the TypeScript files. To prevent this, I have to go to every generated <code>.js</code> file and right click and <code>Mark as Plain Text</code>:</p>
  <p><a href="https://i.stack.imgur.com/ElfMg.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/ElfMg.jpg" alt="Mark as Plain Text" /></a></p>
  <p>However, when I do a text search, I still get the hits from the generated JavaScript files:</p>
  <p><a href="https://i.stack.imgur.com/iq50t.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/iq50t.jpg" alt="enter image description here" /></a></p>
  <p>Is there a simple way to exclude the generated files the way it is possible to exclude directories (except for creating a scope that excludes all the generated files)?</p>