Visial Studio Code (VSCode): The Dump

Visial Studio Code (VSCode): The Dump

Remote editing

This is common Visual Studio Code problem for Remote SSH editing.

Warning: inotify watchers?

This is a part of inotify filesystem options. A sensible setting is typically 100000 or more on a development machine and Ubuntu’s default of 8K is way too little.

Retrieve the current amount:

sysctl fs.inotify
# or: cat /proc/sys/fs/inotify/max_user_watches

Retrieve a number of opened files for the user:

lsof | grep inotify | wc -l

We can increase the values like this

sysctl -n -w fs.inotify.max_user_watches=1048576
sysctl -n -w fs.inotify.max_user_instances=512

But to make it permanent, it must being added to /etc/sysctl.conf:

echo fs.inotify.max_user_watches=1048576 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p


PHP in VSCode

Setup VS Code for Efficient PHP development 🚀 | Theodo Getting VSCode ready for PHP development - North Creation Agency

date 01. Jan 0001 | modified 28. May 2021
filename: VSCode » Dump