4

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?

1 Answer 1

6

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

Sign up to request clarification or add additional context in comments.

1 Comment

Ahaaaa ... Ctrl+Space ... there you go! Thanks!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.