Live data from Hacker News

Web-based editor

docs.github.com

211–220 of 307 posts

Re: Web-based editor

#211
post #182

Earlier quoted context omitted.

What's this?

I've just tested with Safari on MacOS. 1. Go to any Github repo 2. Press . 3. Wait for the editor to load... 4. Press Ctrl/Command + P 5. It opens VSCode's "Go to File" prompt

Nice! Works for me too on Chrome on MacOS.

Too bad cmd+w, ctrl+tab, and ctrl+shift-tab doesn't close an editor tab / switch editor tabs… and if you hover on the close icon, it just tells you to use cmd+w instead of something else.

Re: Web-based editor

#212

Am I alone in not jumping on the Visual Studio [Code] bandwagon? Other online editors have had "vim modes" for ages (e.g. Overleaf) and frankly I'm unlikely to write a chonking great script or project in a browser on Github -- a minor modification is much more likely. VS Code's codebase is huge . Will Github allow people to use other $EDITORs? (Yes, I'm aware this makes me sound like an old man!)

I am a developer for almost 15 years now. My primary operating system is windows. I have used Linux but only sparingly. I have used many IDEs. I have never ever felt the need to use vim. Is it fair to say, because VSCode does not have a "vim mode", it is somehow inferior as an editor? I seriously don't get it. I have used VSCode almost from day one. It is a fantastic editor and quite a capable tool. I seriously love…

What if you ssh into a server? What if you want to quickly edit some file while you are on a terminal?

Re: Web-based editor

#213
post #187

Earlier quoted context omitted.

Last I checked, most of the MS-owned language servers used proprietary licenses. An example is the Python language server https://github.com/microsoft/pylance-release They base it 90% on the open-source pyright library. Then the lock down all their own enhancements. https://github.com/microsoft/pyright This is why MIT isn't always the correct choice. GPL wouldn't hurt devs at all and would protect from this kind of g…

> This is why MIT isn't always the correct choice. GPL wouldn't hurt devs at all and would protect from this kind of garbage from MS. But would it protect against Pylance existing, or would it just be more expensive to develop but still proprietary (and possibly not free-as-in-beer), or would it be Free? There's only one of those three where devs (as opposed to Free Software ideologues) win, and one where both lose.…

I wish this point was brought up more often. Like in the TiVo case when everyone lost their minds about ideology, meanwhile millions of people got to watch what they wanted on their schedule and with no ads.

This attitude of MIT being bad because it gives people freedom to do Bad Things™ really makes me question what open source is actually about (yes I know that it's complicated and means many things, that's not what I'm talking about here). It seems to me that some proponents of it really believe in it so they can tell other people what to do.

Re: Web-based editor

#214

Earlier quoted context omitted.

> Many people talk about vim lately, probably the most I've seen and I'm still not sure why. Extrapolating from personal experience, I think this might be down to Covid WFH where more people have had to ssh into remote machines and may need to edit files so might choose to use vim as it’s easily available. And vim is something that I find is better learned progressively where you pick up 1 or 2 tricks every week or s…

For what it's worth, you can open a remote directory via SSH from vscode. https://code.visualstudio.com/docs/remote/linux Want to have your mind blown? Microsoft (yes that Microsoft) officially supports remote development on Windows Server via SSH. As in, run vscode on your Linux box, create an SSH remote on your Windows Server, develop remotely on the server via SSH. Fully supported.

I'm curious: What is a typical use case for this?

Re: Web-based editor

#215
post #100

Earlier quoted context omitted.

Companies want developers to buy into editors like religion. All of them (editors) do the same, but spending money on IntelliJ is the hardest flex because it says I’m an enterprise developer look at me.

I've been trying to make VSCode work like PHPStorm. I've tried a huge combination of plugins and there's no way to do it. It doesn't even come close. It's powerful but it's definitely not the same. I would go back to NetBeans before using VSCode. There's no religion behind it, it's just that there are tools that suit my needs better than others.

I paid for Inteliphense, but it’s not a shade on using phpstorm - I spent so long on non paid software I missed out on a lot of cool stuff

Re: Web-based editor

#216

Am I alone in not jumping on the Visual Studio [Code] bandwagon? Other online editors have had "vim modes" for ages (e.g. Overleaf) and frankly I'm unlikely to write a chonking great script or project in a browser on Github -- a minor modification is much more likely. VS Code's codebase is huge . Will Github allow people to use other $EDITORs? (Yes, I'm aware this makes me sound like an old man!)

Nope you're not alone, the hype behind VSCode just seems wierd. It's not a bad editor by any means, but I can't figure out why its any different than the parade of TextMate, Sublime, Atom that came before.

Re: Web-based editor

#217

Earlier quoted context omitted.

You can use graphical editors over SSH. I personally tend to install micro, or use nano if that's not possible.

If I just need to do a quick edit of a text file from the CLI I usually use nano, as well. For dev. I use an graphical editor, usually VSCode these days. I used emacs at some point a long time ago. The good thing with git and al is that there is no need to access a remote repo., and that's one of the points, so there is usually no need to edit source files remotely.

I had to google, I didn't realize nano was around 20 years ago. I didn't know it existed until about 2012, but I guess that makes sense then.

Re: Web-based editor

#218
post #169
post #78

Earlier quoted context omitted.

According to Wikipedia: "Extinguish: When extensions become a de facto standard because of their dominant market share, they marginalize competitors that do not or cannot support the new extensions." So if your text editor doesn't support integration with Github and a cloud vendor, or if your repositories don't support integration with an online text editor and a cloud vendor, or if your cloud vendor doesn't support…

The GitHub folks were already on a roll with this before Microsoft came along. How many people don't understand the difference between Git and GitHub, don't realize that saying "can you on GitHub?" makes the same presumptions as "can you on Facebook?", don't give two shits about how messy their commit messages are formatted, don't realize that Git doesn't actually have PRs, don't realize that the closest analog that…

That is a very good point. I had the chance to start my "Git adventure" with Mercurial on some in house software at my university. They then switched to Git with Gitlab. And now I use Git with Github. It helped me to realize which piece does what. But if you start with popular tutorials, everything is Github. Github even released a CLI wrapper around Git that integrates Github-specific concepts.

Re: Web-based editor

#219
post #100

Earlier quoted context omitted.

Companies want developers to buy into editors like religion. All of them (editors) do the same, but spending money on IntelliJ is the hardest flex because it says I’m an enterprise developer look at me.

You can get access to all Jetbrains tools for $650/yr for the first year, with the price reducing in subsequent years. Considering nearly every S/W dev globally can make that in a couple of days, I'm not sure how much of a flex it is considering it would be your primary work tool. And I say this as someone whose never used a Jetbrains tool and use Vim for nearly everything (except when I'm on Windows where I use a mi…

Yea, it’s only recently I’ve been buying licences for things that make my life (as a dev) better

Sometimes you can afford it, and sometimes you can’t.

I think we forget when you could (and still can) do dev with a text editor.

I 100% get what you say, but that’s a lot of money potentially - which is where I think vscode /vim etc shine in that it’s free and can do the same kinda thing

Re: Web-based editor

#220
post #104

Am I alone in not jumping on the Visual Studio [Code] bandwagon? Other online editors have had "vim modes" for ages (e.g. Overleaf) and frankly I'm unlikely to write a chonking great script or project in a browser on Github -- a minor modification is much more likely. VS Code's codebase is huge . Will Github allow people to use other $EDITORs? (Yes, I'm aware this makes me sound like an old man!)

> Am I alone in not jumping on the Visual Studio [Code] These are at least 3 different questions: 1) Why should I use VS Code in general? 2) Why should I use VS Code online? (the articles topic) 3) Why should I use VS? The answers might turn out completely different. Personally, I have for my main languages (C++ & Python) full IDE's (VS & Wing IDE). For quick Python scripts, VSCode is considered an option that I use…

VS is unrelated to VS Code. VS is a full IDE for C++ and C# and the other .NET languages (and some other things like C to a lesser extent).

VS Code is a decent text editor with a good plugin ecosystem. It's faster to start (if it doesn't have too many slow plugins) than most IDEs and easier to get used to than vi-based editors or EMACS. And unlike Sublime Text it's free. Unlike Notepad++ it's cross-platform.

I personally use CLion for C (as well as Markdown, CMake, and shell scripts that are part of the same project as the C), PyCharm for Python, DataGrip for SQL, and VS Code for various text tasks like log file analysis and quick note taking.

It's a handy editor, very useful for ad-hoc work but not really advantageous compared to a full IDE for most regular day-to-day work IMO.

Post reply on HN