Alex Rivera | Logout

How do I configure Notepad++ to use spaces instead of tabs?

Asked 2011-11-19T22:19:26.673
461

Notepad++ keeps inserting tabs which later messes up my code. This doesn't just happen when I hit the tab key, but other times as well. I want it to use 4 spaces instead of tabs.

How can I make Notepad++ insert spaces instead of tabs?

Edit
Report

1 Answer

737

Go to the Settings > Preferences, and select Language Menu/Tab Settings, depending on your version. Earlier versions use Tab Settings. Later versions use Language. Click the Replace with space check box. Set the size to 4.

Screenshot

See documentation: https://npp-user-manual.org/docs/preferences/#language

answered 2011-11-19T22:24:04.060

Your Answer