Delete line without adding to clipboard?
Ctrl + Shift + L You can swap this around in Macro – Modify Shortcut/Delete Macro – Scintilla commands, and then around line 90, there’s ones for SCI_LINECUT and SCI_LINEDELETE
Ctrl + Shift + L You can swap this around in Macro – Modify Shortcut/Delete Macro – Scintilla commands, and then around line 90, there’s ones for SCI_LINECUT and SCI_LINEDELETE
The issue seems happens if I change monitors configuration , e.g. if I worked on laptop with 2 attached monitors, and next time open Notepad++ when having single laptop monitor. For me it was sufficient to delete %appdata%\Notepad++\config.xml (not the whole folder). Close Notepad++ Open %appdata%\Notepad++ folder (e.g. C:\Users\{UserName}\AppData\Notepad++ ) Delete (or rename in case … Read more
You have some code completion sections to look at here. But i would mainly suggest you change to an IDE for the programming language because Notepad++ doesn’t have any of the benefits you find in a Real IDE. ( Maybe because it’s a text-editor and not an IDE ).
You can use the TextFX plugin: TextFX > TextFX Edit > Line up multiple lines by … Note: This doesn’t work if the file is read only. http://tomaslind.net/2016/02/18/how-to-align-columns-in-notepad/ Update 2019: Download link from SourceForge
Try a regular expression replace of (good)|(great)|(fine) with (?1bad)(?2worse)(?3not). The search looks for either of three alternatives separated by the |. Each alternative has ist own capture brackets. The replace uses the conditional form ?Ntrue-expression:false-expression where N is decimal digit, the clause checks whether capture expression N matches. Tested in Notepad++ 6.3 Update: You can … Read more
1) First install NppAutoIndent plugin if you don’t have it. Plugins > Plugin Manager > Show Plugin Manager, then install NppAutoIndent from the “Available” tab of that menu. 2) This behavior can be turned off by doing: Plugins > NppAutoIndent > Previous line 3) If this option is disabled, you may need to first check … Read more
If you are using Notepad++ editor (like the tag of the question suggests), you can use the great “Find in Files” functionality. Go to Search > Find in Files (Ctrl+Shift+F for the keyboard addicted) and enter: Find What = (test1|test2) Filters = *.txt Directory = enter the path of the directory you want to search … Read more
You can simply reference groups > 9 in the same way as those < 10 i.e $10 is the tenth group. For (naive) example: String: abcdefghijklmnopqrstuvwxyz Regex find: (?:a)(b)(c)(d)(e)(f)(g)(h)(i)(j)(k)(l)(m)(n)(o)(p) Replace: $10 Result: kqrstuvwxyz My test was performed in Notepad++ v6.1.2 and gave the result I expected. Update: This still works as of v7.5.6 SarcasticSully resurrected … Read more
Macros in Notepad++ are just a bunch of encoded operations: you start recording, operate on the buffer, perhaps activating menus, stop recording then play the macro. After investigation, I found out they are saved in the file shortcuts.xml in the Macros section. For example, I have there: <Macro name=”Trim Trailing and save” Ctrl=”no” Alt=”yes” Shift=”yes” … Read more