5 ms·
At least VS Code means we'll have options for a half-decent IDE in the browser. (Not that there's anything wrong with vim or emacs over SSH-in-a-browser, but...
by cbhl 6y ago
At least VS Code means we'll have options for a half-decent IDE in the browser. (Not that there's anything wrong with vim or emacs over SSH-in-a-browser, but...)
- brysonreece 6y agoPersonally, my development routine is to use VSCode's "Remote Connections" as my primary way of editing code/interacting with the CLI (via the built-in terminal). It lets me work closer to the shell with a shareable app instance (pointed at a dev.myappname.com domain) that I can share or Slack a coworker at any time.
- arawde 6y agoCould you elaborate a bit on the shareable app instance (or just share links to its documentation)? That sounds really useful but I hadn't heard about this use case before
- mratmeyer 6y agoLooks like this is what he's talking about: https://code.visualstudio.com/docs/remote/ssh https://code.visualstudio.com/docs/remote/ssh I haven't used the remote SSH feature, but I have been playing around with GitHub Codespaces through VSCode. Once you have the extension, you can select a repository and it will spin up a virtual workspace for you on their servers. It actually works surprisingly well- tasks like installing node packages is faster than on my local computer and it automatically handles things like setting up a proxy for local web environments.
- xnyan 6y agoI assume they are talking about something like https://github.com/cdr/code-server https://github.com/cdr/code-server . It’s vscode in your web browser. Run it locally in your dev environment and setup your web server to proxy vscode.your domain.tld to it and boom, you have vscode running in your dev environment that anyone with a link can access. The fastest way to set it up with tls+auth is probably something like https://hub.docker.com/r/linuxserver/code-server https://hub.docker.com/r/linuxserver/code-server + caddy configured with basicauth.
- hk__2 6y agoNote you can open files through SSH in Vim. This is better that ssh'ing on a machine that runs Vim, because all the editing is done on your machine. It only uses the connection when you save the file.
- retzkek 6y agoEmacs too, of course: https://www.emacswiki.org/emacs/TrampMode https://www.emacswiki.org/emacs/TrampMode Despite that I still tend to ssh to machines and use a local editor, because I typically don't want to just edit files, I also want to run some commands in-between editing files.
- snazz 6y agoVS Code can do that as well (I think it might be how they implement WSL support too).
- mouldysammich 6y agoTramp will run whatever commands you want to run on remote server if you're running commands with `M-!` I use it for work sometimes, that + vterm and ssh makes for a fairly pleasant remote editing experience in emacs. LSP even works over tramp (kinda)
- z3t4 6y agoYou can also SSH -X and start a GUI app on the remote machine. (you can install Xserver on both Mac and Windows) Although you need low latency/ping or it will lag.
- onetom 6y agoI have tried this setup recently (with XQuartz) but it had abysmal performance compared to a Tiger VNC session with a Linux server and a macOS client. I couldn't figure out why. I remember it was working better decades ago over 10Mbit/s connections, running on 80486 machines... Maybe between 2 Linux machines running the same Xorg versions would work better?
- mr_toad 6y ago> half-decent IDE in the browser https://aws.amazon.com/cloud9/ https://aws.amazon.com/cloud9/ It was more than half decent last time I used it.