【问题标题】:Vim Autoaligment in VscodeVimVscodeVim 中的 Vim 自动对齐
【发布时间】:2017-12-03 05:19:53
【问题描述】:

使用 vscodevim,如何像 Vim 一样使用 = 自动对齐?例如:

.wrapper-box {
        // line is out of tab. 
        .box {
          border: 1px solid red;
        }
}

在 vim 中,我可以选择 .wrapper-box,然后点击 = 和行自动对齐/自动缩进。如何在 VscodeVim 中使用这个键绑定?

【问题讨论】:

    标签: vim visual-studio-code vscodevim


    【解决方案1】:
    `"vim.otherModesKeyBindingsNonRecursive": [
            {
                "before": [
                    "="
                ],
                "after": [],
                "commands": [
                    {
                        "command": "editor.action.reindentlines",
                        "args": []
                    }
                ]
            }
        ]
    `
    

    抱歉,已回复。

    【讨论】:

      猜你喜欢
      • 2011-03-17
      • 2023-03-15
      • 1970-01-01
      • 2015-02-20
      • 1970-01-01
      • 2011-11-07
      • 2021-12-11
      • 2012-02-16
      • 1970-01-01
      相关资源
      最近更新 更多