Lubuntu 中的多个光标 - Shift + Alt + 箭头(向上/向下) [英] Multiple cursors in Lubuntu - Shift + Alt + arrow (up/down)

查看:102
本文介绍了Lubuntu 中的多个光标 - Shift + Alt + 箭头(向上/向下)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在使用 Xubuntu 时,多光标功能曾经非常适合我.我最近安装了 Lubuntu 并且非常失望地发现该功能在这里不起作用.

The multicursor feature used to work very well for me when using Xubuntu. I recently installed Lubuntu and very disappointedly I realized that the feature does not work here.

在多行文本/代码中,我过去常常转到某个点,然后按组合键 Shift + Alt + 箭头(向上/向下).这会在箭头方向创建新的光标.

In a multi line piece of text/code I used to go to some point and then press the key combination Shift + Alt + arrow (up/down). This created new cursors in the direction of the arrow.

它似乎消失了,也许它在 LXDE 中不起作用?如果是这种情况,有没有办法在 Lubuntu 中移植该功能?

It seems gone, and maybe it does not work in LXDE? Is there a way to port the functionality in Lubuntu if that is the case?

推荐答案

发生这种情况的原因有几个.最有可能的是您有一个覆盖 Sublime 的系统快捷方式.转到系统设置"应用中的键盘快捷键"部分,确保没有人使用此组合键.

There are a few reasons why this could be happening. The most likely is you have a system shortcut that is overriding the Sublime one. Go to the Keyboard Shortcuts section in your System Settings app and make sure none of them use this key combination.

按键组合也可能在 Sublime 中被插件覆盖.要查看分配给此组合键的操作(如果有),请打开 Sublime 的控制台(View -> Show Console)并运行以下命令:

The key combo could also have been overwritten in Sublime itself by a plugin. To see what (if any) action is assigned to this key combo, open Sublime's console (View -> Show Console) and run the following command:

sublime.log_commands(True)

现在,在控制台仍然打开的情况下,单击打开文件的文本并点击 AltShift - 你应该看到

Now, with the console still open, click in the text of the open file and hit AltShift - you should see

command: select_lines {"forward": true}

如果命令正常工作.如果没有出现任何问题,则问题很可能与上述讨论的系统覆盖有关.如果显示其他内容,则可能来自插件.

if the command was working properly. If nothing shows up, the issue is most likely with a system override as discussed above. If something else shows up, it's probably from a plugin.

要了解它可能是什么插件,请安装 FindKeyConflicts 插件并从命令面板 (CtrlShiftP) 运行 FindKeyConflicts: (Direct) Conflicts to Buffer.搜索生成的文件以查看此特定组合键的其他定义位置.

To find out what plugin it might be, install the FindKeyConflicts plugin and run FindKeyConflicts: (Direct) Conflicts to Buffer from the Command Palette (CtrlShiftP). Search through the resulting file to see where else this particular key combination is defined.

这篇关于Lubuntu 中的多个光标 - Shift + Alt + 箭头(向上/向下)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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