Hey, i have a program made in vb 2010. The problem is it uses my files on the computer such as different cursors and pictures and i really want.
![]()
Visual Studio Code supports Portable mode. This mode enables all data created and maintained by VS Code to live near itself, so it can be moved around across environments.
This mode also provides a way to set the installation folder location for VS Code extensions, useful for corporate environments that prevent extensions from being installed in the Windows AppData folder.
Portable mode is supported on the ZIP download for Windows and Linux, as well as the regular Application download for macOS. See the Download page to find the correct
.zip file for your platform.
Note: Do not attempt to configure portable mode on an installation from the Windows User or System installers. Portable mode is only supported on the Windows ZIP (
.zip ) archive. Note as well that the Windows ZIP archive does not support auto update.
![]() Enable Portable modeWindows, Linux
After unzipping the VS Code download, create a
data folder within VS Code's folder:
From then on, that folder will be used to contain all VS Code data, including session state, preferences, extensions, etc.
The
data folder can be moved to other VS Code installations. This is useful for updating your portable VS Code version, in which case you can move the data folder to a newer extracted version of VS Code.
macOS
On macOS, you need to place the data folder as a sibling of the application itself. Since the folder will be alongside the application, you need to name it specifically so that VS Code can find it. The default folder name is
code-portable-data :
Portable Mode won't work if your application is in quarantine, which happens by default if you just downloaded VS Code. Make sure you remove the quarantine attribute, if Portable Mode doesn't seem to work:
Note: On Insiders, the folder should be named
code-insiders-portable-data .
Update Portable VS Code
On Windows and Linux, you can update VS Code by copying the
data folder over to a more recent version of VS Code.
On macOS, automatic updates should work as always, no extra work needed.
Migrate to Portable mode
You can also migrate an existing installation to Portable mode:
Here's the desired outcome on Windows:
TMP directory
By default, the default TMP directory is still the system one even in Portable Mode, since no state is kept there. If you wish to also have your TMP directory within your portable directory, you can create an empty tmp directory inside the data folder. As long as a tmp directory exists, it will be used for TMP data.
![]() Comments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |