A VSCode extension that automatically switches input methods when switching between different editor groups.
- Automatically switch to a default input method (e.g., English) when a text editor becomes active
- Restore the previous input method when leaving the text editor (e.g., switching to a non-editor panel in another group)
- Uses im-select for cross-platform input method switching
Note: This extension monitors
onDidChangeActiveTextEditorevents within VSCode. It does not detect when the VSCode window itself loses focus to another application.
- im-select must be installed on your system
| Setting | Type | Default | Description |
|---|---|---|---|
autoSwitchInputMethod.imSelectPath |
string | /path/to/im-select |
Path to im-select executable |
autoSwitchInputMethod.defaultInputMethod |
string | "" |
Default input method code when editor is focused |
autoSwitchInputMethod.switchDelay |
number | 100 |
Debounce delay (ms) — also prevents false triggers when switching tabs |
autoSwitchInputMethod.verbose |
boolean | false |
Enable debug logging in console |
- Install im-select for your platform
- Run
im-selectin terminal to get your current input method code - Configure the extension settings:
- Set
autoSwitchInputMethod.imSelectPathto the full path of im-select executable - Set
autoSwitchInputMethod.defaultInputMethodto your preferred input method code (e.g., English keyboard)
- Set
{
"autoSwitchInputMethod.imSelectPath": "C:\\im-select\\im-select.exe",
"autoSwitchInputMethod.defaultInputMethod": "1033"
}MIT