How do I switch between languages on Windows 10 like I do in OS X?
One can assign in Windows 10 a keyboard shortcut to a language :
Go to Control Panel -> Clock, Language, and Region -> Language -> Advanced settings.
Under Switching input methods, click Change language bar hot keys, then click on your language, and finally on Change Key Sequence.
This will display a dialog where you can assign a shortcut key to that language:
Since the above shortcut keys are quite limited, it is possible by using for example AutoHotkey to change this to any other keyboard combination. Once you learn AutoHotkey, it will be easy to reproduce the exact behavior of OSX (one can also ask for help on their forum).
Many AutoHotkey scripts can be found on the Internet and one can tailor them to fit any need.
The following example script aims at improving the functioning of Alt+Shift as a toggle between the English and Russian keyboards for the current window :
; This should be replaced by whatever your native language is. See
; http://msdn.microsoft.com/en-us/library/dd318693%28v=vs.85%29.aspx
; for the language identifiers list.
ru := DllCall("LoadKeyboardLayout", "Str", "00000419", "Int", 1)
en := DllCall("LoadKeyboardLayout", "Str", "00000409", "Int", 1)
!Shift::
w := DllCall("GetForegroundWindow")
pid := DllCall("GetWindowThreadProcessId", "UInt", w, "Ptr", 0)
l := DllCall("GetKeyboardLayout", "UInt", pid)
if (l = en)
{
PostMessage 0x50, 0, %ru%,, A
}
else
{
PostMessage 0x50, 0, %en%,, A
}
Here are some threads offering scripts for changing the keyboard layout with various functionality :
- Keyboard layout switcher
- Keyboard layout switcher for many layouts
- Using CapsLock to switch the keyboard language layout
Here are some free products that do that as well :
- keyla - Can define keyboard shortcuts or use a taskbar icon
- Recaps - Uses CapsLock to switch the keyboard language
If you want the exact behavior as in macOS, without having to configure, you can use Ctrl+Win+Space to switch between the two recently used languages, like what you get from Cmd+Space.
To switch to other input methods, like when you hit Cmd+Space twice, just use Win+Space.
How to switch languages in Windows 10 (almost) like in OS X, Android, IPhone
There is (almost perfect) solution for this issue in Windows 7, which is possible to implement in Windows 10 with few additional steps.
Background
The solution is based on the fact that there're two distinct entities in Windows: Input Language and Keyboard Layout.
By default Alt+Shift loops through configured Input Languages and it is Input Language which people usually add when they require additional languages in their systems.
But.
- It is possible to alter behavior of Alt+Shift (or Ctrl+Shift if you prefer) to loop through Keyboard Layouts and not to change Input Language.
- It is possible to specify different keyboard shortcut for every Input Language (as it is also described in one of other answers to this question)
- Most importantly it is possible to add unrelated Keyboard Layout to an Input Language (even layout with different script), for example Hebrew Layout to English Language. This step is a bit tricky in Windows 10, but doable.
Finally you'll end up having several different Input Languages, for each of which you'll have separate keyboard shortcut, but once you choose Input Language you'll be able to use regular Alt+Shift which will loop between defined Keyboard Layouts "inside" of the Input Language.
Configuration in Windows 10
For simplicity, let's assume that you want to use 3 languages: English, Russian and Hebrew. Upon completing the steps below you'll have three modes of operation:
- English mode, used by default, selected with Ctrl+1 and Alt+Shift (or Ctrl+Shift) looping between English and Russian
- Hebrew mode, selected with Ctrl+2 and with Alt+Shift (or Ctrl+Shift) looping between English and Hebrew
- Russian mode, selected with Ctrl+3 and with Alt+Shift (or Ctrl+Shift) looping between English and Russian
Steps to configure.
- Ctrl-Esc (which opens Start Menu) - or Windows Button in the left bottom corner of the screen
- Type Language (which should bring up Language item from Control Panel), press Enter
- Depending on your vendor you might have English and your regional language. Assuming you have only English, add Russian and Hebrew with Add a language button
- Every language comes with default Input Method, which corresponds to the language. Now we will add "unrelated" Input Method to each Input Language:
- Download Microsoft Keyboard Layout Creator
- File -> Load Existing Keyboard.
- Choose the layout which you want to add (let's start with Russian Layout for English Input Language)
- Project -> Properties
- Modify Language to match Input Language for which you want this keyboard layout to be available. It would be English (United States) in our case.
- Press OK. You might need to modify Description slightly if you get "Keyboard description is identical" error message. Just add some suffix.
- Open the Project menu and choose Build DLL and Setup Package. Ignore warning, agree to open directory where Windows Installer package was built.
- Run setup.exe, which installs your Keyboard Layout for the chosen Input Language
- If you reopen (close and open once again) Language screen (from step 2) and choose Options for English (United States) language, you should see two input methods now: US and Unavailable input method
- Repeat steps 4.1-4.9 for all the needed keyboard layouts (for the example that we're discussing, we would need two more repetitions: load English keyboard set Language to Russian in Project -> Properties and build it, load English keyboard again, set Language to Hebrew in Project -> Properties and build it).
- Upon successful completion of previous steps you should have Unavailable input method on the Options screen for every language that you used as the target language in step 4.5.
- Last step is to configure keyboard shortcuts. Open Language screen (steps 1-2)
- Choose Advanced settings (on the left pane of Language screen)
- Choose Change language bar hot keys
- Choose Between input languages (left mouse click) and press Change Key Sequence button
- Choose Not Assigned in the Switch Input Language pane
- Choose Left Alt + Shift (or the one you prefer) in Switch Keyboard Layout pane
- Confirm (OK).
- Choose To English (United States) - US (left mouse click), press Change Key Sequence button, check Enable Key Sequence, choose Ctrl and 1 (or any other preferrable), confirm
- Choose To Hebrew (Israel) - Hebrew (Standard) (left mouse click), press Change Key Sequence button, check Enable Key Sequence, choose Ctrl and 2 (or any other preferrable), confirm
- Choose To Russian (Russia) - Russian (left mouse click), press Change Key Sequence button, check Enable Key Sequence, choose Ctrl and 3 (or any other preferrable), confirm
- Reboot (yes, keyboard shortcuts are quite buggy in Windows, once you change them, you'll need to reboot so that they're registered correctly).
Configuration in Windows 7
Configuring the same use case in Windows 7 is simpler and doesn't require downloading additional tools.
- Ctrl-Esc (which opens Start Menu) - or Windows Button in the left bottom corner of the screen
- Type Region and Language (which should bring up Language item from Control Panel), press Enter
- Keyboards and Languages tab -> Change keyboards
- Choose Add button and search for English (United States) section
- Click + (plus sign) which open Keybord section
- Open it and click Show More... item, which will complement the list with all the different languages, find Russian in this list and check it (make sure you selected Russian inside of Keyboard inside of English (United States) list.
- After confirming you should have two Keyboards under EN English (United States): US and Russian.
- Click Add, search for Hebrew (Israel) and select Hebrew, Show more..., United States-International (which will be available only after choosing Show more), confirm
- Click Add, search for Russian (Russia) and select Russia, Show more..., US (which will be available only after choosing Show more), confirm
- Go to Advanced Key Settings tab
- Choose Between input languages (left mouse click)
- Choose Change Key Sequence button
- Set Switch Input Language to None, Switch Keyboard Layout to Left Alt + Shift (or Ctrl + Shift), confirm
- To English (United States) - US -> Change Key Sequence -> Enable Key Sequence, set to Ctrl+1, confirm
- To Hebrew (Israel) - United States-International -> Change Key Sequence -> Enable Key Sequence, set to Ctrl+2, confirm
- To Russian (Russia) - US -> Change Key Sequence -> Enable Key Sequence, set to Ctrl+3, confirm
- Confirm (OK).
- Reboot.
Notes
There's one peculiarity: in some programs you might get garbled characters, unless you switch to the right Input Language (for example, if you get garbled Russian input, use Ctrl+3 to switch to Russian keyboard layout). But it happens quite rarely and only in some unusual circumstances (for most of Windows users), doesn't really bother me a lot.