For example, when I use the Messages app in which I use one keyboard, and in Xcode, I use only English keyboard. Can macOS switch my keyboard to English when I make the Xcode window active?


Follow these steps to changing your keyboard language dynamically:

  1. Open up System Preferences. This should be in your /Applications folder.

  2. Click on "Keyboard":

    System Preferences - Main page

  3. Click on the "Input Sources" tab:

    System Preferences - Keyboard preference pane

  4. You should see a checkbox titled "Automatically switch to a document's input source". Check that checkbox and you're done!

    System Preferences - Keyboard preference pane - Input Sources tab

  • It works with messenger. But doesn't switch language to English in XCode. Maybe there is some input source preferences in XCode? – VladasZs Sep 14 '16 at 15:31
  • 2
    It works! I just switched language to English in XCode once and system remembered it automatically. – VladasZs Sep 14 '16 at 15:41
  • 1
    My god, thanks! Nothing will bring me down today :) – Gelbander Apr 4 at 6:59

I have developed a app for this functionality.

GhostSKB - smart switcher of language input source for no-en users of macOS

It will help you to setting default input source for almost every app. By using it, when your app become active, the input source will be automatically changed to the default input source which you setted in GhostSKB.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .