Why not just use vscode if you want a more featured experience, and vim/neovim if you want a minimalistic experience?
(not including the fact that Microsoft owns vscode and that some parts are not open source, im aware of that, so no need to mention it)
more featured
You haven’t actually spent more than 30 seconds looking at emacs resources.
troll alert
One reason is that VS Code hadn’t existed yet when I started using Emacs.
Another reason is customization. Emacs is one big Lisp interpreter, while VS Code is a desktop application with JavaScript frontend. VS Code would never achieve the level of customizability Emacs offers.
As someone else has mentioned, Emacs is the oldest and mature, so it is nearly impossible for a new editor to catch up with all of its functionalities.
When I started using emacs there was no vim, just vi.
Isn’t VS Code less feature ful than Emacs, not the other way around? Does it have keyboard macros, can I extend the editor by writing a function in Javascript in a scratch buffer and bind it to a key without needing to package the whole thing as an extension? I confess I haven’t tried VS Code but from what I hear it sounds like it wouldn’t let me automate things to anywhere near the extent I can in Emacs.
you can run VS code in browser, but i can run browser in Emacs. That’s why Emacs > VS code. Also there are myriad of reasons to use Emacs, since it’s more than just editor. It’s environment that can be used to create anything you need to do what you want.
If you love vscode so much, may I introduce you to…
Vscode running inside Emacs!
Org Mode
i think the real competition here is vim.
vscode is a user-friendly editor that you just start using as a no brainer. You unlikely to learn more as you go (maybe a couple of shortcuts). So you get what you see pretty much
vscode is like a lego set. Emacs is more like a piece of marble. Harder to work with but has so much more potential.
and btw, vscode is the minimalist here
Emacs is more like a piece of marble. Harder to work with but has so much more potential.
More like a ball of clay: infinitely and trivially malleable. And you can bake parts of it into ceramic whenever you want.
well, thats too ambitious. But whatever
Such a weird and lazy question. emacs is over forty years old, has whole applications written in it and people have slowly modified their own configs for decades to be thousands of lines of code.
EXWM (Emacs X Window Manager) is a thing, an X11 window manager. ANYTHING is possible in Emacs.
I guess for the consistency.
Say you want to copy or paste thing from the command you are typing, can you do the with the same shortcut in the insert mode?Why not?
To give you an honest answer: for that feeling of freedom. For most tools there exists a clear distinction between the developer elite and the unwashed user masses, where users only get to have a very curated experience decided upon by the elite. To make it worse, those tools often suffer from what I call “the redesigner syndrome”. It’s when a new ubermench designer(developer) takes over a part of the functionality, redesigns it to support 1-2 of use cases he’s interested in(aware of) and then makes the 10 other long standing ones worse or outright breaks them. To user concerns he smugly answers “well, you shouldn’t be even doing that”.
Emacs has the smallest distinction between the stuff imposed upon you and the stuff you select yourself. Then, it’s so easily customize-able that with practice, when you run into some task that can be automated, you’ll have a working solution within minutes. That solution would probably be a Lovecraftian abomination, but you may choose to share it with other hackers anyway, who would then use it as a building brick for even more abhorrent abominations of their own.
I’m interested in editor longevity. I’ve been using BBEdit on the Mac for most of 15 years - started in the mid 1990s - , but when I made a move cross platform that didn’t work anymore. Really don’t want to switch editors every 5-10 years as editors become popular, then reach past their peak and are abandoned as the previous hot thing.
Oh, and I can use Emacs on my Mac desktop, my Linux laptop, Windows laptops AND (thanks to running it inside a iSh) my iOS devices! Cross platform!
On other notes, I needed something with easier customization than VSC AND wanted my command line experience to be the same across Windows and Linux. Hello eshell, the jokes about Emacs being an OS are right! I also like playing with things in different ways: I want a command line shell that’s not coupled to POSIX, and I can build it in Emacs. A menu bar that is mine and I can add to. I do appreciate M-x and I know VSC has its command palette which I used quite a bit when I was into that editor for a while.
In fairness, vscode is much better than Emacs in terms of “ease of use” for plugins and debugging. But not a patch on the overall integrated experience. LSP the big game changer that bought me back to coding in Emacs though dap is still very underwhelming.
bro one the reasons is that emacs is almost an operative system and still lighter than vscode
Honestly getting VS Code to work like Emacs does for me would be a huge undertaking. Its simply closer to how I want to use a text editor.
For example, debuggin - use GDB - integrates with Emacs. Move around - use Evil. Interact with Git - Magit. Terminal - Eshell. Syntax highlighting - tree-sitter, and of course, LSP for actually jumping around and refactoring with some smarts.
Its quite simple and elegant. Sure, its not accessable since its all keyboard shortcuts.