在 PhpStorm 中,文件结构(Mac 上的 F12)和结构(⌘7)动作可以让您看到当前文件中声明的函数列表,以便快速跳转到其中任何一个。
有什么类似于快速浏览路线定义的东西吗?
考虑使用 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 */
});
我有一个文件,其中包含许多跨越一千行的此类路线,并且欢迎使用快速导航窗格。