Created
November 22, 2020 04:27
-
-
Save saniyathossain/04b70210a6c06e0083e7ded18677df27 to your computer and use it in GitHub Desktop.
VSC unable to watch for file changes in this large workspace Linux
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| REFERENCE: | |
| https://stackoverflow.com/questions/50901127/vsc-unable-to-watch-for-file-changes-in-this-large-workspace-weird | |
| Open a new terminal. | |
| cat /proc/sys/fs/inotify/max_user_watches (might be a number 8k+) | |
| now (a) for vim-Editor | |
| (a) sudo vim /etc/sysctl.conf | |
| (a) go all the way down and add a new line with: fs.inotify.max_user_watches=524288 (make sure you DONT have a # in front of the command) | |
| (a) type :wq! and press enter | |
| or (b) for nano-Editor (thanks to @bradrar) | |
| (b) sudo nano /etc/sysctl.conf | |
| (b) go all the way down and add a new line with: fs.inotify.max_user_watches=524288 (make sure you DONT have a # in front of the command) | |
| (b) type ctrl + x, type y and press enter | |
| type sudo sysctl -p | |
| type again: cat /proc/sys/fs/inotify/max_user_watches (should be 500k+ now) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment