Using VS Code (Code Server) with Wazaterm
In the previous article
, I said that you should use Emacs or Vim for a terminal, but I think it is more common to use a GUI editor such as VS Code. It is not impossible to use VS Code on Wazaterm, because Wazaterm can be thought of as VPS + Alpha. We can use Code Server
to use VS Code remotely. Recently, there seems to be a lot of people doing this remote development.
Install the Code Server
$ curl -fsSL https://code-server.dev/install.sh | sh
How to start Code Server
# on wazaterm
$ autossh -M 50400 -NT -o "ServerAliveInterval 60" -o TCPKeepAlive=yes -o "ServerAliveCountMax 120" -L 8080:localhost:8080 email@example.com
Type localhost:8080 in your browser.
Check the following file on Wazaterm for the password
Use as PWA
Like Wazaterm, you can use it as a PWA to avoid conflicts with browser shortcuts and to use it as an application.
Write the .wazarc file and launch it when the terminal is started.
$ vi ~/.wazarc
# add this