this post was submitted on 10 Oct 2023
20 points (81.2% liked)

Programming

17017 readers
553 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities !webdev@programming.dev



founded 1 year ago
MODERATORS
 

(Graphical) IDE's are great for development, but they're slow to start and heavy to run. Sometimes you just want to take a quick look at an xml or dockerfile and you don't want to spin up the whole IDE for that.

I've recently rediscovered notepad++ for that (on windows), what's your prefered easy-acces-tekst-editor?

top 50 comments
sorted by: hot top controversial new old
[–] bus_factor@lemmy.world 20 points 11 months ago (3 children)

vim. Just basic vim, I don't jazz it up to be all IDE-like. I want my vim to behave exactly like it would if I'm on some random other computer.

If I need autocomplete, ability to jump to the definition of stuff and so forth I use whatever the other people on the project use, which is often vscode these days.

[–] uniqueid198x@lemmy.dbzer0.com 3 points 11 months ago

exactly this. If I need to do development, i'll use a jetbrains product. If i'm in a pure text editing situation, I want the most powerful thing for manipulating text, and I want it to be available.

[–] Synthead@lemmy.world 2 points 11 months ago

You don't enjoy a plugin like gutentags? You're missing out. Don't let your principles get in the way of your productivity.

[–] tatterdemalion@programming.dev 19 points 11 months ago* (last edited 11 months ago) (1 children)

Helix. Instant startup. Minimal configuration required. Has all of the killer features I want from an IDE anyway.

EDIT: I assumed people would just research this anyway, but a more complete list of features I enjoy from Helix:

  • very responsive
  • modal editing
  • declarative configuration file format (TOML, not Lua)
  • language server protocol
  • debug adapter protocol
  • written in Rust so I am more likely to be able to submit a PR if I need to

Some cons (all known issues on github):

  • no plugin API yet
  • inline LSP diagnostics are overly intrusive and can overlap your code
  • cold-starts the LSP when you start the editor, so you might need to wait for symbol queries in a large project
[–] jennraeross@lemmy.world 6 points 11 months ago (2 children)

Helix deserves more love. Blazing fast, sensible defaults, good lsp support, vim-ish bindings. It’s really my perfect editor

[–] abbadon420@lemm.ee 2 points 11 months ago (1 children)

You make a good case. I'll check it out

[–] jennraeross@lemmy.world 3 points 11 months ago (1 children)

For anyone trying it out for the first time: If you aren't sure how to do something, it's probably hitting the spacebar in normal mode. That will bring up a list of shortcuts, including the debugging, file chooser, and actions (for the lip)

[–] tatterdemalion@programming.dev 2 points 11 months ago

There is also a pretty good interactive tutorial. Just run the :tutor command.

load more comments (1 replies)
[–] UndercoverUlrikHD@programming.dev 13 points 11 months ago

Vim if I'm on Linux, notepad++ if I'm on windows. Though I will use VSCode in both OS if want to make a lot of changes and run the file.

[–] peter@feddit.uk 13 points 11 months ago (1 children)

I wouldn't normally point out a spelling mistake but... Why did you spell text like that?

[–] onizuka89@programming.dev 15 points 11 months ago (2 children)

In some languages tekst is their native word for text. OP seems to at very least know dutch, where that seems to be the case.

[–] abbadon420@lemm.ee 6 points 11 months ago

Lol yeah, it's a dutchism 😆

[–] peter@feddit.uk 3 points 11 months ago

That sounds like the most likely explanation

[–] intelisense@lemm.ee 12 points 11 months ago

Kate, though it gets a bit IDE like.

[–] maxmalrichtig@discuss.tchncs.de 11 points 11 months ago (1 children)

Emacs. But honestly, I have no idea what I am doing.

[–] sping@lemmy.sdf.org 2 points 11 months ago* (last edited 11 months ago) (4 children)

I'd call that an IDE, but also one that makes using a non-IDE editor superfluous.

[–] vidarh@lemmy.stad.social 2 points 11 months ago (2 children)

As the old (bad) joke goes: Emacs is a great operating system. Shame it lacks a good editor.

load more comments (2 replies)
load more comments (3 replies)
[–] marwwin@suppo.fi 10 points 11 months ago

Neovim for most things. At work I use VSCode for Java stuff

[–] GuybrushThreepwo0d@programming.dev 9 points 11 months ago

Vim for everything

[–] starman@programming.dev 7 points 11 months ago* (last edited 11 months ago) (2 children)

Helix and Code - OSS sometimes (Code - OSS is an open source vscode distribution)

load more comments (2 replies)
[–] trollercoaster@feddit.de 7 points 11 months ago (1 children)

vim on any *nix box, Notepad++ when forced to use Windows.

[–] brisk@aussie.zone 3 points 11 months ago (1 children)

Vim is cross platform, just in case you don't know

[–] trollercoaster@feddit.de 1 points 11 months ago (1 children)

Hadn't looked into that for a long time, will try. I think the biggest hurdle for me might be native Windows terminals still being shit.

[–] brisk@aussie.zone 3 points 11 months ago (1 children)

Yeah absolutely. I only use the graphical version (gvim) on Windows.

[–] floofloof@lemmy.ca 1 points 11 months ago

It's the best solution for editing huge text files in Windows. The other text editors slow to a crawl with big files, but gvim has no problem.

[–] klangcola@reddthat.com 7 points 11 months ago (1 children)

Kate on Linux, Notepad++ on Windows.

Also, Kate on Windows (it's really good)

[–] ShrimpsIsBugs@programming.dev 2 points 11 months ago

Didn't know there's Kate for windows, nice

[–] atyaz@reddthat.com 6 points 11 months ago

This is going to be a boring answer but I use neovim. I do use it as my ide as well but it’s so fast and lightweight that when I need to edit a random config file or something, I just start another instance of it.

[–] vidarh@lemmy.stad.social 6 points 11 months ago* (last edited 11 months ago)

My own. My Emacs config grew over years to several thousand lines, and it got to a point where I decided I could write an editor in fewer lines that it took to configure Emacs how I liked it. It's ... not for everyone. I'm happy with it, because it does exactly only the things I want it to, and nothing else, but it does also mean getting used to quirks you can't be bothered to fix, and not getting to blame someone else when you run into a bug.

That said, writing your own editor is easier than people think, as long as you leverage libraries for whichever things you don't have a pressing need to customize (e.g. mine is written in Ruby, and I use Rouge for syntax highlighting, and I believe Rouge is more lines of code than the editor itself thanks to all the lexers)

[–] ono@lemmy.ca 5 points 11 months ago* (last edited 11 months ago) (1 children)

Geany or (with a lot of reconfiguration) Kate.

Geany is built upon the same text edit control as Notepad++.

[–] jonne@infosec.pub 2 points 11 months ago

Same for me, I even use it on Mac OS X too (which somehow still doesn't ship with a basic text editor).

[–] slowbyrne@beehaw.org 4 points 11 months ago

Helix, Lapce, and/or VSCodium

[–] tuto193@lemmy.world 3 points 11 months ago

(Neo)vim. Has everything I could ever need.

[–] binboupan@lemmy.kagura.eu 3 points 11 months ago (1 children)

Kate since VSCode doesn't render correctly on my rig anymore...

[–] intelisense@lemm.ee 2 points 11 months ago

I had the problem a week or so ago. I deleted my settings file and it started working again.

[–] Andy@programming.dev 3 points 11 months ago
  • Sublime Text
  • micro
  • less + highlight/rich-cli/bat
[–] StrawberryPigtails@lemmy.astaluk.icu 2 points 11 months ago (1 children)

As often as not, I'm using nano on the command line. It's available in Windows through WSL.

Being honest, WSL makes running Windows so much easier.

[–] Gentoo1337@sh.itjust.works 2 points 11 months ago

Neovim and Emacs

[–] colonial@lemmy.world 2 points 11 months ago (1 children)

The GNOME text editor or Nano.

I appreciate Vim, but when I just need to inspect something or change a single line, the former are easier.

As for Neovim and Emacs... I don't have eight hours to set aside monthly to keep them configured and working.

[–] hascat@programming.dev 2 points 11 months ago (1 children)

I've been a vim user for over a decade and I doubt I've spent eight hours configuring it in all that time.

[–] bus_factor@lemmy.world 2 points 11 months ago

Most of the configuration I've done in vim is to remove whatever someone else did. Like I log in as root on a server and someone put set number in /root/.vimrc. Like having the line number in the bottom right wasn't enough for you, you need to waste three columns to show numbers for every line on the screen, and now I can't copy and paste from vim without having to delete three columns from every line? NO.

[–] qaz@lemmy.world 2 points 11 months ago

KWrite/Kate or Neovim, depends on whether I’m using a graphical interface or terminal.

[–] whaleross@lemmy.world 2 points 11 months ago

Sublime Text 2, for which I have a licence. I'd upgraded to 3 but not for a subscription model.

[–] kiranraine@reddthat.com 2 points 11 months ago

Pulsar, granted it can be ide like and I do contribute to it but I loved atom over any other tool that I've been introduced too by anyone. Sometimes I do use nano tho bc of having some familiarity with the command line but not enough to be fully functional tbh.

[–] showmustgo@hexbear.net 1 points 11 months ago

npp for sure

[–] jelloeater85@lemmy.world 1 points 11 months ago

VSCodium, because it's not a plug-in filled beast like my regular VSCode is. Also Micro is neato. Helix seems nice too.

load more comments
view more: next ›