[经验分享] vscode vim 插件设置中英文自动切换
电梯直达到第
poster avatar
wowo
deepin
发表于 2021-08-20 06:35
楼主

背景

记录一下,自己配置vscode相关的步骤。

环境

社区版(20.2.3)

内核:5.12.18-amd64-desktop

fcitx5

步骤

1. 首先根据参考1中的相关介绍,安装fcitx5。(此步骤非必须,fcitx4也可以)

2. 安装vscode vim插件并配置。

3. 打开配置文件,写入以下配置

 "vim.autoSwitchInputMethod.enable": true,
"vim.autoSwitchInputMethod.defaultIM": "1",
 "vim.autoSwitchInputMethod.obtainIMCmd": "/usr/bin/fcitx5-remote",
 "vim.autoSwitchInputMethod.switchIMCmd": "/usr/bin/fcitx5-remote -t {im}",

此处注意:如果是fcitx5,则使用fcitx5-remote;否则使用fcitx-remote。

4. 重启vscode后生效。

5. 其他平台,如win,可按照参考2中的文档进行配置。

参考

Deepin 20.2.3使用Fcitx5输入法

im-select

Linux 下 VSCode Vim 自动切换输入法

 

回复 收藏 只看作者
所有回复

暂无回复,快来抢沙发吧