rhuffstedtler
rhuffstedtler

Reputation: 508

Is there an Eclipse module to place semicolons in PDT?

The java editor options for eclipse include an option for automatically placing a semicolon at the end of a statement if you type it anywhere in the line.

Eclipse PDT does not seem to have a similar option for PHP. Is anyone aware of a module that adds this capability (or any other way to avoid having to manually move the cursor out of a nested set of parens to add the statement terminator?

Upvotes: 2

Views: 167

Answers (1)

MarcinWolny
MarcinWolny

Reputation: 1645

Currently the PDT doesn't support such functionality.

For Java you can find it under Window -> Preferences -> Java -> Editor -> Typing and here Automatically insert at correct position: Semicolons.
However there's no such option under PHP -> Editor -> Typing.

As far as I'm aware at one point someone had an idea of implementing this feature, however PDT team in recent years is really struggling (you most likely work on Eclipse Helios PDT which is based on a Helios release of Eclipse from 2010, while current version of Eclipse is Juno from mid 2012, and Eclipse team is working on moving into the Kepler release) so I wouldn't count on this feature being implemented in any foreseeable future.

As far as I'm aware - there's also no additional plugin to support such functionality in PHP.

Upvotes: 1

Related Questions