Replace In Files not working for me using Extended Mode
-
I am trying to replace a given line of text in many files with two lines of text
e.g. replace
#include “folder\somefile.h”;
with
#include “folder\somefile.h”;
#include “folder\otherfile.h”;If I use extended mode it will find all occurrences just fine looking for
#include “folder\\somefile.h”;
But when I try to perform the Replace In Files action using this for the replace with
#include “folder\\somefile.h”;\n#include “folder\\otherfile.h”;
It fails just ends up doing nothing with
Replace in Files: 0 occurrences were replaced.
-
Turns out that this was because the files were read-only. I was counting on the Perforce Plugin to automatically check them out but I guess that is not going to work. I will have to manually checkout everything and then perform the replacement.
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login