Frage

Given the fantastic coding guidance PhpStorm offers I am a bit confused regarding the lack of variable name suggestions for variables used in strings.

$variable = "something";

// A:
$variable;

// B:
$str = "$variable";

// C:
$str = "{$variable}";

In case A PhpStorm suggests variables, not in cases B and C though.

As this is a very straightforward feature and Eclipse offers it too, I guess I have to adjust my configuration.

Any ideas?

War es hilfreich?

Lösung

Works fine in both cases (verified in 2.1.4), however automatic completion is not enabled in order not to distract you from the actual string editing and you have to press Ctrl+Space to invoke code completion:

code completion on ctrl+space

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top