Skip to content

Instantly share code, notes, and snippets.

@bhushan
Last active June 19, 2020 07:33
Show Gist options
  • Save bhushan/ca319dd0ebe8848fc9e07ea44da6895d to your computer and use it in GitHub Desktop.
Save bhushan/ca319dd0ebe8848fc9e07ea44da6895d to your computer and use it in GitHub Desktop.
Increase the number of system watchers if needed

Increase the number of system watchers if needed VS Code needs to watch for file changes to work correctly. That's why the following warning may appear because our Laravel project contains a lot of files:

VS Code system watchers

To fix it, you can run the following commands in your terminal, and then restart VS Code:

echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf
sudo sysctl -p
@bhushan
Copy link
Author

bhushan commented Jun 19, 2020

vscode-system-watchers

Solves this problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment