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?
Reply
#2
Replace as you type, or replace in already existing text?
Reply
#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.
Reply
#4
Code:
Select All      Help
ifk K 1 ;;if CapsLock is toggled
,key "_"
else
,key V

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


Forum Jump:


Users browsing this thread: 1 Guest(s)