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

Notepad++

Notepad++ Problem Overview


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?

Notepad++ Solutions


Solution 1 - Notepad++

Go to the Preferences menu command under menu Settings, 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

Solution 2 - Notepad++

In my Notepad++ 7.2.2, the Preferences section it's a bit different.

The option is located at: Settings / Preferences / Language / Replace by space as in the Screenshot.

Screenshot of the windows with preferences

Solution 3 - Notepad++

I have NotePad++ v6.8.3, and it was in Settings → Preferences → Tab Settings → [Default] → Replace by space:

NotePad++ Preferences

NotePad++ Tab Settings

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
Questionuser656925View Question on Stackoverflow
Solution 1 - Notepad++tvanfossonView Answer on Stackoverflow
Solution 2 - Notepad++arbuzovView Answer on Stackoverflow
Solution 3 - Notepad++SharpCView Answer on Stackoverflow