News for hackers. Stuff that matters.
Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by leetrout on Saturday December 26, 2020 @03:57PM (#25546416)
This reminds me that a solid browser preview added and supported in the core VS Code app would be a killer feature.
Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by lostintangent on Saturday December 26, 2020 @04:07PM (#25546465)
That's on the team's near-term roadmap :) In order to build full apps/projects, having an editor-integrated browser preview will be amazing!

CodeSwing is really meant to enable component/snippet/sample development (like a "visual REPL"), so you can quickly try out, learn & share ideas, without needing to set up any build ceremony in order to get there. I'm hoping that it will be complimentary to a built-in browser preview in VS Code. But I'm keen to hear folks thoughts about it :D

Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by richajak on Sunday December 27, 2020 @10:16AM (#25551566)
Does it support local standalone mode? or something like personal codepen server? did not feel comfortable to keep code there with recent disruption of major cloud providers.
Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by lostintangent on Wednesday December 30, 2020 @01:56PM (#25584725)
CodeSwing is entirely local, and your code is stored in a directory, that you can choose to version/backup however you’d like (e.g. a git repo).
Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by 14u2c on Saturday December 26, 2020 @05:13PM (#25546841)
Serious question: why? I think its very useful when an editor in a browser like with Repl.it, GitPod, and this project, but when the editor is running on your desktop using your own browser seems much nicer. You can use all the devtools, extensions, etc that you are accustomed to.

Btw the theia editor, pretty much VS Code, does have this feature [0]

[0] https://github.com/eclipse-theia/theia

Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by stevenschmatz on Saturday December 26, 2020 @05:48PM (#25547060)
It is much nicer in general, but what about when used with Codespaces?

My old MBP bricked the other day, and while I wait for a new laptop I’m going to use a random cheap computer to do my dev work. I love the idea of having a full fledged cloud IDE with all the bells and whistles already set up for me. This helps enable that!

Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by 14u2c on Sunday December 27, 2020 @12:56AM (#25549185)
Ah, I misunderstood. In that case gitpod.io is exactly what you are looking for, a cloud IDE with VS Code (theia) with an integrated preview pane.
Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by goldenkey on Sunday December 27, 2020 @12:51AM (#25549166)
With window tiling capabilities on pretty much every OS/WM these days, it really doesn't make sense to throw the kitchen sink into the editor.
Re:Show HN: CodeSwing – A CodePen-like interactive playgroun... by reificator on Sunday December 27, 2020 @02:45AM (#25549553)
While I mostly agree, VSCode is electron. It's more like installing a faucet in the sink that's already there.