Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to refresh file when changes are detected in PhpStorm

Tags:

php

phpstorm

My colleague and I are working on the same project in PhpStorm shared in network, and it happens that we are editing the same Javascript file, however when I change the file, there is a delay for the update file on his computer and it's the same with me. Is there a way to make the PhpStorm update the file when it detects a change? Without this delay?

like image 459
Caio Kawasaki Avatar asked Sep 30 '22 00:09

Caio Kawasaki


2 Answers

Go to File>Synchronize to refresh the files in the project or Use the shortcut Ctrl + Alt + Y in windows and Cmd + Alt + Y in Mac.

enter image description here

like image 186
Dev Avatar answered Oct 03 '22 01:10

Dev


You could manually reload file changes by clicking File > Synchronize, if it's not reloading automatically.

And for automatic reload go to File > Settings > Appearance & Behavior > System Settings and under Synchronization section check Synchronize files on frame or editor tab activation and save this settings by pressing OK. That's it.

enter image description here

like image 39
Sazzadur Rahman Avatar answered Oct 03 '22 01:10

Sazzadur Rahman