notepad4 icon indicating copy to clipboard operation
notepad4 copied to clipboard

Comment shortcut not working on VBS

Open VoilierBleu opened this issue 3 years ago • 9 comments

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.

VoilierBleu avatar Mar 26 '21 07:03 VoilierBleu

Ctrl + / does work on vbs, and there is no block comment delimiter in vbs, so Ctrl + Q is not available.

lifenjoiner avatar Mar 26 '21 11:03 lifenjoiner

@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.

VoilierBleu avatar Mar 26 '21 17:03 VoilierBleu

If so, it's another thing. You should use a clear title 🙂

lifenjoiner avatar Mar 27 '21 00:03 lifenjoiner

@lifenjoiner : What word don't you understand in "Comment shortcut not working on VBS" ? :)

VoilierBleu avatar Mar 27 '21 08:03 VoilierBleu

"Work or not" and "discuss choosing which key set" are totally different things. Good luck!

lifenjoiner avatar Mar 27 '21 10:03 lifenjoiner

Just a matter of opinion mate. Good luck too in your life !

VoilierBleu avatar Mar 27 '21 12:03 VoilierBleu

i vote for ctrl+q too like in notepad++ i hope we can have someday a way to change the keyboard shortcuts

badrelmers avatar Mar 13 '24 17:03 badrelmers

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 avatar Mar 13 '24 19:03 VoilierBleu

@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

badrelmers avatar Mar 13 '24 22:03 badrelmers