How to auto-reload current file in sublime text

允我心安 提交于 2019-12-12 13:14:23

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!