28 ms·
VS Code on a Remote Server
- carreau 8y agoTry-it on mybinder.org, w/o login or signup (in Jupyter): https://mybinder.org/v2/gh/betatim/vscode-binder/master?urlpath=lab https://mybinder.org/v2/gh/betatim/vscode-binder/master?urlp... Ephemeral machine. enjoy.
- 52-6F-62 8y agoIt actually runs on my iPhone 8 Plus like a breeze. If there was a way to solve the annoying zoom-in behaviour when the editor or any text field was focused it would be workable. Seems like a good option for those would-be iPad-using developers if they can easily run other environments.
- mbreese 8y agoTry it for anything non-trivial and it starts to get unworkable quickly. I was trying this on my iPad pro, hoping that it would be a good remote IDE, and it doesn't quite work with the Apple keyboard. I had such high hopes! But when arrow keys don't work, that makes life a bit difficult on an iPad! (FWIW, RStudio server has similar issues, but they switched editor components recently to try and get this working better).
- 52-6F-62 8y agoThat’s too bad. I don’t do much in that way normally, but it might have coaxed me into actually using my data plan a little while on the road! Was it mainly UI bugs because of the device or did it actually grow sluggish?
- randomfool 8y agohttps://github.com/Microsoft/monaco-editor/issues/1209 https://github.com/Microsoft/monaco-editor/issues/1209
- piotrkubisa 8y agoNot only VSCode is available on mybinder - There is also a RStudio in browser: https://hub.mybinder.org/user/binder-examples-r-twi4fgdz/rstudio/?token=zO3BSbzHTNKAdj40lGbeqA https://hub.mybinder.org/user/binder-examples-r-twi4fgdz/rst.... Thank you for a link! Many years ago (around 2011/2?), I remember there was some company that was taking care of emulating native Windows applications in browser, i.e. Notepad++ editor or Serious Sam game but I can't remind the name nor link to archive.is nor any other source...
- xiaodai 8y agoyour link to rstudio binder doesn't work
- m0ngr31 8y agoI've been looking for something just like thing for a while. Apache Che didn't do much for me. Just didn't work the way I thought it should. How's the Firefox support for this?
- croddin 8y agoIt seems to work fine in Firefox as far as I can tell.
- ToFab123 8y agoWhy not just make a remote desktop / VCN connection to the server?
- bluedevilzn 8y agoHaven't tried it but I'm assuming it's much much smoother.
- morpheuskafka 8y agoVNC over the internet is not pretty. Plus X Windows has to be installed on what might otherwise be a headless server. Windows is lightyears ahead of Linux on remote desktop, so it would probably be fine on that.
- pfranz 8y agoMore often than not, working seriously through vnc/remote desktop is miserable and a last resort. Some people don't seem to mind though. I'm curious if their productivity suffers? It works fine for checking on things, but it's a window-in-a-window, copy/paste never consistently works (no matter the server/client software), I haven't seen good solutions for audio, scaling/resolution, and bandwidth/latency vary greatly. It's made me get much better with ssh/terminal/vim and pushed me further away from an IDE. I can see a webapp being a decent compromise. I think most people are fine with Gdocs over Word/Excel.
- sjellis 8y agoTeradici is really good, and amazingly efficient on bandwidth. The Teradici company license their technology to other vendors: it's what AWS Workspaces uses.
- pfranz 8y agoI tried it last year and Teradici seemed to work really well when you were in the same region (time zone-ish size area) or using an internal LAN with a decent connection. For low latency or low bandwidth situations VNC worked way better. VNC also had a lot more options for tuning. Another issue I had was that they had me set up a vpn for Teradici, while for vnc I'm just ssh tunneling the port.
- gripfx 8y agohttps://github.com/theia-ide/theia https://github.com/theia-ide/theia Theia is the Monaco editor on a remote server. I've found the docker containers to be mostly stable
- colemickens 8y agoTheia is a lot more than that. Theia is an Eclipse project that is aiming for VS Code extension compatibility (and already has results to show for it). Theia remains the furthest along of any that I've seen. I'd love to know if someone thinks another "VSCode in browser, running on a remote server" is along further; there seems to be a new one every other month!
- wungsten 8y agoThe Eclipse Che project (which I believe Theia is part of) is also very exciting in this domain.
- anton_kosyakov 8y agoTheia is an independent IDE framework. It used by products like Gitpod (http://www.gitpod.io http://www.gitpod.io), Google Cloud Shell, ARM Mbed Studio (https://os.mbed.com/studio/?utm_source=blog https://os.mbed.com/studio/?utm_source=blog) and so on. Che is going to replace own old GWT based IDE with Theia.
- morpheuskafka 8y agoWow. This is going to be a major game changer for remote development work, and it's a perfect counterpoint to the "Electron is stupid just write it in C" that we hear a lot. Because of the flexibility provided by separating the Node-based logic and processing layer from the web-based presentation layer, VS Code lent itself well to this kind of innovation. Of course, browser-based IDEs aren't new. But they've always been a beast of their own; this will work seamlessly with the tight VS Code integrations numerous languages and frameworks have.
- celrod 8y agoI'm a huge fan of RStudio server. I splurged on an expensive desktop, while I'm using an old laptop with an i3 processor and 4GB RAM my brother gave me. RStudio server let me work from the same R sessions, wherever I was, while giving me (high end) desktop performance for running simulations like MCMC, wherever I was -- from R. I did similarly with Jupyter for Julia, but I always preferred Atom/VS Code. So my work flow, away from home, was using things like remote-ftp and ssh. But I can't seamlessly continue a session I had at home from my laptop. Needless to say, I am excited about this.
- movedx 8y agoLooks good, but it's for R only, I guess?
- rpier001 8y agoEffectively. These days you can use a Python kennel in notebooks and get syntax highlighting, but not much else. Python and SQL are supported but second class use cases.
- cwyers 8y agoThe new version (in preview) has better Python support: https://blog.rstudio.com/2018/10/09/rstudio-1-2-preview-reticulated-python/ https://blog.rstudio.com/2018/10/09/rstudio-1-2-preview-reti...
- deleted 8y ago[deleted]
- deleted 8y ago[deleted]
- cstrat 8y agoI was going to say this is the same thing as coder.com, but this is their open source repo.
- stanislavb 8y agoThe phone number requirement pissed me off a bit.
- dzhiurgis 8y agoDreams of working over 2kbps satellite link (Iridium Go) - shattered.
- croddin 8y agoIt does look like you have to download a 10Mb js file, but once that is downloaded and cached, it uses a websocket to communicate with the server on the backend and only necessary text will be sent to the browser. I don't think the bandwidth requirements should be too much more than a terminal editor over ssh.
- sscarduzio 8y agoI wish also IntelliJ Idea could do this. Very nice BTW.
- HowardStark 8y agoThis. If JetBrains launched a self-hosted remote IDE like this I would make that my daily driver in a heartbeat.
- chillee 8y agoFacebook does a lot of work like this for its internal development uses (also, when it used to open source Nuclide). I think this is a good first step, but there's a lot more problems that are harder to solve than what this offers (and are what I'd consider the main problems that need to be solved...) One example is language services. Integrating something like C++ autocomplete is difficult, and not something they seem to have done (looking at their page). The right way to do it is to run the C++ autocomplete on the server, and have some way of providing those suggestions over the connection to your local editor.
- mmcallister 8y agoWhere "some way" == the language server protocol[1] [1] https://en.m.wikipedia.org/wiki/Language_Server_Protocol https://en.m.wikipedia.org/wiki/Language_Server_Protocol
- LeanderK 8y agoshouldn't this be possible? I don't see why not?
- mmcallister 8y agoYes absolutely. I use LSP with VS Code every day. This solution shouldn't prevent me from continuing that
- chillee 8y agoYeah, that's definitely the direction people seem to be moving towards.
- nhooyr 8y ago> The right way to do it is to run the C++ autocomplete on the server, and have some way of providing those suggestions over the connection to your local editor. No need for integration. Its really up to a C++ plugin as this is just straight up VS Code.
- Scarbutt 8y agoWhat this solves is one of the reasons why many vim/emacs users can't leave/change their editors so easily ;)
- ourcat 8y agoInteresting. Only recently I came across https://stackblitz.com https://stackblitz.com which is more or less VS Code in the browser. Very useful.
- nickmolnar2 8y agoStackBlitz is Monaco in the browser. No extensions or terminal. Works great for certain kinds of front-end dev, but more complicated build tooling aren't available and only JS/TS are supported.
- ourcat 8y agoAhah. I'd never heard of Monaco. Thanks!
- xiaodai 8y agoI want to see this work with Atom so bad. Cos, Julia's Juno is only on Atom.
- moltar 8y agoI wish there was a way to run VS Code in headless server mode on a remote host and then connect to attach to it from my local machine.
- simcop2387 8y agoThat's exactly what this lets you do.
- nodesocket 8y agoI think maybe he's asking without using a browser, instead open VC code and attach to a server maybe?
- paxys 8y agoVS Code is already an electron app, so the browser is running exactly the same code.
- jpambrun 8y agoThe browser traps many keyboard shortcuts. Ctrl+w would close the chrome tab, not the vscode tab for instance. As a result, many shortcuts won't work. I think you can reclaim some by running in full screen, but it's not great.
- moltar 8y agoWell, not really. This runs it in the browser. I’d like to run it as the actual VSCodr app with all of the benefits of the menu bar and shortcuts.
- kbumsik 8y agoI've been always looking for something like this. I used Cloud9 [1] for a moment but I gave up using this after Amazon acquired it. It's shame to look how a tech gaint destroyed a great product. [1]: https://aws.amazon.com/cloud9/ https://aws.amazon.com/cloud9/
- reustle 8y agoI use cloud9 and am pretty happy with it. It lets you connect to any instance anywhere (I use ubuntu) and it works as expected. How do you feel like they destroyed it?
- gravypod 8y agoThis will be very cool when someone packages it up to be a full IDE experience. Things like automatic language completion for multiple languages, project based view, etc. This is amazing and might make things like a chromebook much more viable for me and many other developers.
- nickjj 8y agoIf you don't mind installing Linux on your Chromebook you can run VSCode or anything you want natively. I've been running GalliumOS on mine for years and it's superb. It might be the best $350 I ever spent. I wrote a huge review and write up of the process at: https://nickjanetakis.com/blog/transform-a-toshiba-chromebook-cb35-into-a-linux-development-environment-with-galliumos https://nickjanetakis.com/blog/transform-a-toshiba-chromeboo... I would still get the same Chromebook today too if you can find one. That specific model happens to be a perfect storm of massive value / great specs at a low price.
- paxys 8y agoThis does exactly that. You can install whatever VS Code extensions, language servers and runtimes you want on your remote machine, and the local (web) IDE will use all of them as normal.
- wungsten 8y agoCheck out Eclipse Che
- gbraad 8y agoTo me Che is an Enterprise IDE, which integrates with the deployment platform. The majority of people just want an IDE in the browser, like c9 or vscode.
- filleokus 8y agoDoes this / something else allow me to do something like this but with the actual VS Code app? I.e, like Live Share but in a more persistent way? I don't really need the extra flexibility of the browser, I would just want to offload computation to a non-battery powered device.
- TheSpiciestDev 8y agoI can't find anything yet regarding debugging, I'm curious how that would work.
- paxys 8y agoIt doesn't yet.
- keyle 8y agoNo pun intended... Is the point of this to run chrome locally to run a webkit instance on a remote server, with added latency?
- kgwxd 8y agoIt's an evil plot to greatly accelerate the heat death of the universe.
- ashton314 8y agoNice. This is really cool. I know a lot of people who love VS Code; nice to see it get a handy feature. For any Emacs users looking for an equivalent, you can edit a file over ssh like so: emacs /ssh:username@host.example.com:~/path/to/file.txt Dired, etc. works like a charm. Best if you have your ssh key installed on the remote box.
- reustle 8y agoAnd here's how to do it in vim: vim scp://remoteuser@server.tld//absolute/path/to/document https://vim.fandom.com/wiki/Editing_remote_files_via_scp_in_vim https://vim.fandom.com/wiki/Editing_remote_files_via_scp_in_...
- taeric 8y agoIf you are in eshell, cd /ssh:computer.name: ls ... Even better, most programs "just work" as if you were on that machine.
- josteink 8y agoEven ‘M-x compile’ works. And entirely seamlessly. It’s quite amazing.
- paxys 8y agoFYI https://coder.com https://coder.com is the hosted service for this
- Matheus28 8y agoNo pricing information and JS error thrown when trying to sign up... Oh well
- raihansaputra 8y agoCan this be made an iOS app / PWA with proper keybindings for iPad with keyboard? Wondering as I can’t use my JupyterLab on the iPad as it does not transmit ‘Shift + Enter’ to run the code.
- sirsuki 8y agoI have to say it because no one else has yet. Vim, Emac, Nano, Pico, etc. has been doing this with good ol' fashioned SSH decades before this. It fascinates me to see editors constantly reinvented over and over. Is text really that complicated?
- jahewson 8y agoIt fascinates me that people think that innovation should just have stopped dead in the late 1970s when all technology was apparently perfect.
- naikrovek 8y agoIf you can't see the difference between a text editor over ssh and a full IDE in a browser tab you need to seek medical attention; you may be having a serious stroke.
- AlexCoventry 8y agoI don't think a tricked-out emacs config is missing many IDE features. What did you have in mind?
- throwaway20148 8y agoNext time you should just assume someone has said it and move on without commenting.
- arriu 8y agoThis might be a ridiculous question but I'm looking for a way to do windows C++/C# development from a mac. Is there any chance this might allow such a workflow? Unfortunately, I need to access some pretty low level dll's that are not cross platform compatible at all. I use a mac for all other development except for this project. I have nothing against windows, just looking to simplify my development workflow across all projects.
- alinspired 8y agoRDP to windows ?
- gbraad 8y agoInstall a VM, share folders with the binary/source code. You could keep it to .Net core, but this limits integration. But the answer of RDP is not sarcastic... as it is probably the only way to get what you want.
- rcarmo 8y agoI work on a Mac all day, and besides VS Code/VS Mac I also use RDP extensively to my Surface. Set it to 16bit, use wired Ethernet, and it is as fast as native Windows rendering, even in Retina/HiDPI.
- Uninen 8y agoRemote interpreter support is something I've been waiting for a long time. No word since September on the timetable, though: https://github.com/Microsoft/vscode-python/issues/79 https://github.com/Microsoft/vscode-python/issues/79
- wybiral 8y agoI had the worst interview with these people (codercom) that I've ever had in my career as a developer. It essentially consisted of them sitting me down with an old crappy laptop that kept logging out every few seconds and asked me to write an encrypted reverse proxy from scratch while simultaneously asking unrelated technical questions with a time limit. I guess to test how people code with distractions and stress? But, yeah I definitely don't want to work anywhere that looks at their potential developers that way.
- mongol 8y agoSounds like how you test the multitasking abilities of fighter pilots..
- matz1 8y agoIts not for everyone.
- wybiral 8y agoTrue. It's a culture of burning people to the ground because they're disposable. Not everyone is into that.
- jaentwistle 8y agoInterviews should be a good experience, and I’m sorry we failed at that for you - it certainly wasn’t our intention
- buzzerbetrayed 8y agoIt sounds like you are trying to excuse an embarrassingly bad interviewing process.
- matz1 8y agoBad because it select people who can handle stress and distraction and doesn't complain? If that what they looking for then I see no problem with it. They are free to select whatever criteria they see fit. The way they interview in my work place these days also hard and imo ridiculous but yet they still find someone who meet all the criteria.
- deleted 8y ago[deleted]
- activatedgeek 8y agoI've been using this on my remote workstation for the past week and is pretty cool! Still rough around the edges but works very well so far! I've almost let go of IntelliJ in favor of this.
- locusofself 8y agoI am excited to try this and hope it proves easy to setup and reliable to use. X11 forwarding is just terrible, completely useless over WAN. sshfs is also a bad solution for coding as it doesn't do inotify properly, so if a file changes on the remote end it doesn't properly notify your local mount of the changes. Even worse, doing tons of small i/o operations (which is exactly what git does) is terribly slow with sshfs over WAN. Right now I do most of my work in vscode locally and use the "Run on Save" plugin to automatically rsync my code changes to the remote server(s). It's the best solution I have found after trying many things. vim is great for remote work too. very great in it's own right. But even despite the electron-based UI, the local, "native" experience and plugin ecosystem of VSCode is unmatched IMO.
- kstenerud 8y agoI just run a full remote mate based Ubuntu desktop that I connect to via chrome remote desktop or x2go. I made a quick script that I run inside a vps instance or container to build it: https://github.com/kstenerud/ubuntu-dev-installer/blob/master/install-virtual-desktop.sh https://github.com/kstenerud/ubuntu-dev-installer/blob/maste...
- jeswin 8y agoInteresting in its own right, but the actual heavy lifting here was done by the vscode team; in how they envisioned and implemented the clean separation of UI and backend (such as language server protocol). There are other previous attempts at running vscode in the browser - such as Ives Van Hoorne's very popular https://codesanbox.io https://codesanbox.io. Curious if code is being shared between these projects.
- kylecarb 8y agoUnfortunately, we didn't share code with CodeSandbox. Most definitely throw props to the VS Code team for the great architecture. It would have been much more difficult if it wasn't for their foresight.
- gbraad 8y agoI tried both Theia and Coder-com, but at the moment it seems Codercom comes closest to the actual VSCode feel. Theia has modified stuff to be better suited to use from a browser, but actually this took away from the customization options. I prefer to have minimal interface... and with codercom I can get close, except it still has a menubar to show.
- bribri 8y agoI'm going to try baking all my dependencies for my language plugins and editor tools. Could be interesting with the built in terminal. FROM codercom/code-server RUN apt-get update RUN apt-get -y install curl gnupg RUN curl -sL https://deb.nodesource.com/setup_11.x | bash - RUN apt-get -y install nodejs
- bjjbj 8y agoRunning this on a VPS and works great. Exactly what I was looking for to code at my public library, which provides macs but no permissions to install software. I haven't run into any issues so far, except for the obvious permissions issues which were easy to fix. Extensions all install. I'm sure I'll have more to say about it as I use it more heavily.
- lobo42 8y agoWhen we started the Theia project (theia-ide.org), we considered doing a large patch on VS Code as well. But we decided to go down a more sustainable approach by reusing the important building blocks from VS code (editor and vscode extension protocol) with stable APIs, because rebasing a large patch on a fast paced project is a PITA. Theia is about to complete the VS Code extension support. At that point it will be the better option as it is architected to run in remote scenarios from the ground up.
- gbraad 8y agoMy biggest problem with Theia is that the menu structure and appearance/feel is very different from the actual VSCode editor I am used to on the desktop. This was not the problem with Codercom. It reduces friction to move from the desktop to the cloud. If this could be solved, I would certainly prefer theia more. At the moment, I just can't customize it enough to get to my liking: https://news.ycombinator.com/item?id=19396894 https://news.ycombinator.com/item?id=19396894
- Dangeranger 8y agoThe other day I setup a version of this using Theia-IDE[0], which uses Monaco as the editor I believe. The project is open source (Apache-2.0) and has a strong community. It would be a nice project to get a Docker service running where users could sign-up and get an instance with persistent storage for their projects. [0] https://www.theia-ide.org/doc/ https://www.theia-ide.org/doc/
- anton_kosyakov 8y agoAre you aware of Gitpod (https://www.gitpod.io/ https://www.gitpod.io/)? It's one-click online IDE for GitHub based on Theia. You can have as many workspaces as you want which are continuously replicated and never deleted, bring your own custom Docker image and it's free for open source development.
- philonoist 8y agoWhy would anybody use Atom even after this?