[英]How to use other languages (e. g. Russian) in VSCode + Vim + Ubuntu without changing layout by self?
I solved this problem by adding to VSCode settings.json:我通过添加到 VSCode settings.json 解决了这个问题:
{
"vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "0",
"vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval \"imports.ui.status.keyboard.getInputSourceManager().inputSources[{im}].activate()\"",
"vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/gdbus call --session --dest org.gnome.Shell --object-path /org/gnome/Shell --method org.gnome.Shell.Eval \"imports.ui.status.keyboard.getInputSourceManager().currentSource.index\" | cut -d\"'\" -f2"
}
Default input method (in settings "vim.autoSwitchInputMethod.defaultIM") can be obtained by the last command in the list above (if type this command in terminal)默认输入法(在设置“vim.autoSwitchInputMethod.defaultIM”中)可以通过上面列表中的最后一个命令获得(如果在终端中输入这个命令)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.