{"id":15134877,"url":"https://github.com/jetbrains/intellij-sdk-code-samples","last_synced_at":"2025-05-14T13:05:57.001Z","repository":{"id":38616934,"uuid":"252492081","full_name":"JetBrains/intellij-sdk-code-samples","owner":"JetBrains","description":"Mirror of the IntelliJ SDK Docs Code Samples","archived":false,"fork":false,"pushed_at":"2025-04-24T08:02:49.000Z","size":158526,"stargazers_count":1175,"open_issues_count":0,"forks_count":371,"subscribers_count":35,"default_branch":"main","last_synced_at":"2025-04-24T09:20:35.661Z","etag":null,"topics":["intellij","intellij-idea","intellij-platform","intellij-plugin","intellij-plugins","intellij-sdk","jetbrains","jetbrains-plugin","jetbrains-plugins"],"latest_commit_sha":null,"homepage":"https://github.com/JetBrains/intellij-sdk-docs/tree/main/code_samples","language":"Java","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JetBrains.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-04-02T15:20:51.000Z","updated_at":"2025-04-24T08:02:53.000Z","dependencies_parsed_at":"2024-06-03T14:56:08.844Z","dependency_job_id":"07063875-22f8-4ec7-90c7-b8d6f2f4f8f5","html_url":"https://github.com/JetBrains/intellij-sdk-code-samples","commit_stats":{"total_commits":655,"total_committers":31,"mean_commits":"21.129032258064516","dds":0.6351145038167939,"last_synced_commit":"f0b74bd55749cee82e6c64f2f342c8415f192563"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JetBrains%2Fintellij-sdk-code-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JetBrains%2Fintellij-sdk-code-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JetBrains%2Fintellij-sdk-code-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JetBrains%2Fintellij-sdk-code-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JetBrains","download_url":"https://codeload.github.com/JetBrains/intellij-sdk-code-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254149952,"owners_count":22022851,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["intellij","intellij-idea","intellij-platform","intellij-plugin","intellij-plugins","intellij-sdk","jetbrains","jetbrains-plugin","jetbrains-plugins"],"created_at":"2024-09-26T05:40:25.800Z","updated_at":"2025-05-14T13:05:56.989Z","avatar_url":"https://github.com/JetBrains.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# IntelliJ Platform SDK Code Samples\n\n[![official JetBrains project](https://jb.gg/badges/official-flat-square.svg)][jb:github]\n[![JetBrains IntelliJ Platform SDK Docs](https://jb.gg/badges/docs.svg?style=flat-square)][jb:docs]\n[![Bluesky](https://img.shields.io/badge/%40platform.jetbrains.com-0285FF?logo=bluesky\u0026logoColor=fff)][jb:bsky]\n[![X](https://img.shields.io/badge/%40JBPlatform-1DA1F2?logo=x)][jb:x]\n[![Build](https://img.shields.io/github/actions/workflow/status/JetBrains/intellij-sdk-docs/code-samples.yml?branch=main\u0026style=flat-square)][gh:workflow-code-samples]\n[![JetBrains Platform Forum Status](https://img.shields.io/discourse/status?server=https%3A%2F%2Fplatform.jetbrains.com)][jb:forum]\n\nLearn how to build plugins using IntelliJ Platform SDK for the [JetBrains products][jb:products] by experimenting with our code samples.\nThese samples show you how features work and help you jumpstart your plugins.\n\n\u003e [!TIP]\n\u003e To start a new plugin project, consider using [IntelliJ Platform Plugin Template][gh:template] which offers a pure boilerplate template to make it easier to create a new plugin project.\n\u003e\n\u003e The code samples can also be found in the [IntelliJ SDK Code Samples](https://github.com/JetBrains/intellij-sdk-code-samples) mirror repository.\n\nTo learn more, browse [available Extension Points][docs:eps], explore Extension Point usages in open-source plugins using [IntelliJ Platform Explorer](https://jb.gg/ipe) and learn how to [Explore the IntelliJ Platform API][docs:explore-api].\n\n## Target Platform\n\nAll Code Samples target the _Latest GA - 3 Releases_ platform.\n\n## Structure\n\nCode Samples depend on the [IntelliJ Platform SDK][docs] and [Gradle][docs:gradle] as a build system.\n\nThe main plugin definition file is stored in the `plugin.xml` file, which is created according to the [Plugin Configuration File documentation][docs:plugin.xml].\nIt describes definitions of the actions, extensions, or listeners provided by the plugin.\n\n## Code Samples\n\nPlease see [Code Samples][docs:code-samples] topic on how to import and run code samples.\n\nIn the following table, you may find all available samples provided in the separated directories as stand-alone projects available for running with the Gradle `runIde` task.\n\n| Code Sample                                                                 | Description                                                                                                                                                       |\n|-----------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [Action Basics](./action_basics)                                            | Action and Action Group patterns implementation, adds entries to the Tools menu.                                                                                  |\n| [Comparing References Inspection](./comparing_string_references_inspection) | Local Inspection Tool, adds entries to **Settings \u0026#124; Editor \u0026#124; Inspections \u0026#124; Java \u0026#124; Probable Bugs**.                                            |\n| [Conditional Operator Intention](./conditional_operator_intention)          | Intention action, suggests converting a ternary operator into an `if` block and adds entry to **Settings \u0026#124; Editor \u0026#124; Intentions \u0026#124; SDK Intentions**. |\n| [Editor Basics](./editor_basics)                                            | Basic Editor APIs example with editor popup menu with extra actions.                                                                                              |\n| [Framework Basics](./framework_basics)                                      | Basic *SDK Demo Framework* support added to the **File \u0026#124; New \u0026#124; Project \u0026#124; Java** wizard.                                                            |\n| [Live Templates](./live_templates)                                          | Live templates for Markdown language, adds an entry to the **Settings \u0026#124; Editor \u0026#124; Live Templates** dialog.                                               |\n| [Max Opened Projects](./max_opened_projects)                                | Application services and listeners, shows warning dialog when more than 3 open projects are opened.                                                               |\n| [Module](./module)                                                          | *SDK Demo Module* module type added to the **File \u0026#124; New \u0026#124; Project...** wizard.                                                                          |\n| [Project Model](./project_model)                                            | Interacts with the project model, adds menu items to **Tools** and **Editor Context** menus.                                                                      |\n| [Project View Pane](./project_view_pane)                                    | Project View Pane listing only image files.                                                                                                                       |\n| [Project Wizard](./project_wizard)                                          | Project Wizard example with demo steps.                                                                                                                           |\n| [PSI Demo](./psi_demo)                                                      | PSI Navigation features presentation.                                                                                                                             |\n| [Run Configuration](./run_configuration)                                    | Run configuration implementation with factory, options and UI.                                                                                                    |\n| [Settings](./settings)                                                      | Custom settings panel, adds a settings panel to the **Settings** panel under **Tools**.                                                                           |\n| [Simple Language Plugin](./simple_language_plugin)                          | Custom language support, defines a new *Simple language* with syntax highlighting, annotations, code completion, and other features.                              |\n| [Theme Basics](./theme_basics)                                              | Sample *theme* plugin with basic interface modifications.                                                                                                         |\n| [Tool Window](./tool_window)                                                | Custom Tool Window example plugin.                                                                                                                                |\n| [Tree Structure Provider](./tree_structure_provider)                        | Tree Structure Provider showing only plain text files.                                                                                                            |\n\n[gh:workflow-code-samples]: https://github.com/JetBrains/intellij-sdk-docs/actions/workflows/code-samples.yml\n[gh:template]: https://github.com/JetBrains/intellij-platform-plugin-template\n\n[jb:github]: https://github.com/JetBrains/.github/blob/main/profile/README.md\n[jb:docs]: https://plugins.jetbrains.com/docs/intellij/\n[jb:products]: https://www.jetbrains.com/products.html\n[jb:forum]: https://platform.jetbrains.com\n[jb:bsky]: https://bsky.app/profile/platform.jetbrains.com\n[jb:x]: https://x.com/JBPlatform\n\n[docs]: https://plugins.jetbrains.com/docs/intellij/\n[docs:code-samples]: https://plugins.jetbrains.com/docs/intellij/code-samples.html\n[docs:eps]: https://plugins.jetbrains.com/docs/intellij/extension-point-list.html\n[docs:gradle]: https://plugins.jetbrains.com/docs/intellij/developing-plugins.html\n[docs:plugin.xml]: https://plugins.jetbrains.com/docs/intellij/plugin-configuration-file.html\n[docs:explore-api]: https://plugins.jetbrains.com/docs/intellij/explore-api.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetbrains%2Fintellij-sdk-code-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjetbrains%2Fintellij-sdk-code-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjetbrains%2Fintellij-sdk-code-samples/lists"}