The Computer Oracle

Search and replace with TAB character in Sublime Text 2

Become or hire the top 3% of the developers on Toptal https://topt.al/25cXVn

--

Music by Eric Matyas
https://www.soundimage.org
Track title: Cosmic Puzzle

--

Chapters
00:00 Question
00:25 Accepted answer (Score 103)
00:46 Answer 2 (Score 1)
01:29 Thank you

--

Full question
https://superuser.com/questions/395334/s...

Answer 1 links:
[image]: https://i.stack.imgur.com/yM8UV.png
[image]: https://i.stack.imgur.com/hYCa6.png
[image]: https://i.stack.imgur.com/Sg57V.png

--

Content licensed under CC BY-SA
https://meta.stackexchange.com/help/lice...

--

Tags
#findandreplace #sublimetext2

#avk47



ACCEPTED ANSWER

Score 104


You can use regular expressions by clicking on this button:

sublime

The regex for a Tab character is \t.




ANSWER 2

Score 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