Refresh project tree upon creating new files from Terminal
Hi,
I was wondering, if there is a way to tell phpstorm to refresh its project tree immediately? E.g. when I create a file in the Terminal via "> touch file.txt", it needs some extra click out of the terminal - into the project window - and to to rarely also closing and opening folders in case the file was created in a subfolder somewhere.
This is very cumbersome, to be honest, and is something other IDEs (like Sublime... ok... Text editors...) handle way better. It is hard to believe that phpStrom, being such a powerful monster, would not be able to handle that better. Preferably in real-time.
Any ideas? Or bug report?
Please sign in to leave a comment.
You can invoke ctrl+alt+y to synchronize selected file/folder.
I'm not quite getting why this is an issue: say you're creating a bunch of files manually then you would either way focus into editor/project tree: files should get refreshed once this is done.
It would be great if you could describe real use case.
Thanks for your response! Even though I do not understand why you do not get why this is an issue... ;-)
First of all: every software that has similar project (or other) trees (like 3D Software, other IDEs...) works like that: from wherever a new asset is added, the tree updates in realtime, which is a necessary visual feedback that lets you know that everything worked fine.
Second: working on the terminal is an every day situation. Whether there is a gulp file to be edited or package.json quickly to be created or just a text file or whatever: "touch" happens often. Also rm. And visual feedback is absolutely necessary to keep up the workflow. I can't click here, then there, just to make the tree update. I want to keep my fingers on the keyboard.
BTW: I know your shortcut, but it does not work for files created trough terminal.
Are you a team member of the phpStorm dev team?
Thanks for clarification. Yeah, I'm from PhpStorm team, not a developer though.
There are tons of different approaches to working with our IDE so we appreciate you've described the issue in details.
I'm also getting the behavior described but I'm using terminal/console much less thus it's much less PITA for me.
In general this seems to be an expected behavior: https://youtrack.jetbrains.com/issue/IDEA-91790. Could you please clarify: if you create several files through console & then switch to editor - would files created appear in a project tree?
If they will - that's an expected behavior. The only suggestion I have is to submit a feature request/usability problem at http://youtrack.jetbrains.com/issues/WI#newissue=yes describing this in details.
Yes, the files appear as soon as I switch. But that's just not it!
I added further comments to https://youtrack.jetbrains.com/issue/IDEA-91790.
Thanks for getting back to me!
Hello Robert,
Please go to Settings\Preferences | Tools | Terminal and disable "Override IDE shortcuts" - this will let you use shortcuts like Synchronize - Ctrl+Alt+Y (Cmd+Alt+Y for Mac) - right from the Terminal.