亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

Table of Contents
Table of contents
What is code-server? Why self-host?
Install code-server on Linux
Get started with code-server
File Explorer
Editor area
terminal
Extension plug-in
Customize your browser IDE
Create and run the first program in code-server
Home Computer Tutorials Computer Knowledge How to Set Up a Web-based Code Server on Linux - Make Tech Easier

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Aug 02, 2025 am 12:18 AM

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Want to code anytime, anywhere, but don’t want to carry a laptop with you? Try code-server! This is a powerful self-hosted app that brings all the features of the full version of Visual Studio Code to your web browser. Without relying on a third-party cloud IDE, you can deploy code-server on your home lab server and access securely from any device. By building your own code-server, you can not only obtain a consistent and convenient development environment, but also have complete control over your code and data.

Table of contents

  • What is code-server? Why self-host?
  • Install code-server on Linux
  • Get started with code-server
  • Customize your browser IDE
  • Create and run the first program in code-server

What is code-server? Why self-host?

code-server can run VS Code on a remote server, allowing you to access it through your browser. Its functions are almost exactly the same as the desktop version, and supports automatic completion, debugging, Git integration and plug-in extensions. Especially friendly for weaker performance devices like tablets or Chromebooks, because all operations are done on the server side, ensuring a smooth development experience and a unified environment.

Choosing self-hosting means you have full control: you can customize your domain name, enable HTTPS encryption, manage user rights, and expand server resources as needed, while ensuring privacy and data security.

Tips : Proficient in VS Code's shortcut keys can greatly improve coding efficiency. You might as well refer to a quick lookup table for quick access!


Install code-server on Linux

Installing code-server is very simple, and this article will be deployed using Docker.

First, pull the official image from Docker Hub:

 <code>sudo docker pull codercom/code-server</code> 

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

This step ensures that you get the latest version of the image locally and prepare for subsequent container creation.

Next, start a code-server container in background mode, set the password and mount the persistent storage:

 <code>sudo docker run -d --name code-server -p 8443:8080 -v "$HOME/code-server-data:/home/coder/project" -e PASSWORD="my_password" codercom/code-server</code> 

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

After the deployment is completed, visit http://ipnx.cn/link/e8a079d6a3dbabc7bcfa0047f63e475c in the browser.


Get started with code-server

After logging in, you will see an interface that is almost exactly the same as the desktop version of VS Code. The following is a brief introduction to the main functional areas:

File Explorer

The Explorer on the left helps you browse the project structure, allowing you to easily open, create, or manage files and folders.

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Editor area

In the middle is the main editing area, and when you open the file, the content will be displayed here.

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

You can write, modify, and format code like you do in the desktop version.

terminal

The terminal is located at the bottom of the interface and can be opened through the top menu "Terminal → New Terminal", or use the shortcut key Ctrl ` .

You can also use Ctrl Shift C to quickly call out the terminal.

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Extension plug-in

What makes VS Code powerful is its rich expansion ecosystem. Click the extension icon in the sidebar, and you can browse, install and manage various plug-ins, such as syntax checking tools, themes, language support, etc.

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Use the search bar to find the plug-ins you want, and you can enable them immediately after installation, enhancing the editor's functionality.


Customize your browser IDE

You can personalize the code-server according to your personal preferences, such as changing themes, installing plug-ins, adjusting configurations, etc. Take changing the theme as an example: Click the gear icon in the lower left corner, hover the mouse over the Themes , and select Color Theme :

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

A list of available topics will then pop up, click to preview and apply.

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

You can also download more richer themes from the Extended Market and enable them immediately.

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Similarly, other settings can be easily adjusted. Click the gear icon and select Settings to enter the configuration interface.

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Here, you can modify editor behavior, font size, code formatting rules, etc.


Create and run the first program in code-server

Create a new file in the Explorer panel, or use the shortcut key Ctrl Alt N :

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Click Select a language , or press Ctrl K and then press M to select a language (such as Python):

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Paste the following code in and print the welcome message three times:

 <code>for i in range(3):<br> print("Welcome to maketecheasier.com")</code>

Make sure that the system has Python installed. Then press Ctrl S to save the file, enter the file name (such as mteExample.py), and click OK.

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Then press Ctrl ` to open the terminal and run the following command to execute the script:

 <code>python3 mteExample.py</code> 

How to Set Up a Web-based Code Server on Linux - Make Tech Easier

Now, code-server is running successfully on your Linux system! You can freely customize themes and plug-ins, write and run programs in multiple languages, and even improve security with custom domain names and HTTPS. Next, try integrating Git workflows, enabling SSL for production environments, or adding tools such as JupyterLab, Docker, Portainer, etc. to your home lab to create a more powerful and flexible development environment.

The above is the detailed content of How to Set Up a Web-based Code Server on Linux - Make Tech Easier. For more information, please follow other related articles on the PHP Chinese website!

Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undress AI Tool

Undress AI Tool

Undress images for free

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Clothoff.io

Clothoff.io

AI clothes remover

Video Face Swap

Video Face Swap

Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

SublimeText3 Chinese version

SublimeText3 Chinese version

Chinese version, very easy to use

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

Google Translate Picture | Translate Text in Images - MiniTool Google Translate Picture | Translate Text in Images - MiniTool Jul 12, 2025 am 12:57 AM

This Google translate picture guide shows you how to translate text from an image. If you are looking for more computer tips and solutions, you can visit php.cn Software official website where you can also find some useful computer tools like php.cn

How to Install Device Drivers Manually on Windows 11/10? - MiniTool How to Install Device Drivers Manually on Windows 11/10? - MiniTool Jul 06, 2025 am 12:15 AM

If your Windows 11/10 computer doesn’t automatically the latest versions of device drivers, you will need to manually install them. In this post, php.cn Software will show you 3 different methods to manually install drivers on your device.

How to Amplify/Boost/Increase Microphone Volume Windows 11? - MiniTool How to Amplify/Boost/Increase Microphone Volume Windows 11? - MiniTool Jul 06, 2025 am 12:27 AM

This post delivered by php.cn official web page introduces three methods to improve microphone volume and boost its performance, in Control Panel, via Settings, and by Device Manager. Read the below content to view details.

How to Open and Run dxdiag.exe on Windows 10/11 How to Open and Run dxdiag.exe on Windows 10/11 Jul 06, 2025 am 12:23 AM

This post includes answers for what is dxdiag, how to run dxdiag in Windows 10/11, DirectX Diagnostic Tool’s main functions, and how to update dxdiag.exe driver. php.cn Software also provides many other computer tips and solutions for users. You can

what is an operating system what is an operating system Jul 11, 2025 am 03:16 AM

The operating system is the basic software for managing hardware resources, running programs, and providing user interaction interfaces. It coordinates the relationship between hardware and software and is responsible for memory allocation, device scheduling, file management and multitasking. Common systems include Windows (suitable for office and gaming), macOS (Apple devices, suitable for creative work), Linux (open source, suitable for developers), and Android/iOS (mobile device system). The choice of ordinary users depends on the usage scenario, such as software compatibility, security and customization requirements. How to view system information: Use winver command for Windows, click on the machine for macOS, use terminal commands for Linux, and find the phone in settings. The operating system is the underlying tool for daily use,

Best Ways to Fix Windows 11/10 Control Panel Not Opening! Best Ways to Fix Windows 11/10 Control Panel Not Opening! Jul 08, 2025 am 12:01 AM

Have you ever wanted to adjust computer settings to fix some issues but suffered from Control Panel not opening? There is nothing more frustrating than this app not turning on, stopping you from viewing and changing system settings. In this post, mul

What Is Dell Digital Locker? How to Log in and Use It on Dell PC? - MiniTool What Is Dell Digital Locker? How to Log in and Use It on Dell PC? - MiniTool Jul 07, 2025 am 12:28 AM

What is Dell Digital Locker? How to log into Dell Digital Locker? This post from php.cn provides answers. Besides, you can know how to use your Dell Digital Locker to find software products included with your Dell computer.

How to Open Windows 11 Computer Management Console in 7 Ways? - MiniTool How to Open Windows 11 Computer Management Console in 7 Ways? - MiniTool Jul 09, 2025 am 12:18 AM

This essay summarized by php.cn Software mainly teaches you how to open Windows 11 Computer Management with Windows Search, Quick Link menu, Run dialog, command prompt, PowerShell, File Explorer, Control Panel, as well as a desktop shortcut.

See all articles