ZzZombo
ZzZombo

Reputation: 944

Convert tabs into spaces

Many editors and IDEs support converting spaces into tabs by using Tab/Shift+Tab on a line or a selected text fragment, but I've not found such a feature in Eclipse. Is there a plugin or something to add such functionality? I've tried to find one myself, but it doesn't seem to have any by keywords like "tab" or "indent". I'm working with Perl, BTW.

Upvotes: 1

Views: 4373

Answers (2)

Bananeweizen
Bananeweizen

Reputation: 22070

Check if the context menu has an entry like Source->Correct Indentation. That is available for Java, but the availability depends on the language you edit.

Otherwise you can install the AnyEdit Tools plugin which provides a command to convert the selection from tabs to spaces and vice versa.

Upvotes: 3

morotspaj
morotspaj

Reputation: 1420

If you change settings to tabs only or spaces only, Tab, Shift + Tab works as expected. (At least for me).

Upvotes: 0

Related Questions