|
4 | 4 | [](https://plugins.jetbrains.com/plugin/MARKETPLACE_ID) |
5 | 5 | [](https://plugins.jetbrains.com/plugin/MARKETPLACE_ID) |
6 | 6 |
|
7 | | -## Template ToDo list |
8 | | -- [x] Create a new [IntelliJ Platform Plugin Template][template] project. |
9 | | -- [ ] Get familiar with the [template documentation][template]. |
10 | | -- [ ] Adjust the [pluginGroup](./gradle.properties) and [pluginName](./gradle.properties), as well as the [id](./src/main/resources/META-INF/plugin.xml) and [sources package](./src/main/kotlin). |
11 | | -- [ ] Adjust the plugin description in `README` (see [Tips][docs:plugin-description]) |
12 | | -- [ ] Review the [Legal Agreements](https://plugins.jetbrains.com/docs/marketplace/legal-agreements.html?from=IJPluginTemplate). |
13 | | -- [ ] [Publish a plugin manually](https://plugins.jetbrains.com/docs/intellij/publishing-plugin.html?from=IJPluginTemplate) for the first time. |
14 | | -- [ ] Set the `MARKETPLACE_ID` in the above README badges. You can obtain it once the plugin is published to JetBrains Marketplace. |
15 | | -- [ ] Set the [Plugin Signing](https://plugins.jetbrains.com/docs/intellij/plugin-signing.html?from=IJPluginTemplate) related [secrets](https://github.com/JetBrains/intellij-platform-plugin-template#environment-variables). |
16 | | -- [ ] Set the [Deployment Token](https://plugins.jetbrains.com/docs/marketplace/plugin-upload.html?from=IJPluginTemplate). |
17 | | -- [ ] Click the <kbd>Watch</kbd> button on the top of the [IntelliJ Platform Plugin Template][template] to be notified about releases containing new features and fixes. |
18 | | -- [ ] Configure the [CODECOV_TOKEN](https://docs.codecov.com/docs/quick-start) secret for automated test coverage reports on PRs |
19 | | - |
20 | 7 | <!-- Plugin description --> |
21 | | -This Fancy IntelliJ Platform Plugin is going to be your implementation of the brilliant ideas that you have. |
| 8 | +A PhpStorm plugin that allows you to view PHP classes with their traits expanded inline, making it easier to understand the complete structure of classes that use traits. |
| 9 | + |
| 10 | +## Features |
| 11 | + |
| 12 | +- **Inline Trait Viewer**: View PHP classes with all trait methods and properties merged inline |
| 13 | +- **Context Menu Integration**: Right-click in the editor to access "View PHP Trait Inline" |
| 14 | +- **Read-only Preview**: Opens a read-only preview of the merged class for safe viewing |
| 15 | +- **Trait Detection**: Automatically detects and expands all traits used by the selected class |
| 16 | + |
| 17 | +## Usage |
22 | 18 |
|
23 | | -This specific section is a source for the [plugin.xml](/src/main/resources/META-INF/plugin.xml) file which will be extracted by the [Gradle](/build.gradle.kts) during the build process. |
| 19 | +1. Open a PHP file containing a class that uses traits |
| 20 | +2. Right-click anywhere in the editor |
| 21 | +3. Select "View PHP Trait Inline" from the context menu |
| 22 | +4. A new editor tab will open showing the class with all trait methods and properties expanded inline |
24 | 23 |
|
25 | | -To keep everything working, do not remove `<!-- ... -->` sections. |
26 | 24 | <!-- Plugin description end --> |
27 | 25 |
|
28 | 26 | ## Installation |
|
0 commit comments