In Sublime Text 2, I want search and replace by the TAB character.

I tried replacing with \t char but it's not working.

How can I do it?


You can use regular expressions by clicking on this button:


The regex for a Tab character is \t.

  • 11
    Thanks works fine. But you don't need use / before and after \t is enough – shingara Feb 29 '12 at 15:37
  • Also, it's possible to insert/paste a symbol of an actual tab(ASCII, 9 or U+0009) into "Replace" field. Couldn't paste here because the StackOverflow replaces these in comments section. – F8ER Oct 12 '20 at 13:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.