Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

eojeel's avatar
Level 11

VS Code / Phpstorm (intellisense)

Hey All,

something that has bugged me for a while now which is either down to my miss configuration or it's simply not possible.

I develop in a multitude of procedural codebases for work and use highly customised VS code configuration mainly based off calebs make VS Code awesome, so as a side note check that out if you haven't: Make VS Code awsome.

One plugin I heavily rely on is PHP Intelephense which i am running with a license, but it doesn't handle variable scope very well and can never seem to find undefined variables, as well as PHP storm, can natively.

I've spent a multitude of time in the extensions docs and settings to try and configure below is my current configuration.

	"intelephense.format.enable": true,
    "intelephense.format.braces": "allman",
    "intelephense.trace.server":"messages",
    "intelephense.completion.maxItems": 10000,
    "intelephense.diagnostics.undefinedVariables": true,
    "intelephense.environment.documentRoot": "${workspaceFolder}",
    "intelephense.completion.fullyQualifyGlobalConstantsAndFunctions": true,
    "intelephense.environment.phpVersion": "8.1",

any tips ticks or guidance would be possible if someone has solved or has had a similar issue.

0 likes
1 reply

Please or to participate in this conversation.