How do I specify that a tab be four space characters in Text Wrangler?

2

1

I tried to specify a tab to be four spaces in Text Wrangler by checking "Preferences" -> "Editor Defaults" -> "Auto-expand tabs."

However, tabs still comprise of tab characters with each tab having the width of 4 spaces.

David Faux

Posted 2012-04-09T19:18:21.823

Reputation: 4 477

The last comment worked for me. TextStrangler remembering settings per file must be the worst feature in history... – Jonny – 2014-07-21T03:47:15.927

try closing, then re-opening the program – wizlog – 2012-04-09T19:18:56.167

It's still not working for some reason after reopening Text Wrangler. I know it's not working because I cannot move my cursor through the tab as if it were spaces. Also, after opening the document in vim, I cannot do this either. – David Faux – 2012-04-09T19:29:56.160

1You created that file with no auto-expand. TextWrangler remembers the state of this document. The preferences only apply to new files. You need to set auto-expand for this file in the file's toolbar (click on the T-icon to see a dropdown list with this option). – None – 2014-01-06T20:16:44.510

Answers

3

If it's a special type of document, you might try Preferences > Languages. Select the language the document content is, then go to Options... > Editing and select "Auto-expand tabs", then click "Save."

user127350

Posted 2012-04-09T19:18:21.823

Reputation:

This didn't work for Python. Version 4.5.9 – Jonny – 2014-07-21T03:45:47.780

0

For TextWrangler 5.5.1, use 'Text -> Detab ...' to removed existing tabs. To have new tabs inserted as spaces, while editing the document click on the tools icon on the left of the navigation bar, and select 'auto-expand tabs'.

Arthur

Posted 2012-04-09T19:18:21.823

Reputation: 11