0

In PhpStorm, the File Structure (F12 on Mac) and Structure (⌘7) actions let you see a list of functions declared in the current file, so as to quickly jump to any of them.

Is there anything similar to quickly navigate through route definitions?

Consider this code that uses Slim PHP:

$app->get('/test/icons/', function () use ($app) {
    $app->render('test/icons.tpl');
});

$app->get('/foo/', function () use ($app) {
    /* whatever is going on here */
});

$app->get('/bar/', function () use ($app) {
    /* ditto */
});

I have a file with many dozens such routes spanning over a thousand lines and a quick navigation pane would be welcome.

Fabien Snauwaert
  • 4,995
  • 5
  • 52
  • 70
  • Yes, there would be a way, but only if you use "Single Action Controllers". – odan Dec 09 '21 at 15:44
  • No, this isn't available in PhpStorm. It would be great if you could submit this to our tracker at https://youtrack.jetbrains.com/newIssue – Dmitrii Dec 10 '21 at 10:58

0 Answers0