- M-x find-name-dired RET
- Select root of my project
- Enter *.rb as the filenames to match
- Press "t" to select all files found
- Press "Q" (shift Q) to start the search/replace
- Enter "transaction" as the query, then enter "invoice" as the replacement.
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/456701/viewspace-1788694/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/456701/viewspace-1788694/
本文详细介绍了如何使用Emacs编辑器在Ruby项目中进行高效的搜索和替换操作,包括设置项目根目录、匹配特定文件类型、全选匹配项以及执行搜索替换任务。通过实例演示了如何搜索特定字符串并替换为另一个字符串,适用于编程爱好者和开发者。
1127

被折叠的 条评论
为什么被折叠?



