Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to do a project-wide find and replace in Spacemacs?

Tags:

spacemacs

I'm trying to do a project-wide find/replace in Spacemacs. I tried this:

  1. SPC s a p
  2. Type the text I want to replace.
  3. C-c C-e

At this point Spacemacs tells me text is read-only. What am I missing to be able to preform the edit operation?

like image 733
Alex Miller Avatar asked Jun 12 '18 18:06

Alex Miller


1 Answers

Use SPC p R to use projectile-replace which runs interactive query-replace on all files in the project.

like image 53
Ivo Reyes Avatar answered Nov 04 '22 08:11

Ivo Reyes