Skip to content

Instantly share code, notes, and snippets.

@randomwangran
Created September 11, 2019 14:57
Show Gist options
  • Save randomwangran/6e67de22a7d59f61c7a42bb7039e966b to your computer and use it in GitHub Desktop.
Save randomwangran/6e67de22a7d59f61c7a42bb7039e966b to your computer and use it in GitHub Desktop.
我这里用 (projectile-replace) 就可以处理了,用 regexp 有点问题,不知道能帮助到你么?
前提是,在一个 project 里面。
执行顺序:
1. <kbd>M-x</kbd> projectile-replace
2. 在 mini-buffer 输入
```
get $style() {
return {}
}
```
注意换行的时候 <kbd>C-M-j<\kbd> (indent-new-comment-line)。
3. <kbd><RET> <RET></kbd>
4. <kbd>Y</kbd>
保存改变:
5. <kbd>C-x g</kbd> (Magit)
6. <kbd>Y</kbd>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment