更新时间:2023-09-27 GMT+08:00
分享

键绑定和shell

Terminal视图聚焦时,许多CodeArts IDE键绑定将不起作用,因为击键将传递到终端本身并由终端本身消耗。有一个预定义的命令列表,这些命令跳过shell处理,而是发送到CodeArts IDE密钥绑定系统。您可以使用terminal.integrated.commandsToSkipShell设置自定义此列表。可以通过将命令名称添加到列表中来将命令添加到此列表中,并通过将命令名称添加到以破折号-开头的列表中来删除命令。请参阅设置详细信息以查看默认命令的完整列表。

{
  "terminal.integrated.commandsToSkipShell": [
    // Ensure the toggle sidebar visibility keybinding skips the shell
    "workbench.action.toggleSidebarVisibility",
    // Send quick open's keybinding to the shell
    "-workbench.action.quickOpen",
  ]
}

要覆盖terminal.integrated.commandsToSkipShell并将键绑定发送到shell而不是工作台,请设置terminal.integrated.sendKeybindingsToShell。

终端中的同时按下键绑定

默认情况下,当同时按下键绑定是最高优先级时,它将始终跳过终端shell(绕过terminal.integrated.commandsToSkipShell)转到CodeArts IDE。这通常是想要的行为,除非您希望shell使用“Ctrl+K”(对于bash,这将剪切光标之后的行)。这可以通过terminal.integrated.allowChords设置禁用:

{
  "terminal.integrated.allowChords": false
}
分享:

    相关文档

    相关产品