Instantly share code, notes, and snippets.

View HowToUse
https://medium.com/@bogdan.bolchis/custom-xcode-behaviors-c9085d9eb7c1
....
chmod +x openTerm.sh
View Xcode_script_keywords
KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
View Xcode_script_keywords
KEYWORDS="TODO:|FIXME:|\?\?\?:|\!\!\!:"
find "${SRCROOT}" \( -name "*.h" -or -name "*.m" \) -print0 | xargs -0 egrep --with-filename --line-number --only-matching "($KEYWORDS).*\$" | perl -p -e "s/($KEYWORDS)/ warning: \$1/"
View Angular Commit Message
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
/////////////////////
Type
提交类型,必须是下列之一:
View mygit.md

恢复某个被删除的文件 git checkout $commit~1 filename

View gist:c076c218a1edef5ae7ed401ff5f9f5ef

快捷键

  1. Cmd+Y 查看定义
  2. Cmd+U 查看并定位到父类
  3. Cmd+P 查看参数信息
  4. Cmd+Shift+E 最近修改的文件
  5. Cmd+E 最近访问的文件
  6. Alt+上/下 扩大/缩小选区
  7. Cmd+F12 文件结构弹窗

编码技巧