I'm a new user of Ubuntu. I have installed vs code using:
sudo snap install --classic code
But I can't use it. For example, when I try to create a file I get the error:
Unable to write file '/opt/lampp/htdocs/' (NoPermissions (FileSystemError): Error: EACCES: permission denied
When I try to save a file after editing, it shows the error:
Failed to save 'index.php': Insufficient permissions. Select 'Retry as Sudo' to retry as superuser.
But I can fix this by clicking on retry as sudo. Is there anyway to stop both of these errors permanently?