I'm new to Ubuntu and here is my issue:
VSCode is always asking for permission to save any edit on any file.
I just want to edit and save without having to enter my password every time so is this possible on Ubuntu?
I tried to add a new user, but I see also the same problem.
I tried to run VSCode as root, but it said it's dangerous to run it as root.
How can I avoid this permission step when saving a file with VSCode?
Make sure that you (as an Ubuntu user account) are the owner of the folder and files you are editing in VSCode:
cd /path/to/my/files
chown -R $USER:$USER .
Note: If you are not the user, you might have to precede that with sudo
:
sudo chown -R $USER:$USER
okay i used chown -R $USER:USER * still asking for permission
@OmarMohmedAbdelhady not '*', but '.', to be done in the folder where your files are edited.
@OmarMohmedAbdelhady Actually, the full command would be
sudo chown -R $USER:$USER .