Skip to content

Is there any command to refresh/reload opened files in code-server? #2944

Answered by oxy
dclong asked this question in Q&A
Discussion options

You must be logged in to vote

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.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dclong
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants