If you are struck to open your /var/www/html/ files in vs code and these files are not editable. You can open the folder as a sudo cmd.
Go to the directory /var/www/html/web_folder and open terminal there and hit the below command.
sudo code . --no-sandbox --user-data-dir /home/shyam/Development/PHP/mcqbuddy/
By this way you will be able to edit your files in vs code.
Thanks and share your experience with others as well.
Login to discuss.