-
I found myself update files frequently from command line. For example, format code using command line. The changes on opened files from command lines are not automatically updated to the opened editors. I wonder whether there is any command to refresh/reload files? Or is there any configuration to make opened files auto refresh/reload on changes from other source (say, command line)? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
code-server should reload any files on change except when you have some unsaved changes; I think File -> Revert should otherwise work, though. Another issue that you might run into is the lack of available watcher slots on a Linux host - to fix, I'd recommend using |
Beta Was this translation helpful? Give feedback.
code-server should reload any files on change except when you have some unsaved changes; I think File -> Revert should otherwise work, though.
Another issue that you might run into is the lack of available watcher slots on a Linux host - to fix, I'd recommend using
sysctl -w fs.inotify.max_user_watches=N
, with N being something like 524288. Keep in mind that every watcher uses up to 160 bytes, IIRC, so adjust the number based on the total memory on your host.