Deleting specific words .(in multiple files)
Normally, I can open and delete files one by one, but I cannot do this because there are too many files. Is there a shortcut to this ?
I can delete it using the regular expression or mark method, but for this I need to open the files one by one.
No idea what you’re talking about; perhaps you should try posting again with more detail.
@Alan-Kilborn I can get these using mark or regular expression using Notepad++, but it only works on the open page, not on other pages.
@Doğancan you have to let us know what you want to delete. If you know what is to be deleted, click on the “Find in files” tab on top, put that in the “Find all” field and click on “Replace in files” with nothing in the “Replace in files” field.
It seems as if you want to use Mark ing, specifically Bookark ing of lines in order to do your deletion operation, but you want to use it on a multi-file or multi-tab basis. If that’s the case, then, sorry, it doesn’t work multi-tab.
You’ll have to adjust your regular expression to match specifically the data you wish to delete, and then use Replace All in All Open Documents or Replace in Files to replace your matches with nothing, as Scott said.
@Doğancan, please take a look at the
Search / Find in files...menu option in Notepad++ as I believe that will do what you want.
Replace withfields are the standard search and replace fields.
Filtersallows you to search/replace on *.txt files for example. It defaults to blank which is ..
Directoryis just the directory path of where your files are. Don’t try
some path\*.txtas it won’t work…
- Related to
In all sub-folderscheckbox on the right side. That’s enabled by default. You may want to turn it off.
You then will do
[Replace in Files]but you absolutely should make a full backup of your files first as
[Replace in Files]will promptly do the search/replace on all of the files you are filtering for and save those files. There are no backups made by this process which is why you should make your own backups.
Something that is safer than the
[Replace in Files]button is the
[Find All]button that is above it. This will scan your files for the
Find whatpattern and will create a search-results list. You would still need to then click to open the files one by one to test the search/replace.