It’s not for everybody, but choose a good text editor with syntax features, read documentation and related code, use a lightweight build system, and write without an IDE. It’s really not that difficult, is transferable to any framework or language, and forces you to learn APIs and code bases.
In the past 20 years I’ve used Vim to write PHP, Java, Bash, C, C++, Ruby, Perl, JavaScript, Objective-C, Swift, a proprietary S-expression language, and documents in LaTeX. This isn’t something I drop into occasionally, it’s my primary editor used along side compilers and interpreters. I’ve never once said, Vim doesn’t start fast enough or is taking too much memory (though I have caused it to hang based on my own dumb search or replace commands).
There are plenty of native text editors that work just as well. On the Mac I’ve had great experiences with BBEdit, TextMate, and SubEthaEdit. Other people like Sublime. There really is no shortage of great text editors.
Developers need to start treating electron apps like the plague. They are merely low effort attempts at cross platform tools written in the most user hostile way.