Share VSCode data folder across OS systems - visual-studio-code

How can I share one Data folder between Windows and Linux Visual Studio Code on a multi-boot PC?
I want to have the same settings across both platforms, without having to set them up on each system individually.
VSCode on Windows (which is also downloaded as .zip so it's portable) stores all settings in a data folder, but I can't seem to make Linux version (downloaded as a portable .tar.gz file) use that same data folder that Windows version of VSCode uses.
What i mean by that, is when i make some setting change when i'm working in Windows, next time i boot up Linux, and start VSCode, i dont want to need to again change that same setting i applied on Windows VSCode already.
This is theoretically possible by using soft link on data directory, but it works partly.
Extensions are not loaded in Linux even if there is extensions folder in data folder, i downloaded some extension in Linux, and when i exit VSCode, extension disappears, while there are still some extensions in data from Windows VSCode.
I have custom theme in Windows VSCode, but it doesn't load in Linux at all.
I have online settings sync, but it doesn't sync everything. I want it to be synced by using literally same folder, so i don't feel any difference when switching OSes..

Related

share settings between linux and windows

I have a question: I would like to share settings between two Visual Studio Code installations, one on Windows and another one on Linux.
Simply activating, the syncing of the settings is a bad idea since they contain platform-dependent paths, e.g., the location of the ssh config file. I did it and ended up with a broken VSC installation on linux: it could not find anything because the settings contained windows paths.
I ended disabling most of the syncings, up to the point where the syncing is useless.
Is there any way, a plugin, to easily share settings between installation on different OS platforms?

Multiple configurations for VSCode

At the moment I'm working on a few projects at the same time using VSCode, one in react, another in angular and some good old javascript.
The problem is that I have a few extensions installed that conflict, for example, some code snippets that are the same for React and Angular.
Is it possible to have 3 visual studio code installed on a Mac with different extensions installed?
There are two options for such setup:
Portable installation - unzip VSCode in a folder and create a subfolder there called data. This will trigger the portable mode and all settings will be stored in that data folder. The downside is that you'll have to manually update every portable folder whenever new version comes out. More info here.
Custom config paths - create a shortcut for your VSCode installation, and add those parameters:
--user-data-dir <some-path> --extensions-dir <some-path>
You can put them wherever and have as much shortcuts as you want, they even run in parallel. Best part is once you update the installation, all the configs are upgraded too. More info here.
Both modes are incompatible, so you have to choose one.

VScode is forcing my extensions to be installed on WSL

I am trying to install platformIO an IOT tools extension and VScode installs it on wsl with no option for me to change to a local installation. Because it has a lot of dependence on IO and the extension just uses python it is really important for that it is installed locally. Is there any way to do this?
The green space in the bottom left tells you what "OS" VScode is using (win or one of the multiple WSL you might have on your system). It looks like this for WSl
or empty like this for windows
just click on it to change it. Extentions are installed to the respective environment/OS.

kubernetes tools in portable vscode have issue as it puts the tools in user directory

I have installed kubernetes extension on my vscode portable version.
even if have create the data directory inside the vscode folder.
the tools are getting installed in the C:\Users\ directory as .vs-kubernetes folder
is there any way to have this truely portable ?
The reason i am facing the issue is i am running this on citrix and we have very less user space.

Visual Studio Code on Mac

I installed Visual Studio Code on Mac/OSX (drop app in Applications)
- uninstalled (moved the App to the Trash)
- installed again
Since the second time I installed I didn't get the same start screen as during my first install I suppose somewhere in my file system Visual Studio Code writes something?
I would like to know where (besides in the Application folder) Visual Studio Code writes files?
VSCode uses another folder to store settings, including a flag to indicate if welcome should show or not. The folder is:
Windows: %APPDATA%\Code
Mac: $HOME/Library/Application Support/Code
Linux: $HOME/.config/Code
I've looked on my wife's mac and can't find a trace of these settings, they're not in any standard folder ($HOME, /Libraries/Preferences, /System/Libraries/Preferences nor /Libraries/Containers).
But to open the original start screen, you can use Help -> Show Welcome.
The settings are stored though, if you run "defaults read" you will see a number of settings related to vscode mentioned, including the files you had open last time you closed. Since Visual Studio Code uses the GitHub Atom Shell under the hood, you need to read the settings for atom using
defaults find atom
which will show you some data stored for the app.