Viewing Structure of a Source File/==》Ctrl+F12.

本文介绍如何使用PhpStorm的Structure工具窗口来查看当前编辑器中打开文件的结构,包括显示命名空间、类、方法、字段等内容,并可在Project工具窗口中显示类成员。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Viewing Structure of a Source File

You can examine the structure of the file currently opened in the editor using the Structure tool window or the Structure pop-up window.

By default, PhpStorm shows all the namespaces, classes, methods, and functions presented in the current file.

To have other members displayed, turn on the corresponding options on the context menu of the title bar of the Structure window.

You can also have class members shown in the Project tool window.

On this page:

Viewing the structure of a file
Displaying class fields
Displaying constants
Displaying inherited members
Displaying included files
Displaying class members in the Project tool window
To view the file structure, do one of the following

On the main menu, choose View | Tool Windows | Structure.
Pres StructureTool Button
Press Alt+7.
Press Ctrl+F12.
webidestructuretoolwindow.png
To have class fields displayed

Turn on the Show Fields option on the context menu of the title bar.
To have constants displayed

Turn on the Show Constants option on the context menu of the title bar.
To have inherited members displayed

Click Show Inherited option on the context menu of the title bar.
By default, PhpStorm shows only methods, constants, and fields defined in the current class. If shown, inherited members are displayed gray.

To have included files displayed

Turn on Show Includes option on the context menu of the title bar.
To have class members shown in the Project tool window

Turn on the Show members item on the context menu of the Project tool window title bar. If this option is on, the files in the tree that contain classes turn into nodes. When such node is unfolded, the contained classes with their fields, methods, functions and other members of the selected item are shown.
ps_projectToolWindowShowMembers

https://www.jetbrains.com/phpstorm/help/viewing-structure-of-a-source-file.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值