How to separate PROD and DEV directories
Hello.
I have 2 separate directories in my project - /DEV and /PROD. They are independent.
I have already marked them "Test sources root" and "Sources root" accordingly.
But when I work on any of the folders, I get inspection errors "Multiple definitions exist for class ..." etc. When I CTRL click the class, it shows 2 sources - one from DEV and one from PROD. This also breaks the code completion.
I could mark one of the directories "excluded", but I do not want to do that, I want to be able to work on both.
What is the best practice on isolating those 2 directories, so that inspections do not go across them?
Please sign in to leave a comment.
There's no better way than marking one of it as excluded.
I believe a better approach would be to use VCS (git for example).
Another option would be to open one directory as a standalone project, then File > Open - select another directory - Open in current window and check "Add to currently opened projects". This will treat each directory as a separate project but you will be able to work with them at the same time.
Ok, thank you. I will try this.