Reputation: 31
so few months ago I started using VScode. Im pretty amazed by the functionalities it offers through lots of extensions available and configurability.
Few days ago I encountered this error, I installed VScode as user1, everything works, but when trying to run vscode as another user (user2) I get this error: "ENOENT: no such file or directory, mkdir". I was hoping that all settings, snippets and extensions will be available to all the users on the machine, but apparenly I'm missing something even when running as another user. Can someone help ?
Upvotes: 1
Views: 3024
Reputation: 11
You could always use the SSH extension from user1's account and SSH to [email protected], that way I think you'll be using user1's local VScode settings but will be logged in as user2
Upvotes: 1
Reputation: 31
Apparently VScode is not concepted like this. Every user should have its own settings folder (~/.config/Code/User) and extension folder (~/.vscode/extensions). In order to sync settings and extensions between users simple copy/paste should do or some sync extension can be used.
Upvotes: 1