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

1 ответ

Вы сможете предоставить необходимые разрешения для этого снимка, следуя этим инструкциям: Руководство по снимку разрешений. Вы также можете удалить оснастку и использовать пакет Microsoft .deb, чтобы избежать этих проблем.

0
ответ дан 21 November 2020 в 13:10

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

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