Mastering Rime: How to Toggle Shift Key for Chinese/English Switching
精通 Rime:如何設定 Shift 鍵切換中英文輸入模式
Rime is a highly customizable input method framework, and one of the most common requests is configuring how the Shift key behaves.
Rime 是一款高度可客製化的輸入法框架,而最常見的需求之一就是設定 Shift 鍵的行為。
1. Locate the User Folder / 定位用戶資料夾
All custom settings in Rime should be placed in the User Folder to ensure they aren't overwritten during updates.
Rime 的所有自定義設定都應放在**「用戶資料夾」**中,以確保更新時不會被覆蓋。
- Windows (Weasel): Right-click the tray icon → "User folder".
- Windows (小狼毫): 右鍵點擊系統匣圖示 →「用戶資料夾」。
- macOS (Squirrel): Click the input method icon → "Settings..." (or find
~/Library/Rime).
- macOS (鼠鬚管): 點擊輸入法圖示 →「使用者設定」。
2. Modify default.custom.yaml / 修改設定檔
You need to add or edit the
ascii_composer section within your default.custom.yaml file.您需要在
default.custom.yaml 檔案中新增或編輯 ascii_composer 區塊。yaml
3. Understanding the Modes / 模式說明
You can assign different values to
Shift_L or Shift_R depending on your preference:您可以根據喜好為
Shift_L 或 Shift_R 指定不同的數值:Value / 參數 | Effect / 效果 |
inline_ascii | Temporary English mode; press Enter to commit English. (暫時英文模式,回車上屏) |
commit_code | Switch to English and automatically commit the current buffer. (切換並直接上屏已打字母) |
clear | Switch to English and clear the current buffer. (切換並清除目前輸入的編碼) |
noop | Do nothing (Disables the toggle). (不執行動作,即停用該鍵切換功能) |
4. Apply Changes / 套用變更
After saving the file, you must Deploy Rime for the changes to take effect.
儲存檔案後,您必須執行**「重新佈署」**才能使變更生效。
- Right-click the Rime icon and select "Deploy" (or press
Ctrl + Alt + ~).
- 右鍵點擊 Rime 圖示並選擇**「重新佈署」**(或按下
Ctrl + Alt + ~)。
- 作者:JK Yang
- 網址:https://jk1124.netlify.app/article/2f3d03e5-8529-801d-ba36-dc2da7781e8c
- 著作權聲明:本文使用 CC BY-NC-SA 4.0 著作權許可,使用請標注出處。

