How can I see file changes initiated outside Rider?

I have a tool that format TypeScript code after save. This tool works as standalone tool without Rider. It subscribes to file changes and formatting the code by some rules. Problem is that Rider doesn't show changes on current tab when I press CTRL+S but a tool changes that file. If I move focus on another Rider tab then return focus to this tab I see changes that tool had made. But I don't see file changes real time. How can I see changes real time?

0
2 comments

Hi! 

Thank you for contacting us.

Unfortunately, it is not possible to refresh files "realtime". To show changes Rider needs to reload a file from disk. It happens automatically when you get focus to the tab if `Settings/Preferences | Appearance & Behavior | System Settings | Synchronization | Synchronize files on frame or editor tab activation` enabled. 

Should you have any other questions, let us know. 

 
0

I also noticed that when I have the same file open in VSCode, changes I make in Rider aren't written to disk until I build the project. This is very frustrating, as I often go between the two to make the modifications I need. Even worse, if Rider crashes or Windows updates and i haven't done a build, then I lose all the work I have.

 

0

Please sign in to leave a comment.