问题
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?
回答1:
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
回答2:
I believe AutoReload should do the trick.
You can also reload file manually using menu File
->Revert File
来源:https://stackoverflow.com/questions/40171356/how-to-auto-reload-current-file-in-sublime-text