Here we will show how to download the Microsoft portable Visual Studio code files and use them on windows 10/8/7 or Linux using USB drive without installing.
Microsoft’s Visual Studio Code is a free, open-source code editor comes with many useful features for developers for developing and debugging modern cloud and web applications. Although it is developed by Microsoft for Windows, also available for Linux and macOS and comes with everything you need for software development.
Unlike Visual Studio and Eclipse, the Visual Studio Code (VS Code) does not work with project files, but at the file and folder level. What we have to do is opening of a file or folder to start development. VS Code interprets the project files as defined by the various frameworks and platforms.
For example, if a folder contains a Node.js package JSON file, VS Code uses the information it contains to provide project and platform-specific features such as matching autocomplete. TypeScript projects require an extension.
The VS code is available in the installation formation, however, if you are a coder and developing applications using multiple systems, such home or office, then you don’t need to install. Even we can use our friend’s systems to develop apps without installing Visual Studio Code because it is available in the portable format. We can download Visual Studio code portable zipped file from its official website and after that just extract it to any system you want.
Here we will show how to download the portable Visual Studio code files to use them without installing.
Install and Run Visual studio code portable on Windows and Linux
- Go to official Microsoft Visual studio code official website to download the portable version.
#First, we will show how to use it for Windows 10/8/7
- Click on the Download page, here is the link (for convenience).
- Instead of downloading a regular executable file, click on the Zip (32 or 64 bit as per your system) available to download for Windows. For Linux systems, once can download .tar.gz version of the VS code.
- After downloading either extract directly on the system where you want to use it or directly in the USB drive.
- Now, inside the extracted folder of Visual Studio code, create a folder named “data“.
- This data folder will be used by the VS code portable to store all sessions, extensions, preference, codes data etc. Furthermore, you can also copy any Windows or Linux installed VS code data folder to start with your previous sessions. Of course, related files or folder should also be on the same system.
- Moreover, we can also move the portable installation data folder to one installed on some system to update work with code project you were handling on the installed Visual studio code one.
- Now, run the Code.exe file available in the extracted folder.
- You will get the regular interface of the VS code.
# Now, we use portable Visual studio code for Linux local or USB drive
- As I told above on the same download page you will get Linux version of this code editor too. Instead of downloading .DEb or .RPM package, get the tar.gz one. Now you can either move the extracted folder to a USB drive or leave it on a local disk.
- Now simply right click on the compressed VS code file and extract it. If you are using command terminal then the command to extract the .tar.gz file is:
tar -xzf filename
- After just like we did in Windows, create a folder named ‘data‘ inside the folder of Visual Studio code.
- Now inside the VS code folder anywhere on the blank space, right-click and select Open in Terminal.
- Inside the Terminal run the following command:
Note: The portable version will not update automatically and need to it manually.
Thus, in this way we can download, run and use the portable visual code studio using USB Drive on both Windows and Linux operating system.