> In that case what would be the solution without caps lock, typing each character holding shift?
Yes, what little you need to type before autocompletion kicks in anyway, and code is mostly not constants, writing constants is a much rarer case than chording Control in emacs, terminal or cocoa text control.