小智 48
您可以使用ctrl+ ]缩进一行(或突出显示的块)和ctrl + [取消缩进。
在 OSX 上,这是cmd + ]/[.
您也可以使用 tab/shift+tab,但这些将从光标当前所在的位置开始,而ctrl+[/]将移动整行/块
d_r*_*ail 17
查看 colinta 的 SublimeMoveText。作为普通插件安装(包管理器将其称为“MoveText”),但必须手动设置键绑定。这是我所做的:
// MoveText
// move_text_left: Moves the selected text one character to the left
// move_text_right: Moves the selected text one character to the right
// move_text_up: Moves the selected text one line up
// move_text_down: Moves the selected text one line down
{ "keys": ["ctrl+shift+n"], "command": "move_text_left" },
{ "keys": ["ctrl+shift+m"], "command": "move_text_right" },
Run Code Online (Sandbox Code Playgroud)
突出显示您要移动的内容。如果多于一行,请按照@Jivings 的建议使用列选择(在 Win/Linux 上使用 shift+右键单击,在 OSX 上使用 option+鼠标)。然后使用键绑定向左/向右移动文本。您还可以设置键绑定来向上/向下移动选定的一行。
| 归档时间: |
|
| 查看次数: |
155288 次 |
| 最近记录: |