Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to auto-reload current file in sublime text

Tags:

sublimetext3

Sometimes I would like to modify files in another text editor and switch back, but Sublime Text 3 wouldn't reload the current file that I edited before.

How do I get it to reload the file automatically?

like image 590
Searene Avatar asked Feb 06 '23 21:02

Searene


2 Answers

There's a setting to control whether you get to see a prompt, but otherwise Sublime Text reloads the file automatically by default.

See the setting in Preferences.sublime-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": false
like image 97
idleberg Avatar answered Apr 02 '23 14:04

idleberg


I believe AutoReload should do the trick.

You can also reload file manually using menu File->Revert File

like image 45
Dmitry Yantsen Avatar answered Apr 02 '23 14:04

Dmitry Yantsen