Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » PHP Development Tools (PDT) » functions format
functions format [message #9196] Mon, 26 March 2007 19:22 Go to next message
Eclipse UserFriend
Originally posted by: vinilios.gmail.com

any idea if i can change the functions format from

function() {
}

to

function()
{
}

when using "Format Document" (Ctrl+Shift+f)
Re: functions format [message #9218 is a reply to message #9196] Mon, 26 March 2007 20:21 Go to previous message
Adam Randall is currently offline Adam RandallFriend
Messages: 19
Registered: July 2009
Junior Member
If you can't, you can do it with a simple regular expression find and
replace:

find:
([\t ]+)(function .*)\{

replace:
$1$2\n$1{

Adam.
"vinilios" <vinilios@gmail.com> wrote in message
news:eu96h2$qfa$1@utils.eclipse.org...
> any idea if i can change the functions format from
>
> function() {
> }
>
> to
>
> function()
> {
> }
>
> when using "Format Document" (Ctrl+Shift+f)
Previous Topic:Apache 2.0
Next Topic:Eclipse 3.3, EMF 2.3, GEF 3.3 support
Goto Forum:
  


Current Time: Wed Jan 22 12:17:18 GMT 2025

Powered by FUDForum. Page generated in 0.02949 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top