在 VS Code 中取消缩进 [英] Un-indenting lines in VS Code
问题描述
是否有与 editor.actions.indentLines
等效的将所选行向左移动而不是向右移动的方法?
Is there an equivalent to editor.actions.indentLines
that moves the selected lines to the left instead of to the right?
我知道您可以使用 Tab/Shift+Tab 进行缩进.但不幸的是,这在 Vim 模式下不起作用.
I know you can use Tab / Shift+Tab for indenting. But unfortunately, that does not work in Vim mode.
推荐答案
这就是所谓的outdenting".查看命令:
That is called "outdenting". See the command:
{
"key": "shift+tab",
"command": "outdent",
"when": "editorTextFocus && !editorReadonly && !editorTabMovesFocus"
}
只需将其设置为不同的键绑定即可.您可以在键绑定中搜索shift tab"以尝试找出它已经绑定到的命令 - 在本例中为outdent".
Just set it to a different keybinding. You can search for "shift tab" in the keybindings to try to figure out what command it is already bound to - in this case "outdent".
实际上我看到 Ctrl-[ 已经绑定到 outdent,所以你也可以试试.
Actually I see that Ctrl-[ is already bound to outdent so you could try that as well.
这篇关于在 VS Code 中取消缩进的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!