LoginSignup
1
1

More than 5 years have passed since last update.

Yosemiteの日本語入力で常に半角スペースにする

Last updated at Posted at 2015-08-26

設定するファイル

/System/Library/Input\ Methods/JapaneseIM.app/Contents/Resources/KeySetting_Default.plist

:flags: Windows風のキー操作にしている人は
KeySetting_Windows.plist

私はWindows風にしているのでこちらのファイルを設定します

設定方法

一応バックアップをとってから開きます

sudo cp /System/Library/Input\ Methods/JapaneseIM.app/Contents/Resources/KeySetting_Windows.plist /System/Library/Input\ Methods/JapaneseIM.app/Contents/Resources/KeySetting_Windows.plist.org

sudo vi /System/Library/Input\ Methods/JapaneseIM.app/Contents/Resources/KeySetting_Windows.plist

スペースの設定部分

KeySetting_Windows.plist
<key>&apos; &apos;</key>
<dict>
        <key>command</key>
        <string>direct_input</string>
        <key>character</key>
        <string> </string>
</dict>
<key>shift+&apos; &apos;</key>
<dict>
        <key>command</key>
        <string>direct_input</string>
        <key>character</key>
        <string> </string>
</dict>

&apos; &apos;がスペースキーという意味です(' ')
何も設定しないと、spaceで全角のスペース、shift+spaceで半角のスペースが入るという設定になっています
ここを書き換えます

<key>&apos; &apos;</key>
<dict>
        <key>command</key>
        <string>direct_input</string>
        <key>character</key>
        <string> </string>
</dict>
<key>shift+&apos; &apos;</key>
<dict>
        <key>command</key>
        <string>direct_input</string>
        <key>character</key>
        <string> </string>
</dict>

spaceで半角スペース、shift+spaceで全角スペースを入れられるようにしました。

できました!

←space
 ←shift+space

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1