Ashwin Sharma
Ashwin Sharma

Reputation: 117

Sublime text editor doesn't auto-refreshes the file if it is modified by another program

Although Sublime is a really powerful text editor but I am facing an issue. I have been using sublime text editor to view logs of my application.Suppose I have already opened file in my editor. After the logs are modified by the app server. Sublime doesn't give any popup like we get in other editors

Example:

NOtepad++ says:

enter image description here

Also it doesn't modify the file. I have to close the file explicitly and then I re-open the file to ready the modified logs.

Only options i get in my sublime preferences are :

enter image description here

Please help..!

Upvotes: 2

Views: 1929

Answers (2)

Rick van Lieshout
Rick van Lieshout

Reputation: 2316

You are using an extremely outdated version of sublime (1.4). You can enable this functionality by upgrading and performing a small settings tweak:

  • Download the new SublimeText
  • Install it and open it
  • Go to the preferences menu and select "settings"

enter image description here

  • This will open the settings files for sublime, scroll down to line 349 on the left panel and copy that line.
  • Paste in the copied line into the right pane and replace "false" with "true" enter image description here
  • Save and restart SublimeText

This should fix your issue entirely while also upgrading you to the awesome new SublimeText :)

Happy coding!

Upvotes: 2

Gerard Roche
Gerard Roche

Reputation: 6411

Set the following setting to true.

Menu > Preferences > Settings

// Always prompt before reloading a file, even if the file hasn't been
// modified. The default behavior is to automatically reload a file if it
// hasn't been edited. If a file has unsaved changes, a prompt will always
// be shown.
"always_prompt_for_file_reload": true

Upvotes: 0

Related Questions