69

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?

slhck
  • 235,242
shingara
  • 793

2 Answers2

105

You can use regular expressions by clicking on this button:

sublime

The regex for a Tab character is \t.

remjih
  • 1,166
3

The accepted answer only give half of the answer to the question

If you want to replace ',' and insert tab: enter image description here

But to replace the tab text with real tab you first have to replace tab text with a different character, and then do the tab insert:

Step1/2) enter image description here

Step2/2) enter image description here

Punnerud
  • 131