Community
    • Login

    Replace In Files not working for me using Extended Mode

    Scheduled Pinned Locked Moved Help wanted · · · – – – · · ·
    2 Posts 1 Posters 845 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • Dan EdwardsD
      Dan Edwards
      last edited by Dan Edwards

      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.

      1 Reply Last reply Reply Quote 0
      • Dan EdwardsD
        Dan Edwards
        last edited by

        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.

        1 Reply Last reply Reply Quote 1
        • First post
          Last post
        The Community of users of the Notepad++ text editor.
        Powered by NodeBB | Contributors