How to make the first letter of each line uppercase in Notepad++

Using the PythonScript plugin
You can use the PythonScript plugin to convert the first letter of each line to uppercase.
- Install the PythonScript plugin via Plugins Admin in the Plugins menu.
- After installation, go to Plugins > PythonScript > Show Console.
- Enter the following script in the console at the bottom and execute it:
from Npp import notepad, editor; lines_count = editor.getLineCount(); [editor.setSel(editor.positionFromLine(line), editor.positionFromLine(line) + 1) or editor.replaceSel(editor.getLine(line)[0].upper()) for line in range(lines_count) if editor.getLine(line)]
This script goes through all the lines in the document and converts the first letter of each line to uppercase.
Using regular expression replacement
You can also convert the first letter of each line to uppercase using regular expressions.
- Open the Replace window using the Ctrl + H key combination.
- In the Find field, enter:
^(.)
\U\1
In Notepad++, there are two ways to convert the first letter of each line to uppercase. You can use a Python script with the PythonScript plugin or use a regular expression to find and replace text.