An Idea plugin helps you switch input source automatically
一个可以帮你自动切换输入法的IDEA插件
-
Install this plugin from IDEA plugin repository or download the plugin zip file from Release page, and then install from disk
-
Setting the specified input source from preferences
Preferences
->Other Settings
->Auto Switch Input Source
(defaultABC
)
-
There are four setting options now:
IDEA focused
=> Idea IDE window get focused,eg. switch to IDEA from other app.Out of IDEA
=> Leaving Idea IDE to other apps.Vim in insert mode
=> In IdeaVim mode change toinsert
mode.Vim exit insert mode
=> In IdeaVim mode exitinsert
mode tonormal
orvisual
mode.
-
从IDEA的插件仓库直接安装;或者从Release页面上下载最新版本的插件ZIP压缩包,从硬盘安装。
-
在IDEA设置中找到
Preferences
->Other Settings
->Auto Switch Input Source
-
设置参数选项如下:
IDEA focused
=> Idea 获得焦点,例如从其他应用切换到IdeaOut of IDEA
=> 离开Idea,例如从Idea切换到其他应用Vim in insert mode
=> IdeaVim 中进入插入
模式.Vim exit insert mode
=> IdeaVim 中退出插入
模式 到正常
模式或者可视
模式.
- Clone this repo
git clone https://github.com/rieonke/idea-auto-switch-im.git
- Build Native Module
cd idea-auto-switch-im
cd native-src
xcodebuild -scheme ImSelect DSTROOT="./" archive
-
Then you will find a new directory in
native-src
namedusr
, copy theImSelect
bin file tosrc/main/resources/native
path -
Build plugin with gradle
gradle buildPlugin
- 克隆这个仓库到本地
git clone https://github.com/rieonke/idea-auto-switch-im.git
- 编译安装本地二进制工具
cd idea-auto-switch-im
cd native-src
xcodebuild -scheme ImSelect DSTROOT="./" archive
-
你将会在
native-src
下找到一个名为usr
的文件夹, 找到文件夹下的ImSelect
二进制文件到src/main/resources/native
-
编译插件
gradle buildPlugin
GPLv3