Mimic Sublime Text 2 multi select (multi cursor) in Notepad++ using autohotkey

天涯浪子 提交于 2020-01-02 19:30:39

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!