Windows 上 Sublime Text 2 的键盘列选择 [英] Keyboard Column Selection for Sublime Text 2 on Windows

查看:24
本文介绍了Windows 上 Sublime Text 2 的键盘列选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在尝试通过在 Windows 上工作的键盘绑定来选择列.

I've been trying to get column selection via keyboard bindings working on Windows.

默认 (Windows).sublimekeymap 是这样说的:

{ "keys": ["ctrl+alt+up"], "command": "select_lines", "args": {"forward": false} },
{ "keys": ["ctrl+alt+down"], "command": "select_lines", "args": {"forward": true} },

这里也有记录:http://www.sublimetext.com/docs/2/column_selection.html 但是,每次我尝试通过键盘进行列选择时,它都不起作用.这是环境特定问题还是实际错误?或者我做错了什么.

And it is also documented here: http://www.sublimetext.com/docs/2/column_selection.html However, every time I try to do column selection via the keyboard it doesn't work. Is this an environment specific problem or an actual bug? Or perhaps I'm doing something wrong.

推荐答案

假设当您使用 Ctrl+Alt 在文本块中向上移动时,您会得到多个光标+Up,然后你需要使用 Shift+LeftShift+Right进行列选择.

Assuming you are getting multiple cursors when you go up in a block of text with Ctrl+Alt+Up, you then need to use Shift+Left and Shift+Right to make the column selection.

如果您根本没有获得多个光标,请尝试将键绑定更改为 updown,看看是否有效.可能是您的 Windows 环境将 Ctrl+Alt+Up` 用于其他用途,并阻止其在 Sublime 中使用.

If you are not getting multiple cursors at all, try changing the keybindings just to up and down, see if that works. It may be that your windows environment is using Ctrl+Alt+Up` for something else and prevents its use in Sublime.

这篇关于Windows 上 Sublime Text 2 的键盘列选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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