Auto-convert tab to 4 spaces in TextWrangler?

Kevin Burke picture Kevin Burke · Apr 22, 2011 · Viewed 40.6k times · Source

Is there a preference in Textwrangler to redefine a tab as 4 spaces? In Vim this is set expandtab in the vimrc, but I don't know how to set it in TW besides clicking "Detab" when I'm done editing the document.

Thanks, Kevin

Answer

Kevin Burke picture Kevin Burke · Apr 22, 2011

Go to "Preferences" -> "Editor Defaults" -> "Auto-expand tabs," and then set tabs to 4 spaces. Then restart TextWrangler for changes to take place.