I would like to make a macro that upon pushing caps-lock replaces all space characters with underscores. It should stop replacing when either caps-lock is entered again or user pushes space bar.
Can someone give me some hints on this?
Posts: 12,123
Threads: 142
Joined: Dec 2002
Replace as you type, or replace in already existing text?
Posts: 2
Threads: 0
Joined: Sep 2006
As I type. I want to avoid holding shift down while typing long class names (required to be all caps by my company's coding standard). Thanks.
Posts: 12,123
Threads: 142
Joined: Dec 2002
ifk K 1 ;;if CapsLock is toggled
,key "_"
else
,key V
Assign Spacebar trigger.
Posts: 2
Threads: 0
Joined: Sep 2006
Thanks, that worked great.
Posts: 1,058
Threads: 367
Joined: Oct 2007
It it possible to replace as you type in already existing text (overwrite). I am primarily interested when in QM Editor. The Numpad "ins" key does not work. I wonder whether there exists a shortcut - escape sequence to do it. Many thanks in advance.
Posts: 12,123
Threads: 142
Joined: Dec 2002
Macro
Macro2549
SendMessage GetQmCodeEditor SCI.SCI_EDITTOGGLEOVERTYPE 0 0
Posts: 1,058
Threads: 367
Joined: Oct 2007
Many thanks, again. Best regards!