I want to edit .bash_profile with VS Code, but it presents a permission error when I try to save. Sublime typically prompts me with a Administrator login prompt.
Here's my current workflow...
Running vscode under sudo
permissions is coming in the April release. Initially you will need to launch a new instance of VSCode and it will only be able to edit root-owned files, see https://github.com/Microsoft/vscode/issues/3068 for more details on the feature.
However, I recommend you change the ownership of ~/.bash_profile
though as there's not reason you shouldn't be owning that file:
sudo chown YOUR_USER_NAME ~/.bash_profile
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With