vscode 键绑定!terminalFocus 更新后不起作用? [英] vscode key binding !terminalFocus not working after update?

查看:56
本文介绍了vscode 键绑定!terminalFocus 更新后不起作用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

更新 1.31 后,此键绑定不再有效.

<代码>{"key": "``","command": "workbench.action.terminal.focus","when": "!terminalFocus"},{"key": "``","command": "workbench.action.focusActiveEditorGroup","when": "终端焦点"},

进入终端后,它不会返回编辑器,而是只写``.
我看到他们提到了一些关于 terminal.integrated.commandsToSkipShell 的新内容,所以我认为它与此有关,但我不知道如何使其工作.
我尝试添加一个新的偏好,如:

terminal.integrated.commandsToSkipShell:["workbench.action.terminal.focus"]

但没什么.

解决方案

With

after the update 1.31 this key binding doesnt work anymore.

{
        "key": "` `",
        "command": "workbench.action.terminal.focus",
        "when": "!terminalFocus"
    },
    {
        "key": "` `",
        "command": "workbench.action.focusActiveEditorGroup",
        "when": "terminalFocus"
},

once in the terminal, instead of going back to editor, it just writes ``.
I've seen that they mentioned something new about terminal.integrated.commandsToSkipShell , so I assume it has something to do with this, but I dont know how to make it work anyway.
I tried adding a new preference like:

terminal.integrated.commandsToSkipShell:["workbench.action.terminal.focus"]

but nothing.

解决方案

With VSCode 1.52 (Nov. 2020), you now have:

Terminal Keybindings Management

By default, keybindings are dispatched to the workbench instead of the terminal as specified in terminal.integrated.commandsToSkipShell.
This notification informs the user when they have entered a keybinding corresponding to one of these commands and provides the option to configure the relevant settings.

To send most keybindings to the terminal instead of the workbench, set terminal.integrated.sendKeybindingsToShell.

这篇关于vscode 键绑定!terminalFocus 更新后不起作用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆