Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to install and use VSCode Web IDE Coder

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces "how to install and use VSCode Web IDE Coder". In daily operation, I believe many people have doubts about how to install and use VSCode Web IDE Coder. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to install and use VSCode Web IDE Coder". Next, please follow the editor to study!

Overview

Coder is the Web IDE of VS Code, which is installed on the server by Code Server and Coder,Code Server. After opening the address through the browser, you can use a web version of VS Code, that is, Coder, but the plug-in for VS Code cannot be used.

Installation

Take utuntu18 as an example

1. Install deb

Curl-fsSL https://code-server.dev/install.sh | sh-s-dry-run

# # install deb mkdir-p ~ / .cache/code-server curl-# fL-o ~ / .cache/code-server/code-server_3.11.1_amd64.deb.incomplete-C-https://github.com/cdr/code-server/releases/download/v3.11.1/code-server_3.11.1_amd64.deb mv ~ / .cache/code-server/code-server_3.11.1_amd64.deb.incomplete ~ / .cache as prompted / code-server/code-server_3.11.1_amd64.deb dpkg-I ~ / .cache/code-server/code-server_3.11.1_amd64.deb

two。 Modify the config file

Change 127.0.0.0.1 to 0.0.0.0, you can bind to all native IP without having to reverse proxy.

If the port is changed to 8886508080, it will be occupied.

3. Start code server

Sudo systemctl enable-now code-server@$USER

4. Run in the background

TODO

Install using docker

Mkdir-p ~ / .config

Docker run-- restart=always-- name code-server-p 0.0.0.0 purl 8886 purl 8080

-v "$HOME/.config:/home/coder/.config"

-v "$PWD:/home/coder/project"

-u "$(id-u)? (id-g)"

-e "DOCKER_USER=$USER"

Codercom/code-server:latest

Use

1. View the password in the config.yml file

Cat. Config/code-server/config.yaml

Enter into the input box, paste the password, and click submit

Ps. I have azure vm, so I have a free dns (domain name). If you are interested, you can register one on azure.

Install the Chinese language pack, search for "Chinese (Simplified) Language Pack for Visual Studio Code" in "extension" and install the plug-in. After using it, the interface will be in Chinese.

Take golang as an example, install the go plug-in, but it is of no use

If you are using the code-server docker container, you already have the installation file of go under "~ / project/go/go/", just add it to the environment variable

Export PATH=$PATH:~/project/go/go/bin

Open the terminal and run go run main.go. You can see the effect.

At this point, the study on "how to install and use VSCode Web IDE Coder" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report