Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Almost C++ IDE know when they should turn the "." to "->", but with some off my PHP IDE they don't.
For example:

$f = new Foo;
$f. // will not turn to $f->

Is there any trick for do that in Netbeans?

share|improve this question
up vote 1 down vote accepted

Yes this could be done easily in netbeans when developing your PHP To Type "->" quickly you can use a macro recording. for example

Go to Edit and click star Macro Recording Then type in -> and then click stop stop Macro Recording

Then You will get a dialog box type in the Name for the macro and then click

set shortcut and assign a easy keyboard shortcut eg- Alt + x

After that click ok and then onwards when you press alt + x you will get -> on screen.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.