visual-studio-codeportable-applications

VS Code don't load the user-data


My problem is that the portable version of visual studio code don't load my settings I had copied from the folder %APPDATA%/code/user.

I loaded the .zip data and extracted the folder. I added a data folder into the extracted folder of VS Code. It's in Visual Studio Code\data. In there i copied the folder "user" from %APPDATA%/code/ and renamed the user folder into "user-data". Then I started code and the usersettings are not loaded.

The command .\code.exe --user-directory .\data\user-data won't work.

Is this a bug or did I do something wrong?


Solution

    1. You can simply create a folder called data in the root folder with VS Code.
    2. After the startup, the files with standard settings will be created in the data folder.
    3. Then you can just copy the settings from the folder %AppData%\Code\User to the folder data\user-data\User.
    4. To migrate already installed extensions, copy the contents of the %HomePath%\.vscode\extensions folder to the data\extensions folder.