DEV Community

Discussion on: How to Create Code Profiles in VSCode

Collapse
 
ahmadawais profile image
Ahmad Awais ⚡️

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.

Collapse
 
ahmadawais profile image
Ahmad Awais ⚡️

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.

Collapse
 
jsjoeio profile image
Joe Previte (he/him)

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?