How to Install Code-server on Windows 10
In this tutorial, we will show you how to install code-server, an open-source version of Visual Studio Code, on Windows 10. Code-server allows you to run Visual Studio Code in the browser, making it easier to code on multiple devices.
Prerequisites
Before installing code-server, make sure you've got the following prerequisites:
- Node.js (v12 or later)
- NPM (v6 or later)
- Git
Steps
Follow the steps below to install code-server on your Windows 10 machine:
- Open Command Prompt or PowerShell on your Windows 10 machine.
- Clone the code-server GitHub repository by running the following command in the Command Prompt or PowerShell:
git clone https://github.com/coder/code-server.git
- Navigate to the
code-serverdirectory by running the following command:
cd code-server
- Install the dependencies by running the following command:
npm install
- Build the code-server binaries by running the following command:
npm run build:web
- Run the code-server by running the following command:
npm run start:web
- Open your browser and go to
http://localhost:8080to access code-server. - If you want to access code-server from other devices, replace
localhostwith your machine's IP address.
Conclusion
By following the steps outlined in this tutorial, you should now have code-server up and running on your Windows 10 machine. This allows you to code in Visual Studio Code in the browser, making it easier to work on multiple devices.