我的环境:
Windows 11 22000.493 -> Host OS
WSL 5.10.60.1
Ubuntu: 20.04.3 LTS -> Guest OS
IntelliJ: Build #IC-213.6777.52, built on January 28, 2022 -> Running inside WSL
我在 WSL 中运行 IntelliJ,如下所述:https://docs.microsoft.com/en-us/windows/wsl/tutorials/gui-apps
我已将 IntelliJ 配置为使用 Windows Proper Redo 键盘映射,以便我的快捷键与 Windows 环境中的快捷键相同。除导航快捷键(Ctrl+Alt+Left/Right)外,所有快捷键似乎都按预期工作。
如屏幕截图所示 - 它们配置正确。如果我切换组合 - 它们开始工作,但我希望将它们放在 Ctrl+Alt+Left/Right 下。
我在这里读https://stackoverflow.com/questions/47808160/intellij-idea-ctrlaltleft-shortcut-doesnt-work-in-ubuntuCtrl+Alt+Left/Right 干扰了 Gnome,但这是 WSL,我已按照以下步骤完全卸载了 Gnome如何在不干扰 Unity DE 的情况下删除 Gnome 桌面环境?(Ubuntu 16.04)并运行
sudo apt-get remove --auto-remove ubuntu-gnome-desktop
我的 Ubuntu 上似乎仍留有一些设置:
$ gsettings list-recursively | grep org.gnome.desktop.wm.keybindings | sort | grep Control
org.gnome.desktop.wm.keybindings cycle-panels ['<Control><Alt>Escape']
org.gnome.desktop.wm.keybindings cycle-panels-backward ['<Shift><Control><Alt>Escape']
org.gnome.desktop.wm.keybindings move-to-workspace-down ['<Super><Shift>Page_Down', '<Control><Shift><Alt>Down']
org.gnome.desktop.wm.keybindings move-to-workspace-left ['<Control><Shift><Alt>Left']
org.gnome.desktop.wm.keybindings move-to-workspace-right ['<Control><Shift><Alt>Right']
org.gnome.desktop.wm.keybindings move-to-workspace-up ['<Super><Shift>Page_Up', '<Control><Shift><Alt>Up']
org.gnome.desktop.wm.keybindings switch-panels ['<Control><Alt>Tab']
org.gnome.desktop.wm.keybindings switch-panels-backward ['<Shift><Control><Alt>Tab']
org.gnome.desktop.wm.keybindings switch-to-workspace-down ['<Super>Page_Down', '<Control><Alt>Down']
org.gnome.desktop.wm.keybindings switch-to-workspace-up ['<Super>Page_Up', '<Control><Alt>Up']
但是它们都没有与 Ctrl+Alt+Left/Right 绑定。我没有主意了。如何让键盘组合在 WSL2 中运行的 IntelliJ 中起作用?