Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Occasionally, I use Notepad to edit some form of code/html, which means I need to tab a lot. The default indent size when hitting tab is eight spaces when ideally I'd like it be four.

Is there any way to change this setting?

share|improve this question
Just in case someone's wondering "why stop at every 8th column?" This is the standard for text mode which DOS and Unix/Linux are consistent with as well. Since Windows Notepad was provided for Windows users to edit plain ASCII text files, most of which would have been created in a pre-Windows text mode editor that likely implements tabs in the same manner (because plain ASCII text file users would expect this behaviour), it was important to preserve the tab stops consistently to ensure accurate editing. – Randolf Richardson Jun 18 '11 at 5:31
I'm suprised no genius ever has reverse engineered Notepad to hack in this much wanted change... – Gras Double Mar 6 '15 at 16:13
up vote 8 down vote accepted

Not with Window's Notepad, but the default tab for Notepad++ (free) is 4 characters. And it does A LOT more.

share|improve this answer
Good plan! By the way, I don't mind getting my hands dirty in the registry. – aligray Jun 18 '11 at 5:01
@aligray It is hard-coded as I expected, but I actually did search the registry before answering. – KCotreau Jun 18 '11 at 5:03
Appreciate that, I'll just stick to Notepad++. – aligray Jun 18 '11 at 5:04

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .