Notepad++ - Use spaces for tabs

By xngo on September 4, 2019

It is recommended to set your Notepad++ to use spaces for your tabs. This will make it easier to format and align your code in monospace font. Especially, when you give code example in your blog posts.

Here is an example illustrating the issue with tabs in Notepad++.

Notepad++ - Tab alignment

Tab setting

The tab setting is located at Settings > Preferences... > Language > Tab Settings.

Notepad++ - Tab settings

About the author

Xuan Ngo is the founder of OpenWritings.net. He currently lives in Montreal, Canada. He loves to write about programming and open source subjects.