解决"Visual Studio Code is unable to watch for file changes in this large workspace" (error ENOSPC)

运行

cat /proc/sys/fs/inotify/max_user_watches

  查看现在的大小

 

 修改/etc/sysctl.conf,在最后一行添加

fs.inotify.max_user_watches=524288

  执行

sudo sysctl -p

  来源:

https://code.visualstudio.com/docs/setup/linux#_visual-studio-code-is-unable-to-watch-for-file-changes-in-this-large-workspace-error-enospc

posted on 2021-01-26 19:48  我尽量尽力而为  阅读(1824)  评论(0)    收藏  举报

导航