Notepad++ tutorials
Learn how to remove duplicate lines, auto-complete HTML tags, compare files, view files side by side, open a file in a new window, remove plugins, and more.
Notepad++
Notepad++ is a free and open-source text and source code editor.
Remove duplicate lines in Notepad++
You can delete identical lines from a text file (TXT) or remove duplicate lines from other files, such as HTML and XML files.
1. Click Edit located in the top menu of Notepad++.
2. Go to Line Operations.
3. Click Remove Duplicate Lines.
Notepad++ will now remove duplicate lines.
Auto-complete HTML tags in Notepad++
1. Click Settings located in the top menu of Notepad++.
2. Click Preferences.
3. Click Auto-Completion.
4. Check the html/xml close tag option.
5. Click Close.
Notepad++ will now automatically complete/close HTML tags.
You might need to restart Notepad++.
Compare files in Notepad++
1. Click Plugins located in the top menu of Notepad++.
2. Click Plugins Admin.
3. Type compare in the search field.
4. Select the Compare plugin.
5. Click Install.
6. Click Yes.
Notepad++ will now install the plugin and restart.
7. Open the files.
8. Click Plugins located in the top menu of Notepad++.
9. Go to Compare and then click Compare.
Notepad++ will now compare the files.
View files side by side in Notepad++
Click on the tab of a file, go to Move Document, and then click Move to Other View.
Notepad++ will now show the files side by side.
You can also click View in the top menu of Notepad++, go to Move/Clone Current Document, and then click Move to Other View.
Notepad++ will now show the files side by side.
Open a file in a new window in Notepad++
Click on the tab of the file, go to Move Document, and then click Open in New Instance.
Notepad++ will now open the file in a new window.
You can also click View in the top menu of Notepad++, go to Move/Clone Current Document, and then click Open in New Instance.
Notepad++ will now open the file in a new window.
Remove plugins from Notepad++
1. Click Plugins located in the top menu of Notepad++.
2. Click Plugins Admin.
3. Click Installed.
4. Select the plugin you want to remove.
5. Click Remove.
6. Click Yes.
Notepad++ will now remove the plugin.
How to add a word to the beginning or end of each line in Notepad++
1. Press the Ctrl + H keys on your keyboard to open the “Replace” dialog.
2. Choose the Regular expression option at the bottom of the dialog.
3. Type ^ in the Find what field if you want to add the word to the beginning of each line. Type $ in the Find what field if you want to add the word to the end of each line.
4. Type the word in the Replace with field. If you need space between the word and the rest of the words, add a space after or before the word.
5. Place the mouse cursor in the first line of the file to ensure all lines are affected.
6. Click the Replace All button.
Notepad++ will now add the word to the beginning or end of each line.