mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-28 01:07:49 +08:00
27 lines
1.3 KiB
Markdown
27 lines
1.3 KiB
Markdown
[//]: # (title: Deploying a Plugin)
|
|
|
|
<!-- Copyright 2000-2022 JetBrains s.r.o. and other contributors. Use of this source code is governed by the Apache 2.0 license that can be found in the LICENSE file. -->
|
|
|
|
Before your custom plugin can be used, it must be deployed: built, installed, and then enabled using Plugin Manager.
|
|
|
|
To deploy a plugin:
|
|
|
|
* Make your project by invoking <menupath>Build | Build Project</menupath> or <menupath>Build | Build Module $MODULE_NAME$</menupath>.
|
|
* Prepare your plugin for deployment.
|
|
In the main menu, select <menupath>Build | Prepare Plugin Module $MODULE_NAME$ for Deployment</menupath>.
|
|
|
|

|
|
|
|
* If the plugin module does not depend on any libraries, a JAR archive will be created.
|
|
Otherwise, a ZIP archive will be created, including all the plugin libraries specified in the project settings.
|
|
|
|

|
|
|
|
* [Install](https://www.jetbrains.com/help/idea/managing-plugins.html#installing-plugins-from-disk)
|
|
the newly created archive/jar file from disk.
|
|
The `editor_basics` code sample builds the plugin archive/jar into the `editor_basics` project folder:
|
|
|
|

|
|
|
|
* Restart your IDE so the changes will take effect.
|