I just started using VSCode version 1.24.1.
After loading a folder, it shows warning
Visual Studio Code is unable to watch for file changes in this large workspace
After i check the limit as suggested on their guide, using
cat /proc/sys/fs/inotify/max_user_watches
I get 8192, while my project has only 650 files (of which 400 are inside .git)
Why does this happen? Is this a bug or am I missing something?
(Increasing the limit is clearly not the right solution.)
Use Quick Actions to fix or refactor code Or, when your cursor is on the line with the colored squiggle, press Ctrl+. or select the light bulb, error light bulb, or screwdriver icon in the margin. You'll see a list of possible fixes or refactorings you can apply to that line of code.
To undo a few of your pending changes To undo all changes you have made in your solution or a code project, open the context menu, and then choose Undo Pending Change. In the Undo Pending Changes dialog box, make sure the changes you want to undo are selected, and then choose Undo Changes.
what linux ppl dont know, there are ppl new to linux like me. So if you're a noob, this is for you.
terminal
.cat /proc/sys/fs/inotify/max_user_watches
(might be a number 8k+)now (a)
for vim
-Editor
sudo vim /etc/sysctl.conf
fs.inotify.max_user_watches=524288
(make sure you DONT have a #
in front of the command):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)
sudo sysctl -p
cat /proc/sys/fs/inotify/max_user_watches
(should be 500k+ now)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With