How to make Gedit replace tabs for spaces?

Asked by joseMaestro

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:
Last query:
Last reply:
Revision history for this message
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

Revision history for this message
joseMaestro (etherealhost) said :
#2

Thanks Enrico Rosina, that solved my question.