VP of DevRel RapidAPI ❯ Award-winning Web Developer NodeCLI.com ❯ Google Dev Expert Web tech ❯ 2x GitHub Stars Award ❯ WordPress Core Dev ❯ TEDx Speaker ❯ "awesome example for devs" — Satya Nadella
Location
San Francisco Bay Area
Education
EE-CS Engineer turned Software Developer
Work
VP of DevRel (DX Eng., Content & Community) RapidAPI ❯ Google Dev Expert ❯ GitHub Star ❯ NodeCLI.com
Thanks for sharing this but I messed it up. Was just trying to see how this works quickly — to answer a question on Twitter and the command code --user-data-dir is potentially destructive. I opened on my desktop and now there are a whole bunch of files there as well as that the article mentions nothing about going back and what was the default user directory?
My normal VSCode setup is all broken now. Looks like that VSCode is still using Desktop as the user directory instead of whatever was the normal default and I have no idea what was that.
Truly lost here. :(
Kindly, mention in your article that the command is potentially destructive.
VP of DevRel RapidAPI ❯ Award-winning Web Developer NodeCLI.com ❯ Google Dev Expert Web tech ❯ 2x GitHub Stars Award ❯ WordPress Core Dev ❯ TEDx Speaker ❯ "awesome example for devs" — Satya Nadella
Location
San Francisco Bay Area
Education
EE-CS Engineer turned Software Developer
Work
VP of DevRel (DX Eng., Content & Community) RapidAPI ❯ Google Dev Expert ❯ GitHub Star ❯ NodeCLI.com
OK. So, it looks like you have to open VSCode with a simple code command for it to reset the user directory — where ever it is set to default since the docs certainly don't mention anything about what is the default here.
Focused on getting people excited to learn and helping developers learn quickly.
Created: https://vimforvscode.com
@freeCodeCamp alum
Instructor @eggheadio
Hi Ahmad! Sorry to hear about the trouble you had 😢
But it sounds like you were able to figure it out? Is there anything you'd like me to add to the post to better clarify using this method as an alias vs using the regular code command?
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Thanks for sharing this but I messed it up. Was just trying to see how this works quickly — to answer a question on Twitter and the command
code --user-data-dir
is potentially destructive. I opened on my desktop and now there are a whole bunch of files there as well as that the article mentions nothing about going back and what was the default user directory?My normal VSCode setup is all broken now. Looks like that VSCode is still using Desktop as the user directory instead of whatever was the normal default and I have no idea what was that.
Truly lost here. :(
Kindly, mention in your article that the command is potentially destructive.
OK. So, it looks like you have to open VSCode with a simple
code
command for it to reset the user directory — where ever it is set to default since the docs certainly don't mention anything about what is the default here.Hi Ahmad! Sorry to hear about the trouble you had 😢
But it sounds like you were able to figure it out? Is there anything you'd like me to add to the post to better clarify using this method as an
alias
vs using the regularcode
command?