Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Macro to replace 'space' with underscore
#1
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?
#2
Replace as you type, or replace in already existing text?
#3
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.
#4
Code:
Copy      Help
ifk K 1 ;;if CapsLock is toggled
,key "_"
else
,key V

Assign Spacebar trigger.
#5
Thanks, that worked great.
#6
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.
#7
Macro Macro2549
Code:
Copy      Help
SendMessage GetQmCodeEditor SCI.SCI_EDITTOGGLEOVERTYPE 0 0
#8
Many thanks, again. Best regards!


Forum Jump:


Users browsing this thread: 3 Guest(s)