Average Joe
Average Joe

Reputation: 4601

netbeans 7.3.1: is there a way to automatically insert ; at the end of the line for PHP files?

Can I configure netbans or is there a keyboard shortcut for adding a semicolumn automatically?

Currently, with the of the box behaviour, when I type-in the following;

die("x

Netbans automatically turns that into the following;

die("x|")

Please note that in the above demonstration, the | denotes the blinking cursor location)

Now...

At this time, wouldn't it be nice to go to the next line by hitting the [enter] key with some key combination and you end up with this?

die("x");
|

Upvotes: 4

Views: 2335

Answers (1)

Andrei Damian-Fekete
Andrei Damian-Fekete

Reputation: 1980

For NetBeans (Java EE bundle at least) is Ctrl-Shift-;. (Ctrl-; for adding ; without new line). I've tested in NB 7.4 with a PHP file and it worked.

Ctrl-Shift-; press simultaneously Control Shift and the semicolon key (not Control and dash)

https://i.sstatic.net/atu6Q.png

Upvotes: 5

Related Questions