gpt4 book ai didi

visual-studio-code - 用于换行的 VS Code 按键绑定(bind)

转载 作者:行者123 更新时间:2023-12-03 08:04:17 41 4
gpt4 key购买 nike

我想添加一个用于在编辑器中插入换行符的键绑定(bind) (textInputFocus)。通常,Return 键可以执行此操作(VS Code 调用 Enter 键)。我可以使用 VS Code 中的哪个命令?

lineBreakInsert,但其行为与 Enter 通常的行为并不完全相同 - 它会插入换行符,但将光标保持在同一位置。

最佳答案

这是您要找的吗:

{
"key": "ctrl+o",
"command": "type",
"args": {
"text": "\n"
},
"when": "textInputFocus"
}

关于visual-studio-code - 用于换行的 VS Code 按键绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72919556/

41 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com