有没有办法在 Visual studio 代码中执行此键绑定?

Is there a way to do this keybinding in Visual studio Code?

我最近从 Sublime text 切换到 Vs code。 我想通过修改 keybinding.json

为“<”和“>”添加我的 sublime text 键盘快捷键

这是我试过的:

[
    { "keys": ["ctrl+j"], "command": "insert", "args": {"characters": "<"} },
    { "keys": ["ctrl+k"], "command": "insert", "args": {"characters": ">"} }]

但无法在 Vs 代码中工作

在 keybinding.json 文件中,这应该有效:

{
    "key": "ctrl+j",
    "command": "type",
    "args": { "text": "<" }
},
{
    "key": "ctrl+k",
    "command": "type",
    "args": { "text": ">" }
}