Services

VS Code Server draaien in de browser

Published:
Kelvin Wuite
By Kelvin Wuite β€’ 6 min read
Share

ASD bevat een ingebouwde VS Code Server aangedreven door code-server. Het geeft je de volledige VS Code ervaring in je browser β€” extensies, geintegreerde terminal, Git, instellingen synchronisatie β€” bereikbaar vanaf elk apparaat. Met ASD tunnels kun je coderen op je server vanuit overal ter wereld.

Wat je krijgt

  • Volledige VS Code ervaring in de browser
  • Extensie-ondersteuning via Open VSX marketplace
  • Geintegreerde terminal en Git
  • Instellingen synchronisatie tussen sessies
  • Toegang op afstand via ASD tunnels

Vereisten

  • ASD CLI geinstalleerd (asd init)
  • Het code-server binary (automatisch gedownload tijdens asd init)

Stap 1: Start code-server

bash
asd code start

Voor status en URL's:

bash
asd code

Stap 2: Benader het

MethodeURL FormaatGebruik
Lokaalhttp://localhost:<poort>/Zelfde machine
Caddyhttp://asd.localhost/asde/codeserver/Lokaal netwerk
Tunnelhttps://hub-xxx.cicd.eu1.asd.engineer/asde/codeserver/Overal

Stap 3: Authenticatie configureren

Alleen lokale toegang (geen wachtwoord):

bash
ASD_CODESERVER_AUTH=none

Toegang op afstand (met wachtwoord):

bash
ASD_CODESERVER_AUTH=password
ASD_CODESERVER_PASSWORD=jouw-veilige-wachtwoord

Toegang op afstand via tunnel

bash
# Schakel wachtwoord-auth in via .env
ASD_CODESERVER_AUTH=password
ASD_CODESERVER_PASSWORD=jouw-veilige-wachtwoord

# Start code-server
asd code start

# Schakel tunnel in
asd net apply --tunnel

# Verkrijg de URL
asd code

Configuratieopties

VariabeleVerplichtStandaardBeschrijving
ASD_CODESERVER_PORTNee(auto)Poortnummer
ASD_CODESERVER_AUTHNeenoneAuth modus: none of password
ASD_CODESERVER_PASSWORDAls auth=passwordβ€”Inlogwachtwoord
ASD_CODESERVER_WORKSPACENeeproject rootMap om te openen

Extensies

code-server gebruikt de Open VSX marketplace in plaats van Microsoft's marketplace.

Meeste populaire extensies zijn beschikbaar: ESLint, Prettier, GitLens, taalondersteuning, thema's.

Niet beschikbaar: GitHub Copilot, Remote Development extensies, Live Share.

Stoppen

bash
asd code stop

Wat nu

Kelvin Wuite
Written by

Kelvin Wuite

Kelvin Wuite is the founder of ASD B.V. With over eighteen years of development experience, he has witnessed the same patterns repeat across every software team - endless documentation, manual preparation, environment mismatches, and fragmented collaboration. His drive is to remove these barriers, enabling engineers to work together in unified environments with shorter feedback loops and hands-on collaboration. Since 2015 he has been refining these ideas, leading to ASD β€” a platform designed to create a faster, more integrated way for development teams to collaborate in an age where AI is thriving.

Related Articles