Skip to content

Instantly share code, notes, and snippets.

@shenglinFL
shenglinFL / HowToUse
Created October 24, 2018 05:00
Xcode script
https://medium.com/@bogdan.bolchis/custom-xcode-behaviors-c9085d9eb7c1
....
chmod +x openTerm.sh
@shenglinFL
shenglinFL / Xcode_script_keywords
Created October 22, 2018 10:51
Xcode显示FIXME|TODO等标注
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/"
@shenglinFL
shenglinFL / Xcode_script_keywords
Created October 22, 2018 10:51
Xcode显示FIXME|TODO等标注
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/"
@shenglinFL
shenglinFL / Angular Commit Message
Last active July 26, 2019 07:29
git commit 模板
<type>(<scope>): <subject>
<BLANK LINE>
<body>
<BLANK LINE>
<footer>
/////////////////////
Type
提交类型,必须是下列之一:
@shenglinFL
shenglinFL / mygit.md
Created October 16, 2018 08:07
Git使用技巧

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

@shenglinFL
shenglinFL / gist:c076c218a1edef5ae7ed401ff5f9f5ef
Last active October 12, 2018 02:20
Android Studio好用的技巧

快捷键

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

编码技巧