Can I Do Find and Replace by code in Atom?


#1

I’m doing a lot of find and replace,I have a group of key word, and I have to add some sort of pre-word before these keyword,and I have to travel all of my script in my project.Obviously the pattern is same,and I don’t want to do it by repeat same thing for dozen times ,so I wonder if there is a way to do it by code in atom.Just like using command line to change the name of files name.
Anyone can help?


#2

Have you tried Find In Project (Shift - ⌘ - F)?

Basically it works across your project folder, you can set filters for filetypes. If you need to do it to multiple words, you might be able to use a regex rather than a string, but I’ve never really played with the regex in Atom.