Have you seen this thread? https://github.com/Microsoft/vscode/issues/57020
Try running code as sudo code
If you cannot save a file with VSCode it could mean that the place you moved the files to needs different user permissions.
Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.
ow do I resolve the vs code Insufficient permission issue when saving a file
I've given appropriate permissions to code directory: chown -R me:staff my-app/
But when I open vscode and try to save a file it says "Insufficient permissions, Retry as admin"
If I launch vscode with sudo from cmd line sudo code . then I dont get that error but then the autocompletion extensions dont seem to work
Please or to participate in this conversation.