Vscode: Add Symbol navigation for PHP

Created on 19 Nov 2015  路  17Comments  路  Source: microsoft/vscode

would you please add support for PHP symbol navigation ?

I like the symbol navigation for js, just press CTRL+SHIFT+O
The symbol list will show to us

that's amazing

feature-request help wanted php

Most helpful comment

PHP IntelliSense supports both file and workspace symbol search
https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense

documentsymbol

workspacesymbol

All 17 comments

PHP symbol navigation is working on previous builds after today's build it's now broken.

Please help us, I'm using vscode in mac.

I need this, too!

+1

+1 too.
This used to work before 0.10.x :(

This used to work before 0.10.x :(

Sorry about that, but it was based on an hand written PHP parser that could not keep up with the PHP language.

that's still better than nothing, i guess :)

Is there any extension to make it work again? I just have to stay on the lower version, for the vs code is the best ide for php I have ever seen.

I'm working on an extension

@felixfbecker That's great! Do you have a link to the extension?

@thuey Currently trying to extend PHPParser so it can parse incomplete PHP documents so I can get AST nodes all the way up to the cursor position, even if it is not terminated by a semicolon yet:
https://github.com/nikic/PHP-Parser/issues/262

This is still an issue, and would be nice if it were resolved.

PHP IntelliSense supports both file and workspace symbol search
https://marketplace.visualstudio.com/items?itemName=felixfbecker.php-intellisense

documentsymbol

workspacesymbol

May be this issue can be closed now.

ok. close it now . thanks.

Those who can't use @felixfbecker 's extension because of it's PHP7 requirement, can use Lin Yang's PHP symbols extension:
https://marketplace.visualstudio.com/items?itemName=linyang95.php-symbols

Just to avoid confusion, my extension works with PHP code of any version. You just need to install PHP 7 locally because the extension is written in PHP 7 itself and needs PHP 7 to run.

@felixfbecker Thanks for the clarification, you might want to add it explicitly in the plugin description, I misunderstood too.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

VitorLuizC picture VitorLuizC  路  3Comments

curtw picture curtw  路  3Comments

DovydasNavickas picture DovydasNavickas  路  3Comments

v-pavanp picture v-pavanp  路  3Comments

omidgolparvar picture omidgolparvar  路  3Comments