我无法使用快捷键 Ctrl + 。(点) 在我的 Linux 计算机 (ubuntu 22.04 LTS) 上的 Visual Studio Code 上

Mik*_*ilo 5 keyboard-shortcuts shortcut dart visual-studio-code flutter

我的 Linux 机器 (Ubuntu 22.04 LTS) 遇到问题。使用 Visual Studio Code 时,我无法使用快捷键 Ctrl + 。(点)。这个快捷方式将帮助我在使用 Flutter 时变得更快。

Jon*_*han 8

最有可能的问题是,IBus 在 Ubuntu 22.04 中默认使用该快捷方式来访问表情符号。因此,您需要首先通过ibus-setup在终端中运行来更改该快捷方式,选择表情符号选项卡,然后将表情符号注释快捷方式更改为其他内容。参见https://askubuntu.com/a/1404462/1013434


Md.*_*ikh 2

检查键盘快捷键是否包含Ctrl + ..

在此输入图像描述

如果你能找到它,右键单击鼠标并添加或打开 json,如图所示(右上角)

并添加

// Place your key bindings in this file to override the defaultsauto[]
[
    {
        "key": "ctrl+.",
        "command": "problems.action.showQuickFixes",
        "when": "problemFocus"
    },
    {
        "key": "ctrl+.",
        "command": "editor.action.quickFix",
        "when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
    },
]
Run Code Online (Sandbox Code Playgroud)