Notepad++

Notepad++

Notepad Plus Plus, Npp

Npp sada normalno podržava “multi-cursor” odnosno “multi-caret” odnosno “multi-editing”. Go into Settings => Preferences => Editing and check “Enable” in “Multi editing settings” and then, just use Ctrl+click to use multiple cursors.

Advanced Config

Želim da napravim da je Npp što sličniji VSCode, s’obzirom da se stvarno trenutno pokreće i baš je light. Umesto što pokušavam da nađem VSCode-like alternativu koje su sve bagovite, probaću da namesti Npp kako meni odgovara.

Ctrl+D in Notepad++

Obavezno moraš da enable in Multi-Editing in Notepad++ (Preferences > Editor), a zatim da instaliraš i install LuaScript plugin, and add the following to the startup script:

1
2
3
4
5
6
7
-- VSCode Ctrl+D to extend selection

npp.AddShortcut("Selection Add Next", "Ctrl+D", function()
    editor.SearchFlags = SCFIND_MATCHCASE
    editor:TargetWholeDocument()
    editor:MultipleSelectAddNext()
end)

Action on selection Or even better: LuaScript Reference

Takođe, obavezno install plugin BetterMultiSelection as it will improve tu funkcionalnost multi-cursor u Npp.

Vertical multi-cursor selection using keys

Ne sećam se da li je ovo još iz Sublime Text vremena, ali imam postavljeno to u VSCode. Dakle, stavi i ovo da skroz središ:

1
2
3
4
5
6
7
8
9
-- VSCode Ctrl+Alt+Up/Down for multi-editing selection

npp.AddShortcut("Extend Selection Up", "Ctrl+Alt+Up", function()
    editor:LineUpRectExtend()
end)

npp.AddShortcut("Extend Selection Down", "Ctrl+Alt+Down", function()
    editor:LineDownRectExtend()
end)

Ctrl+Shift+L

Komanda se zove Insert Cursor At End Of Each Line Selected u VSCode, a u Npp će da overwrite shortcut “Open Last Closed File” from FileFinder plugin.

Međutim, ovo još nisam napisao.

Notepad++ select all, multi-line select at end of each line - Super User

date 29. Mar 2023 | modified 10. Jun 2024
filename: Research » Editor » Notepad++