.gitignore file is opened each time I open intellij or delete a file.
Answered
Each time I open Intellij it will automatically open the first file in the project panel. In my case this is .gitignore
The .gitignore file is also automatically opened whenever I delete a file from the source tree.
How can I avoid this from happening ?
Please sign in to leave a comment.
Does it happen in any project, or in the specific one?
Do you have any third-party plugins installed?
Will it happen to another file., if. e.g. you temporary delete/rename the ,gitingore?
Hello, I don't think I have any plugins installed.
I don't know whether it is only in this project (I don't have that many projects lying around).
I think the problem occurs because the file is shown as a non project file in the left pane. When a file is deleted the left pane no longer knows what to select and goes to its root (where the .gitignore file is visible).
If I turn 'autoscroll to source' in the left pane off this no longer happens. Yet, it is not entirely correct that the .gitignore file must be selected when essentially 'nothing' should be selected after deleting a file.
A short video: https://www.youtube.com/watch?v=ZfNNIcIhn4s
Could not reproduce. Please submit an issue to https://youtrack.jetbrains.com/issues/IDEA with logs attached. Thank you