max_user_watches

2020-01-10 20:07:00 +0000 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-inotify.conf, with the following contents:

fs.inotify.max_user_watches = 524288

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