This forum has been archived. All content is frozen. Please use KDE Discuss instead.

How to do a simple replacement of 4 spaces into a tab?

Tags: None
(comma "," separated)
aseques
Registered Member
Posts
63
Karma
0
I am trying to convert some misformated python script into tabs (now there's a mix of 4 spaces and tabs), I looked for a search/replace function but doesn't seem to work for me. The form is quite complicated to understand..
Image
So, what would be the information to fill if I want to replace four spaces into tabs? I tried \t, but the replace button is not enabled.
aseques
Registered Member
Posts
63
Karma
0
Ok, answering myself, I just found out how to do the replacement, it's either ctrl+r or by using the selector in the right of the search screen Image
aseques
Registered Member
Posts
63
Karma
0
I guess that a more usable find/replace interface would having the search functions grouped by it's type, what do you think?

Image
ochurlaud
KDE Developer
Posts
62
Karma
0
OS
Just FYI, python says it's better to use 4 spaces than a tab (according to I don't remember which PEP).

So, you might want to do the reverse :P
aseques
Registered Member
Posts
63
Karma
0
At the end I changed to spaces as you are saying, the reason to use tabs was that occasionally I use vim, but then I found out :set expandtab. I'm a proud spacer now ;)


Bookmarks



Who is online

Registered users: Bing [Bot], daret, Google [Bot], Sogou [Bot]