All my files are now highlighted from switching to new branch.

Answered

Hi, so what was happening originally was every time I would switch branches I was forced to add the workspace.xml file so I ignored it on my branch and our develop branch. Then after all was good I decided to go to the "jason" branch to do the same thing and then I noticed everything was highlighted and I cannot mark the src folder as source or anything like that its as if all the settings and such are gone. What can I do to fix this?

0
5 comments

What do you have in the project structure | modules? Make sure there is a module present and you should be able to mark the content and source roots: https://stackoverflow.com/a/43319356/104891 .

0
Avatar
Permanently deleted user

Thanks! I just tried that but whenever I go back to my own branch and then come back to the "jason" branch it disables VCS  "GIT"  and it goes back to what the pic above looks like.

0

VCS information is stored in .idea/vcs.xml file.

Modules information is stored in .idea/modules.xml that references individual .iml files.

Make sure all these files are present in all the branches and their contents are valid.

See also https://intellij-support.jetbrains.com/hc/articles/206544839 .

0
Avatar
Permanently deleted user

Will do, I'll let you know if I get everything working.

0

There is a new feature I discovered recently when I ran into the same issue, which fixed the problem with 2 clicks

0

Please sign in to leave a comment.