Skip to content
Wu Bing edited this page Apr 29, 2015 · 7 revisions

Shortcut Conflicts or Customize Shortcit

it is just so easy ~

  1. Find and Click the menu in Xcode, path is: Xcode -> Edit -> XAlign -> Setting
  2. Type the character you love, press enter, then check the XAlign Menu again. If it works, there'll be the shortcut shown after the Auto Align, or your shortcut conflicts with the Xcode defaults. You'd better change another one, or modify the defauls, which is in the Xcode Prefrences -> Keybings.

Shortcut Conflicts (OLD)

快捷键冲突如何解决? 貌似与XVim冲突了,罪过~ :) 按照下面的步骤自己设一个吧~

  1. 直接修改插件配置文件

    1. 打开终端
    open ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/XAlign.xcplugin/Contents/Resources/patterns.plist (勘误1)
    
    1. 在这里修改

      c59171e5-4d01-4a79-a592-b6af081c0f0b

  2. 重新编译

    /main/main/patterns.plist里,如上图修改。 然后 cmd+b 新的build会自动覆盖已安装的插件

  3. key & mask

    mask : [ cmd | ctrl | shift ]
    key  : any other character on keyboard, [a-z] is recommended.

(勘误1) open ~/Library/Application\ Support/Developer/Shared/Xcode/Plug-ins/XAlign.xcplugin/Contents/Resources/setting.plist