How to make Gedit replace tabs for spaces?

Asked by joseMaestro on 2011-07-02

Hello there !

This question is pretty much summarized on the summary, but to reiterate, I'd like to know how can I configure gedit in order for it to replace a tab for a fixed number of spaces; when I hit the tab key(obviously)...

Is there a way to accomplish this? Could somebody please help me...

Best Regards,

J.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu gedit Edit question
Assignee:
No assignee Edit question
Solved by:
Enrico Rosina
Solved:
2011-07-04
Last query:
2011-07-04
Last reply:
2011-07-03
Best Enrico Rosina (e-rosina) said : #1

Hello,

If it's just for one search and replace you need to do, in the "Search for" string, type \t
(backslash followed by t)

If it's in general for all your edited files, there is also a preference:
- Edit => Preferences
- Editor tab => check the box "Insert spaces instead of tabs"

Have a nice try
Enrico

joseMaestro (etherealhost) said : #2

Thanks Enrico Rosina, that solved my question.