问题
In sublime text 2 you can multi select(cursor) lines by holding ctrl+alt+arrow key (up/down). In notepad++ you can accomplish the same thing by holding ctrl and clicking the additional lines(areas) you would like to edit. I figured I could use a autohotkey script to accomplish the same functionality. So I tried
#IfWinActive, ahk_class Notepad++
^!Down::^Click
but each time that I try to load the script I get
Error at Line 2
Line Text: ^Click
Error: This line does not contain a recognized action
the program will exit
then I tried
#IfWinActive, ahk_class Notepad++
^!Down::send ^Click
but that shows up as ETXClick in notepad++
What more do I need to get this script to work only for Notepad++
EDIT: It appears that autohotkey cannot mimic this behavior in Notepad++ IT
回答1:
You can use Alt + Shift + Arrow keys.
回答2:
Change to:
#IfWinActive, ahk_class Notepad++
^!Down::Send, ^{Click}
#IfWinActive
来源:https://stackoverflow.com/questions/12479505/mimic-sublime-text-2-multi-select-multi-cursor-in-notepad-using-autohotkey