How do I solve the error “Insufficient permisssions” when using vscode?

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?

0
задан 24 November 2020 в 04:02

0 ответов

Другие вопросы по тегам:

Похожие вопросы: