| View previous topic :: View next topic |
| Author |
Message |
4485670
Joined: 08 May 2009 Posts: 5
|
Posted: Tue May 12, 2009 12:31 pm Post subject: Formatting |
|
|
hi,
how does code formatting work in netbeans php.
i have i.e. this code:
| Code: |
public function foo
{ $this->greatMethod($bar); }
|
which should automatically turn to:
| Code: |
public function foo {
$this->greatMethod( $bar );
}
|
how can i achieve this?
i see that there is formatting beneath options->editor, but this seems to be very rudimentary?
Thank you! |
|
| Back to top |
|
 |
Filip Zamboj Posted via mailing list.
|
Posted: Tue May 12, 2009 2:23 pm Post subject: Formatting |
|
|
source -> format or alt+shift+f
how good formatting is depends on version you are using . 67beta is
much better than 65
Regards,
Issuezilla HowTo: http://www.netbeans.org/community/issues.html
-------------
Filip Zamboj
Sun Microsystems
4485670 wrote:
| Quote: | hi,
how does code formatting work in netbeans php.
i have i.e. this code:
Code:
public function foo
{ $this->greatMethod($bar); }
which should automatically turn to:
Code:
public function foo {
$this->greatMethod( $bar );
}
how can i achieve this?
i see that there is formatting beneath options->editor, but this seems to be very rudimentary?
Thank you!
|
|
|
| Back to top |
|
 |
4485670
Joined: 08 May 2009 Posts: 5
|
Posted: Tue May 12, 2009 2:50 pm Post subject: Re: Formatting |
|
|
okay, but where do i set it up cause it will change:
| Code: |
public function foo
{ $this->greatMethod($bar); }
|
to:
| Code: |
public function foo { $this->greatMethod( $bar ); }
|
which should be:
| Code: |
public function foo {
$this->greatMethod( $bar );
}
|
|
|
| Back to top |
|
 |
Tomasz Slota Posted via mailing list.
|
Posted: Tue May 12, 2009 2:51 pm Post subject: Formatting |
|
|
This particular use case is still not supported. Currently code
formatting is mostly about re-indenting lines. With a few exceptions the
PHP formatter won't split one line of code into several. We are planning
to improve it in the next release.
-TS
4485670 wrote:
| Quote: | hi,
how does code formatting work in netbeans php.
i have i.e. this code:
Code:
public function foo
{ $this->greatMethod($bar); }
which should automatically turn to:
Code:
public function foo {
$this->greatMethod( $bar );
}
how can i achieve this?
i see that there is formatting beneath options->editor, but this seems to be very rudimentary?
Thank you!
|
|
|
| Back to top |
|
 |
4485670
Joined: 08 May 2009 Posts: 5
|
Posted: Tue May 12, 2009 2:52 pm Post subject: |
|
|
oh okay, thanks  |
|
| Back to top |
|
 |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|
|