max_user_watches

10 Jan 2020 20:07 ubuntu ubuntu-install vscode

Visual Studio Code is unable to watch for file changes in this large workspace

VS Code documentation is here.

Rather than editing /etc/sysctl.conf, I added /etc/sysctl.d/60-fs-inotify.conf, with the following contents:

fs.inotify.max_user_watches = 524288

To reload it, you need to run sudo sysctl --system.