Amy
Amy

Reputation: 29

Perl indent doesn't use space

I am using Eclipse Luna. I have installed the Perl EPIC plugin. I want to indent 4 spaces instead of TAB.

I have checked Window -> Preferences -> General -> Editors -> Text Editors -> Insert spaces for tabs, but still when there is need to auto indent a new line, Eclipse still indents with TAB instead of spaces.

How do I change it so EPIC will use spaces instead of tabs for indentation in Perl files?

Upvotes: 0

Views: 1233

Answers (1)

drew010
drew010

Reputation: 69967

Late answer but I ran into the same issue, found this post, and subsequently how to change the formatting settings for Perl EPIC in Eclipse.

  • From the main IDE workspace, click the Window menu and then choose Preferences.
  • Scroll down to Perl EPIC and expand it in the tree.
  • Click the Editor entry.
  • In the right panel under the Appearance tab, you can change your preferences for Insert tabs/spaces on indent and whether or not to use spaces instead of tabs.

Upvotes: 1

Related Questions