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.

Remove duplicate lines in Notepad++

Notepad++ will now remove duplicate lines.

Auto-complete HTML tags in Notepad++

1. Click Settings located in the top menu of Notepad++.

Notepad++ settings

2. Click Preferences.

Notepad++ preferences

3. Click Auto-Completion.

Notepad++ Auto-Completion settings

4. Check the html/xml close tag option.

Auto-complete HTML tags in Notepad++

5. Click Close.

Close Notepad++ preferences

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++.

Notepad++ Plugins

2. Click Plugins Admin.

Notepad++ plugins admin

3. Type compare in the search field.

Search for the Comprare plugin in Notepad++

4. Select the Compare plugin.

Select the Compare plugin in Notepad++

5. Click Install.

Install the Compare plugin in Notepad++

6. Click Yes.

Install the Compare plugin in Notepad++

Notepad++ will now install the plugin and restart.

7. Open the files.

8. Click Plugins located in the top menu of Notepad++.

Notepad++ Plugins

9. Go to Compare and then click Compare.

Compare files in Notepad++

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.

View files side by side in Notepad++

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.

View files side by side in Notepad++

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.

Open a file in a new window in Notepad++

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.

Open a file in a new window in Notepad++

Notepad++ will now open the file in a new window.

Remove plugins from Notepad++

1. Click Plugins located in the top menu of Notepad++.

Notepad++ Plugins

2. Click Plugins Admin.

Notepad++ plugins admin

3. Click Installed.

Notepad++ installed plugins

4. Select the plugin you want to remove.

Select the Notepad++ plugin you want to remove

5. Click Remove.

Remove plugin from Notepad++

6. Click Yes.

Remove plugin from Notepad++

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.

Notepad++ Replace dialog Regular expression

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.

Notepad++ Replace dialog Find what field

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.

Notepad++ Replace dialog Replace with field

5. Place the mouse cursor in the first line of the file to ensure all lines are affected.

Place mouse cursor in first line of file

6. Click the Replace All button.

Notepad++ Replace All button

Notepad++ will now add the word to the beginning or end of each line.