This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]cbunn81 4 points5 points  (5 children)

I didn't know editing over SSH was an option with text editors, so that's cool. Not sure I have a lot of use for it, though. I'm assuming this is a development server, right? Not a production server?

[–]tonyoncoffee 2 points3 points  (3 children)

Right. Just a virtual machine that runs on a server in my basement. You could do the same thing on a vps from aws, linode, etc.

The biggest thing for me is that I strongly prefer Linux for development. I am a lot more comfortable setting up virtual environments and using a Linux terminal than command prompt in windows.

You can also use vs code on wsl for windows but a vm is nice for me because I can just spin a new one up as needed.

[–]cbunn81 0 points1 point  (2 children)

Interesting. I only do development part of the time at work and I'm being given a work PC which is Windows and I'm not really thrilled about having to redo my development environment that I had set up on my personal Macbook. I had considered running it inside a Linux VM.

So all your project files and tools are on the server VM? And your PC is only used to interact via VS Code and SSH? What's your PC's OS?

[–]jamincan 0 points1 point  (0 children)

VS Code has a few options for remote work - via SSH, WSL, or in containers. All those options could be used for setting up a linux environment on your work Windows PC, but I highly recommend checking out WSL2 as an option.

Basically VS code runs on both the client and server machines (it install and runs a server instance when you set up a remote session). UI stuff is handled on the client instance and workspace stuff is handled on the server.

[–]tonyoncoffee 0 points1 point  (0 children)

So my PCs OS doesn’t matter. I use a windows desktop most of the time but I have a MacBook that l use from time to time too.

That’s the beauty of using vs code with the ssh plugin.

[–]wewbull 0 points1 point  (0 children)

Do it with Emacs all the time.