yes, but it is the defect of the innovations: our practices should be changed...
Luckily we do change practices from time to time, otherwise the Inquisition would still burn down your house :lol:
But seriously, I agree that people like to keep their habits. If I understand correctly what you want (pressing tab indents
and does some basic error checking), then calling AStyle would probably really be the easiest way. If you forgot a brace or a semicolon, AStyle will freak up formatting horribly, I often use that feature as a quick spell-checker, too. It is quite good.
Thus, I would hijack the tab key event and send a menu event to AStyle in the easiest case. Or, more sophisticated, copy the current line to a separate buffer, process that buffer, and write it back, then you keep the formatting in the rest of the document. If you don't want to use AStyle, you'll have to write a code parser for that, this may not be precisely the easiest thing.
:arrow: Am I the only programmer who uses C::B and who likes the key TAB of emacs? :cry:
A few months ago, someone wanted
vi key bindings (don't remember who).