fxvlad
fxvlad

Reputation: 129

VS Code - Permission denied writing to a file

I installed an extension for creating notes and gave it a path for storing them in my vscode folder which is in program files, but vscode shows there is no permission to write in that folder. How can I fix it?

Upvotes: 3

Views: 34957

Answers (3)

Shafin Hasnat
Shafin Hasnat

Reputation: 649

In unix, it can be done by changing directory ownership to $USER

chown $USER /directory

That's all!

Upvotes: 0

zahid rasool
zahid rasool

Reputation: 628

Launch VS Code. Open the Command Palette (⇧⌘P) and type 'shell command' to find the Shell Command: Install 'code' command in PATH command. Then open terminal and type this command "sudo code"

Upvotes: 0

Vyacheslav
Vyacheslav

Reputation: 193

Open your editor as administrator.

Upvotes: 2

Related Questions