notepad4
notepad4 copied to clipboard
Comment shortcut not working on VBS
Hi,
first, thanks for the better notepad2 version on the market, i was expecting for so long the ability to code fold by level.
I have an issue with my Ctrl+Q shortcut which doesn't seem's to work (and i use it a lot to comment/uncomment, very handy). Currently, the shortcut assigned is Ctrl +/ and that's not the good one for me.
Please, could you help ?
Regards.
Ctrl + /
does work on vbs, and there is no block comment delimiter in vbs, so Ctrl + Q
is not available.
@lifenjoiner you didn't understand : In the standard Notepad2, Ctrl+Q set the line on comment or uncomment. On zufuliu version, the Ctrl+Q not working and is badly replaced by Ctrl+/. VBS/Batch... it's on every language.
If so, it's another thing. You should use a clear title 🙂
@lifenjoiner : What word don't you understand in "Comment shortcut not working on VBS" ? :)
"Work or not" and "discuss choosing which key set" are totally different things. Good luck!
Just a matter of opinion mate. Good luck too in your life !
i vote for ctrl+q too like in notepad++ i hope we can have someday a way to change the keyboard shortcuts
Change the keyboard shortcuts ? The boss here will just told you to recompile yourself, because it's "so easy" and to have good shortcuts is "useless"...
@VoilierBleu i do not think it is easy, i remember one time in the past i had to program something for the keyboard and it was a nightmare because of the different types of keyboards , they surely have their reasons...
anyway i found an easy way to change the shortcuts now without compiling, and it solved my problem, here are the steps if you are interested: https://github.com/zufuliu/notepad2/issues/549#issuecomment-1330447996
i followed that nice guide, i wanted to change the comment and move line shortcuts
by default this was the shortcuts
LINE COMMENT Ctrl+/
STREAM COMMENT Ctrl+Q
MOVE LINE UP Alt+Up
MOVE LINE DOWN Alt+Down
i wanted to have the shortcuts like that:
LINE COMMENT ctrl+q instead of Ctrl+/
STREAM COMMENT ctrl+shift+q instead of Ctrl+Q
MOVE LINE UP ctrl+shift+up instead of Alt+Up
MOVE LINE DOWN ctrl+shift+down instead of Alt+Down
in resource hacker i changed this: for line comment i changed this
VK_DIVIDE, 40354, NOINVERT, CONTROL, VIRTKEY
to this
VK_Q, 40354, NOINVERT, CONTROL, VIRTKEY
for stream comment i changed this
VK_Q, 40355, NOINVERT, CONTROL, VIRTKEY
to this
VK_Q, 40355, NOINVERT, CONTROL, SHIFT, VIRTKEY
for move line up i changed this
VK_UP, 40313, NOINVERT, ALT, VIRTKEY
to this
VK_UP, 40313, NOINVERT, CONTROL, SHIFT, VIRTKEY
for move line down i changed this
VK_DOWN, 40314, NOINVERT, ALT, VIRTKEY
to this
VK_DOWN, 40314, NOINVERT, CONTROL, SHIFT, VIRTKEY
that is all, if you found any problem tell me and i will guide you if God want. gool luck