The Computer Oracle

How can I make Sublime Text reload the file being edited?

--------------------------------------------------
Rise to the top 3% as a developer or hire one of them at Toptal: https://topt.al/25cXVn
--------------------------------------------------

Music by Eric Matyas
https://www.soundimage.org
Track title: Digital Sunset Looping

--

Chapters
00:00 How Can I Make Sublime Text Reload The File Being Edited?
00:16 Accepted Answer Score 93
00:41 Answer 2 Score 9
00:59 Answer 3 Score 1
01:16 Answer 4 Score 0
01:33 Thank you

--

Full question
https://superuser.com/questions/815045/h...

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#texteditors #sublimetext3 #sublimetext

#avk47



ACCEPTED ANSWER

Score 93


To re-load the current file, you can revert the file, either through the menu entry File | Revert File or through the command File: Revert (open the command palette by pressing Ctrl+Shift+P and type revert).

To make it easier in the future, you can bind a shortcut to the revert command, for example F5, simply by adding an entry to your key bindings (Preferences | Key Bindings - User):

{
    "keys": ["f5"],
    "command": "revert"
}



ANSWER 2

Score 9


Although there is an accepted answer, it requires that we have to refresh manually everytime by pressing F5. Try this package Auto Refresh here. This automatically refreshes the file in x seconds which is configurable.




ANSWER 3

Score 1


Though asked more than a year ago: you can also use "File->Reopen with encoding..." command. Note, all your changes made so far will be discarded while performing reload/revert




ANSWER 4

Score 0


In addition, I just realized that when switching from the search bar to the main editor panel, it refresh the view.

So ctrl+F then escape.

Not the best, but no configuration or clicking required. Also, I would expect it not to work if you have unsaved edition.