How to force folder refresh in Sublime, when "Project > refresh" doesn't work?
Solution 1:
- Open Sublime Text.
- Select Preferences from the top menu and click Key Bindings – User. Here you will see a JSON file that should contain an array of objects (initially the array is empty). Every object will represent a shortcut.
-
Add the following (new shortcut object) entry into the array (between the brackets):
{ "keys" : ["f5"], "command" : "refresh_folder_list" }
You should be able to refresh the folders with F5.
Solution 2:
I have added this myself the other day. I constantly work in an environment where files in the project are changing before I can see them.
Goto 'Preferences' menu -> 'Key Bindings' -> 'User' which will open a JSON file, add below code, save and close that file.
{ "keys": ["ctrl+f5"], "command": "refresh_folder_list" }
It will work like charm 100%. Thanks for asking this question.