When I change any file, the system will deny me access. What\'s going on? How do I properly set permissions on Mac?
Go to your terminal and input the command:
sudo "/Applications/Visual Studio Code.app/Contents/MacOS/Electron" ~/.bash_profile
It works for me.
However, according to the answers on the websites, it is not recommended to get super user permission when you launch the vs code. I am new to vs code as well so I don't know the right method to get permission.
Besides, on my mac, you will get only permission once when you type in the command and after you exit your vs code, you will not possess the permission if you open the vs code again. I am still working on it and try to fix.
But this answer should fix your problem.