For writing code, I still use an ancient 1986 text editor that runs under DOS. I run it under DOSEMU now. After all those years, it's pretty much a direct mind-to-text interface.
For debugging code, almost all compilers come with some default editor or "build environment." I just use whatever is there, for convenience.