使用自动快捷键在Notepad ++中模拟Sublime Text 2多重选择(多重光标) [英] Mimic Sublime Text 2 multi select (multi cursor) in Notepad++ using autohotkey

查看:309
本文介绍了使用自动快捷键在Notepad ++中模拟Sublime Text 2多重选择(多重光标)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在崇高文字2中,您可以按住ctrl + alt +箭头键(上/下)来多选(光标)行.在notepad ++中,您可以通过按住ctrl并单击要编辑的其他行(区域)来完成相同的操作.我认为我可以使用自动热键脚本来完成相同的功能.所以我尝试了

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

第2行出现错误
行文本:^点击
错误:此行不包含公认的操作

Error at Line 2
Line Text: ^Click
Error: This line does not contain a recognized action

程序将退出

然后我尝试了

#IfWinActive, ahk_class Notepad++
^!Down::send ^Click

但是在记事本++中显示为ETXClick

but that shows up as ETXClick in notepad++

要使此脚本仅适用于Notepad ++,我还需要什么

What more do I need to get this script to work only for Notepad++

EDIT :似乎自动热键无法在Notepad ++中模仿此行为 IT

EDIT: It appears that autohotkey cannot mimic this behavior in Notepad++ IT

推荐答案

您可以使用 Alt + Shift +方向键.

You can use Alt + Shift + Arrow keys.

这篇关于使用自动快捷键在Notepad ++中模拟Sublime Text 2多重选择(多重光标)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆