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 1


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 Mac
    Jan 19, 2019 at 18:38

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.