Skip to content

craze429/auto-switch-input-method

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Switch Input Method

A VSCode extension that automatically switches input methods when switching between different editor groups.

Features

  • 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 onDidChangeActiveTextEditor events within VSCode. It does not detect when the VSCode window itself loses focus to another application.

Requirements

Configuration

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

Usage

  1. Install im-select for your platform
  2. Run im-select in terminal to get your current input method code
  3. Configure the extension settings:
    • Set autoSwitchInputMethod.imSelectPath to the full path of im-select executable
    • Set autoSwitchInputMethod.defaultInputMethod to your preferred input method code (e.g., English keyboard)

Example Configuration

{
  "autoSwitchInputMethod.imSelectPath": "C:\\im-select\\im-select.exe",
  "autoSwitchInputMethod.defaultInputMethod": "1033"
}

License

MIT

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors