With the 'Replace by Space' option enabled in Notepad++ (Preferences > Language > Replace by Space
), is there is a key combination which inserts a tab character without it being replaced by spaces?
1 Answer
Use Alt+009, with the 009
being typed on the numeric keypad. That'll send a Tab character, and in my testing, Notepad++ won't intercept and replace it, even with the Replace by space
setting enabled.
(You can probably get away with just 09
, but I was taught long ago that Alt sequences should always be at least three characters.)
-
Can't believe I didn't think of that! I'll probably program that as a macro with a keyboard shortcut of Ctrl+TAB or similar. Many thanks!– Lee MacJan 19, 2019 at 18:38