I use UltraEdit as editor. Great editor, very flexible. And yes, I hardcode too. Sorry, but that's the way to go. You need to understand the code before you can use it.
Compare it to composing: Before you know about harmony, scales, keys, and compositional styles, you can only compose a simple tune. But you just don't need to know about it, you have to breathe it.
I templatize, isolate functions and reuse code - rigorously. That way, I can not only secure solid coding, as well as short development times, I can also make major changes in very little time. I also use this approach in design, user interfaces and information architecture, too.
It helps a great deal by keeping a library of reusable code that has stood the test of time. There is no need to code something that you have already coded once.