OSDev.org

The Place to Start for Operating System Developers
It is currently Tue Nov 30, 2021 6:32 am

All times are UTC - 6 hours




Post new topic Reply to topic  [ 14 posts ] 
Author Message
 Post subject: What editor do you use?
PostPosted: Thu Oct 21, 2021 1:26 pm 
Offline
Member
Member

Joined: Tue Feb 18, 2020 3:29 pm
Posts: 886
Hello!
I personally love comparing code editors. I used to use Brackets, but then I switched to Atom, and then decided to use Visual Studio Code. Recently, however, I find myself using Emacs. Its really a great editor once you get the hang of it. I also kind of like Vim, but I find myself having to reach for the ESC key more then I would like, while Emacs, it all is there.

As for editors I don't like, I don't like IDEs. They force a build system, are full of bloat, and just aren't really my thing. One could say Emacs is bloated, and I agree with that, but I still like it better then Vim :)

What text editor do you use?


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Thu Oct 21, 2021 5:38 pm 
Offline
Member
Member
User avatar

Joined: Fri Sep 03, 2021 5:20 pm
Posts: 34
I use Geany. It's very light, has all that I need and is far from being bloated, it's extremely stable. It's really worth a try.

_________________
Writing a bootloader in under 15 minutes: https://www.youtube.com/watch?v=0E0FKjvTA0M


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Thu Oct 21, 2021 6:07 pm 
Offline
Member
Member

Joined: Wed Mar 30, 2011 12:31 am
Posts: 514
Mine.

Image

And I encourage anyone writing an OS to also write an editor - after all, every good OS needs a good editor.

And before someone asks, yes, I really do use my own editor as my daily driver and have done so for a few years now.

_________________
toaruos on github | toaruos.org | gitlab | twitter | bim - a text editor


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Thu Oct 21, 2021 9:14 pm 
Offline
Member
Member

Joined: Wed Aug 30, 2017 8:24 am
Posts: 1134
I use vim for everything. Because vim exists for everything, and because unlike with Emacs, I don't have to break my fingers to get what I want. In all seriousness, when I started programming, I had a look around when I first started programming, and I saw that both Vim and Emacs were popular choices, both would require significant work to get into or to really get the most out of it, and I was only prepared to spend that effort once.

I've looked at other offerings like vscode, but IDEs are only for programming, and I do still kind of need an editor for config files and other text files. I don't know any programmer who uses Windows and does not have Notepad++ installed. So what's the point of having and IDE when you are still doing half your work in another program? So I use IDEs for compiling exclusively, and only if I must, and do all my editing with Vim.

_________________
Thou hast outraged, not insulted me, sir; but for that I ask thee not to beware of Starbuck; thou wouldst but laugh; but let Ahab beware of Ahab; beware of thyself, old man.


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Thu Oct 21, 2021 11:20 pm 
Offline
Member
Member
User avatar

Joined: Thu Aug 11, 2005 11:00 pm
Posts: 1108
Location: Tartu, Estonia
nullplan wrote:
I use vim for everything.


Same here, with a few plugins, like YouCompleteMe.

_________________
Programmers' Hardware Database // GitHub user: xenos1984; OS project: NOS


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Fri Oct 22, 2021 1:20 am 
Offline
Member
Member
User avatar

Joined: Sun Feb 18, 2007 7:28 pm
Posts: 1533
Hi,

Primarily MSVC but am hoping to transition to a custom editor once everything else is in place. Am primarily working on utilities right now.

_________________
OS Development Series | Wiki | os | ncc
char c[2]={"\x90\xC3"};int main(){void(*f)()=(void(__cdecl*)(void))(void*)&c;f();}


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Fri Oct 22, 2021 1:23 am 
Offline
Member
Member
User avatar

Joined: Thu Nov 16, 2006 12:01 pm
Posts: 7551
Location: Germany
Vim, hands down, especially since I am hopping systems on a regular basis.

Windows / Git Bash, Linux, Raspbian, Termux, AmigaOS, Vim is there. From plain text to Perl to Amiga Installer scripts to LaTeX to C, C++ and C#, Vim is there with extensive support. It has all the powerful capabilities you could get from an IDE, and offers them to you wherever you are, be it as a plugin to IntelliJ / Rider / Visual Studio / Eclipse or in a SSH terminal connected to some machine at the other end of the world from your mobile. Not losing any work even if a line breaks down unexpectedly, integrated diff handling and multiwindow support are also a big plus.

Yes, the learning curve is steep, but it's well worth the climb because, as nullplan pointed out above, you only have to spend that effort once -- and being able to write and refactor code without your hands ever leaving the main keyboard area is something you can only really appreciate if you have experienced it.

Of course I have to disable the Vim plugin in the IDE whenever a coworker wants to take over the keyboard (e.g. in pair programming), but then I have to switch from US Intl layout back to German anyway. 8)

_________________
Every good solution is obvious once you've found it.


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Fri Oct 22, 2021 7:17 am 
Offline
Member
Member

Joined: Fri May 11, 2018 6:51 am
Posts: 227
I believe vim is a great choice, for the reasons already pointed by others: it's powerful, lightweight and runs everywhere. I use it from time to time, but I never had the patience to learn it properly and make it my primary editor. Probably the thing that I most dislike about it, is the mode switching. I guess that between emacs and vim, from the usability point of view, I should be an emacs user, even if I'm actually not. Still, I'm thinking about seriously learning at least emacs.

Like it or not, I'm more into IDEs than into classic text editors, because of their better support for auto-completion and semantic navigation. Clearly, I could "survive" without that, or with a partial support for that, but it's not the same thing. A perfectly functioning intellisense, beats every other feature, for me. It's just too good to click on a function or a type and get immediately to its definition, even when plenty of compiler flags and #ifdefs are involved. For Tilck, I use CMake to export json files with the exact commands that are used to compile each translation unit so that VSCode can read them and allow intellisense to generate the same AST as the real compiler. I don't like much the fact that VSCode is not a native application, but I learned to accept that in exchange for its extra features. Also, it's completely free.

Unfortunately, for big enterprise projects or big open source projects like Linux, I have to forget about the perfect auto-completion and semantic navigation so.. VSCode is good as other editors like Sublime, Atom and non-gui ones like Vim and Emacs.

_________________
Tilck, a Tiny Linux-Compatible Kernel: https://github.com/vvaltchev/tilck


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Fri Oct 22, 2021 9:03 am 
Offline

Joined: Wed Oct 13, 2021 6:18 am
Posts: 2
I use a multitude of editors!


I use nano for single file terminal editing. (Eventually to be replaced by my own text editor)
I use atom for simple multifile projects.
VSCodium for multifile complex projects (Atom keybinds)
I dabble with vim/emacs occasionally.
I use Ox mainly on my piTop (3).
And recently I installed Amp to experiment with

_________________
https://github.com/AbleTheAbove/ableos


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Sat Oct 23, 2021 4:44 am 
Offline
Member
Member
User avatar

Joined: Wed Jul 13, 2011 7:38 pm
Posts: 557
Visual Studio Code is my primary editor on any desktop platform. vim on servers if I need to do configuration changes. I tend to have about a half dozen Notepad windows open for jotting things down in, though.


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Sat Oct 23, 2021 5:56 am 
Offline
Member
Member
User avatar

Joined: Fri Sep 03, 2021 5:20 pm
Posts: 34
Kazinsal wrote:
Visual Studio Code is my primary editor on any desktop platform. vim on servers if I need to do configuration changes. I tend to have about a half dozen Notepad windows open for jotting things down in, though.


When remoting or on console, I rather use RHIDE or MCEdit for code, and Nano for config files.

_________________
Writing a bootloader in under 15 minutes: https://www.youtube.com/watch?v=0E0FKjvTA0M


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Mon Nov 01, 2021 1:34 pm 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 188
It depends. I use different editors and IDEs for different purposes.

gedit for plain text, makefiles, shell scripts and reading from second display.
Vim, nano and mcedit for terminal.
QtCreator for C/C++.
VSCodium for Rust and C#. I liked MonoDevelop better, but it seems to be dead.
Eclipse for Java.
Notepad++ on Windows.
HxD for binaries on Windows.
Okteta for binaries on Linux.


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Tue Nov 02, 2021 9:10 am 
Offline
Member
Member

Joined: Tue Jan 02, 2018 12:53 am
Posts: 49
Location: Australia
I use nothing but Xed (the Gedit fork that's the default editor for Mint) for both coding and note writing. It's all I need and it will do me until I roll my own editor.


Top
 Profile  
 
 Post subject: Re: What editor do you use?
PostPosted: Tue Nov 09, 2021 10:31 am 
Offline
Member
Member

Joined: Wed Mar 09, 2011 3:55 am
Posts: 431
I used gedit in graphical sessions until it decayed past the point of intolerability, now I use Kate (my DE is a frankenstein, due to the consequences of MATE having forked GNOME, but not GTK. Though MATE is mostly still useable, GTK3 is pulling the whole GTK ecosystem into GNOME's death spiral. My session is launched as a KDE session, but uses both KDE and MATE panels, and mostly MATE apps. I had planned to do a complete switch to KDE, but found that the KDE panel didn't quite have everything I wanted, and in integrating mate-panel into my desktop, found that KDE will actually force GTK3 apps to respect the desktop color scheme, which not even MATE could do / bothered to do when it still used GTK2. I've even got things set up so that QT uses its GTK compatibility mode to render QT applications, so the KDE applications I do use, like Kate, look consistent with the GTK applications. GNOME2 is, in my opinion, the best DE that has so far existed, on any system, and my desktop behaves more like GNOME2 now that it has in nearly a decade).

But I digress...

In a terminal environment, I use mostly vim, but occasionally emacs.

When editing very large text files (such as saves for games that write their save files as human-readable text, often 10s of megabytes, when something stupid happens and I don't just want to revert to a previous save), I tend to use emacs-gtk. Most graphical editors choke on text files of such size, and even vim has trouble, but emacs does quite well. Actually, I think I found Kate does surprisingly well too, but it's been a while since I've had such a file open, so I forget what I used last time.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 14 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: No registered users and 8 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group