Notepad++ select all, multi-line select at end of each line
Andrew Henderson
In sublimetext I often use the key combination CTRL+A, CTRL+SHIFT+L, END to frequently highlight all rows and continue editing each line with common text. (See pic)
What would the key combination be for this in notepad++ or can you not do this at all in notepad++?
55 Answers
I'm afraid there is no such behaviour in Notepad++, but you can do Find/Replace, here is a way to go:
- Ctrl+H
- Find what:
$ - Replace with:
whatever you want at the end of each line - check Wrap around
- check Regular expression
- Replace all
Notepad++ don't has one option/shortcut to easily get multiple carets at the end of several lines.
Remember you need to enable always the Multi-Editing on Settings/Preferences/Editing/Enable Multi-Editing checkbox.
You have 2 options:
Option 1 - Without any extra plugin
- CTRL+click on each line (it doesn't matter in which part of the line you click) you want to add one caret to the end.
- When you placed a cursor on each line you want to edit, press END key to move all carets to the end of the line they were placed.
Option 2 - Using BetterMultiselection Plugin
- Install the BetterMultiSelection Plugin within the Plugins Admin window (on Plugins menu)
- After the restart of Notepad++ you need to enable the BetterMultiSelection plugin on the plugins menu.
- Do a column selection with ALT+mouse
- Press END key.
- Voila ;-)
This answer is a bit late, but I hope to be useful...
You could achieve this by Ctrl+Click (with Multi-Editing enabled) at the end of each line you want to manipulate. Then just type whatever you'd like to append. Not so sophisticated, but works for small number of lines.
You can do this with the column mode. This functionality is enabled by default. To switch to column mode, there are two ways to do it:Alt + Shift + Arrow keysor:Alt + Mouse draggingTo use the keyboard, you need to use the Alt + Shift + Arrow keys. By using the keyboard you have more control over which words or characters you want to work with.
2If you align all the text to the right, you can then use Alt + Click.
Guide on how to align all the text to the right: