-2

How can i reindent php code so that it will look clear in Netbeans 7.4 ??

Example:

I want to convert code (with one click on a button) which looks like this:

function helloworld(){echo 'hello world';}

To:

function helloworld(){
    echo 'hello world';
}
Julian
  • 4,396
  • 5
  • 39
  • 51

2 Answers2

4

Use the hotkey:

ALT + SHIFT + F

Or from Menu Source > Format

You can even customize formatting from

Tools > Options > Editor > Formatting

Rahil Wazir
  • 10,007
  • 11
  • 42
  • 64
1

Right click -> Format

This is a bad question, this could be found easily.

Brovoker
  • 896
  • 5
  • 16