Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Open all files in a folder using notepad++

Tags:

I have to make a minor change in all the html files of my site. The files are stored in structure which is as below,

/Site --2012   --Jan     --File1.html     --File2.html     --File3.html     --File3.html   --Feb     --File1.html     --File2.html 

And so on..

There are files from 2006 stored in a similar fashion. Opening each of them manually is time consuming as there are hundreds of files.

Is there a easier way to do this using notepad++?

like image 682
Vinith Almeida Avatar asked Mar 09 '14 18:03

Vinith Almeida


People also ask

How do I open a folder in notepad?

Notepad++ - File Tree View You can use it either with an open folder in a notepad or using the plugin. Open the folder as a tree view One way, Select File menu > select Open Folder as workspace item, It opens the folder as a file tree view in the left side navigation.

How do I open multiple files in a folder?

If you want to open multiple folders located in a single location (in a drive or directory), simply select all folders you want to open, hold down Shift and Ctrl keys, and then double-click on the selection.


2 Answers

You can just simply drag the folder containing your site files into notepad++. It opens all files(I assume it just opens txt,html, and other compatible files) including ones in sub directories.

Alternatively, if you want to do them one month at a time you could do File>Open and then shift+click from the top to the bottom to select as many files as you want.

Or just use a better text editor like sublime text where you can just open entire folders

like image 128
Jordan Avatar answered Nov 25 '22 12:11

Jordan


Click on View -> Project Panel 1

Only if there's nothing in the panel click on Workspace -> New Workspace

Otherwise click on Workspace -> Add New Project

Click on Project Name and click on Edit -> Add Files from directory.

Works with Notepad++ ver. 6.7.4

like image 29
SadiQ Avatar answered Nov 25 '22 12:11

SadiQ