1

I got an error message today when opening VS code as sudo/root,

"It is recommended not to run Code as 'root'."

THis seems so stupid, Visual Studio code is an IDE, an IDE is used to editing files is it not? Without sudo you wouldn't be able to edit, create, delete, modify, or do anything with any file, so what would the point of the IDE be without sudo? I'm struggling to understand why its a bad idea.

Am I doing something wrong, and if so what should I do? I'm a web developer, so of course I need write and edit permissions to files. Without that, it wouldn't be an IDE, the program would be useless...

I have the files in /var/www/html.

Eliah Kagan
  • 119,640

0 Answers0