Warm tip: This article is reproduced from stackoverflow.com, please click
angular intellij-idea typescript ide

How to define production scope for Angular / Typescript in IntelliJ's project overview

发布于 2020-03-28 23:16:21

I'm currently working on an Angular (Typescript) project. IntelliJ offers different scopes for a project in the project menu:

enter image description here

The Tests scope works just fine. When i select it only spec.ts files are shown. Unfortunately the production scope doen't work, the IDE outputs No files in the current scope. I would expect it to only show ts-files leaving out the test files.

Does anyone know how i can configure my Intellij to work the expected way?

Thank you in advance.

Questioner
MarcWho
Viewed
66
lena 2020-01-31 17:50

Just try marking your src folder as Sources Root (Mark Directory as/Sources Root)

enter image description here