Как установить плагин в intellij idea
Перейти к содержимому

Как установить плагин в intellij idea

  • автор:

Install plugins

Plugins extend the core functionality of IntelliJ IDEA. For example, install plugins to get the following features:

  • Integration with version control systems, issue trackers, build management servers, and other tools.
  • Coding assistance support for various languages and frameworks.
  • Shortcut hints, live previews, File Watchers, and so on.
  • Coding exercises that can help you to learn a new programming language.

By default, IntelliJ IDEA includes a number of bundled plugins. You can disable bundled plugins, but they cannot be removed. You can install additional plugins from the plugin repository or from a local archive file (ZIP or JAR).

Open plugin settings

The Plugins settings dialog

  • Press Control+Alt+S to open the IDE settings and then select Plugins .

Use the Marketplace tab to browse and install plugins from JetBrains Marketplace or from a custom plugin repository.

Use the Installed tab to browse bundled and installed plugins, enable, disable, update, or remove them. Disabling unnecessary plugins can increase performance.

Most plugins can be used with any JetBrains product. Some are limited only to commercial products, others require a separate license.

If a plugin depends on some other plugin, you can find a list of the dependencies in the Additional Info tab. If your project depends on certain plugins, add them to the list of required plugins.

If existing plugins do not provide some functionality that you need, you can create your own plugin for IntelliJ IDEA. For more information, refer to Develop your own plugins.

By default, IntelliJ IDEA includes several bundled plugins. You can disable bundled plugins, but they cannot be removed. You can install additional plugins from the plugin repository or from a local archive file (ZIP or JAR).

Install plugin from Marketplace

  1. Press Control+Alt+S to open the IDE settings and then select Plugins .
  2. Click the Marketplace tab and type the plugin name in the search field.
  3. To install the plugin, click Install and restart IntelliJ IDEA.

To install a specific version, go to the plugin page in JetBrains Marketplace, download and install it as described in Install plugin from disk. For example, you can do it if the most recent version of the plugin is broken.

Install plugin from disk

Install Plugin from Disk

  1. Download the plugin archive (ZIP or JAR).
  2. Press Control+Alt+S to open the IDE settings and then select Plugins .
  3. On the Plugins page, click and then click Install Plugin from Disk… .
  4. Select the plugin archive file and click OK .
  5. Click OK to apply the changes and restart the IDE if prompted.

Install plugin from command line

Plugin ID

  1. Quit the IDE on which you want to install the plugin.
  2. From JetBrains Marketplace page, find the page of the required plugin, select the Versions tab, and click any version to copy pluginId . pluginId is a short name of the plugin you want to install. For example, tanvd.grazi .
  3. Install the plugin:

Navigate to the bin directory under your IntelliJ IDEA installation directory and run the following command:

idea64.exe installPlugins
For example:
idea64.exe installPlugins tanvd.grazi
Run the following command:
open -na «IntelliJ IDEA.app» —args installPlugins
For example:
open -na «IntelliJ IDEA.app» —args installPlugins tanvd.grazi

Navigate to the bin directory under your IntelliJ IDEA installation directory and run the following command:

idea.sh installPlugins
For example:
idea.sh installPlugins tanvd.grazi

Remove plugin

You cannot remove bundled plugins.

The Uninstall item for plugins

  1. Press Control+Alt+S to open the IDE settings and then select Plugins .
  2. Open the Installed tab and find the plugin that you want to remove.
  3. Expand the Disable list and select Uninstall .

If you need to remove a plugin without launching IntelliJ IDEA, you can delete it manually from the plugin directory.

Disable plugin

You can disable a plugin without removing it if you do not need the corresponding functionality.

  1. Press Control+Alt+S to open the IDE settings and then select Plugins .
  2. Open the Installed tab, find and select the plugin that you want to disable.
  3. On the plugin’s description pane, click Disable . Alternatively, you can use the checkboxes in the list of plugins or the Disable all buttons for plugin categories.

You can disable or enable all manually installed plugins at once (non-bundled) in the menu under .

Disable all downloaded plugins

Required plugins

A project may require plugins that provide support for certain technologies or frameworks. You can add such plugins to the list of required plugins for the current project, so that IntelliJ IDEA will verify that the plugins are installed and enabled. It will notify you if you forget about some plugin, or someone on your team is not aware about the dependency as they work on the project.

Add a required plugin for your current project

  1. Make sure the required plugin is installed.
  2. Press Control+Alt+S to open the IDE settings and then select Build, Execution, Deployment | Required Plugins .
  3. On the Required Plugins page, click and select the plugin. Optionally, specify the minimum and maximum version of the plugin.

To specify the required version of IntelliJ IDEA itself, add IDE Core to the list of required plugins.

The list of required plugins is stored in the .idea/externalDependencies.xml file of your project. When you open the project in IntelliJ IDEA, it will notify you if the required plugin is disabled, not installed, or requires an update.

Click the link in the notification message to quickly enable, install, or update the required plugin.

Suggested plugins

When you open a project, IntelliJ IDEA can suggest installing and enabling plugins based on libraries and facets used in your project. Do not confuse suggested plugins with required plugins that you can manually add to a project so that your teammates also use it.

If you don’t need a particular plugin, you can prevent IntelliJ IDEA from suggesting it. You can also use your notification settings to disable or enable notifications of all plugin suggestions and the way they are displayed.

Disable suggestions of a plugin

  • When a notification of a suggested plugin appears, click Don’t suggest again .

Next time when you open a project, IntelliJ IDEA will not suggest this plugin. You can still check your project for suggested plugins.

Check a project for suggested plugins

Check suggested plugins

  1. Press Control+Shift+A and start typing Check Suggested Plugins .
  2. Select the Check Suggested Plugins action.
  3. If IntelliJ IDEA has a plugin applicable to your project, you’ll see the notification message. Click the link in the notification message to install or enable the suggested plugin.

Alternatively, you can open the IDE settings ( Control+Alt+S ) and go to Plugins | Marketplace : If there are plugins suggested for your project, they will be displayed on top of the plugin list, in the Suggested section.

Suggested plugins

Develop your own plugins

You can use any edition of IntelliJ IDEA to develop plugins. It provides an open API, a dedicated SDK, module, and run/debug configurations to help you.

The recommended workflow is to use Gradle. The old workflow using the internal IntelliJ IDEA build system is also supported. For more information, refer to the IntelliJ Platform SDK Developer Guide.

Custom plugin repositories

By default, IntelliJ IDEA is configured to use plugins from JetBrains Marketplace. This is a public repository where everyone can host their plugins. However, if you develop plugins for internal use only, you can set up a custom plugin repository for them.

For more information about setting up a custom plugin repository, see the IntelliJ Platform SDK documentation.

Once you set up your plugin repository, add it to IntelliJ IDEA:

Add custom repositories

How to add a custom plugin repository

  1. Press Control+Alt+S to open the IDE settings and then select Plugins .
  2. On the Plugins page, click and select Manage Plugin Repositories… .
  3. In the Custom Plugin Repositories dialog, click and specify your repository URL. It must point to the location of the XML file that describes your plugin, for example, updatePlugins.xml . The file can be on the same server as your custom plugins, or on a dedicated one.
  4. Click OK in the Custom Plugin Repositories dialog to save the list of plugin repositories.
  5. Click OK in the Settings dialog to apply the changes.

When you search for plugins, IntelliJ IDEA will show you results both from default JetBrains Marketplace and any custom repositories that you specify. To browse only a certain custom plugin repository, type repository: followed by the URL of the repository in the search field on the Marketplace tab of the Plugins page. For example:

repository:http://plugins.example.com:8080/updatePlugins.xml myPlugin

Alternatively, you can add your custom plugin repositories using the idea.plugin.hosts property:

  1. Go to Help | Edit Custom Properties .
  2. Add the idea.plugin.hosts property to the platform properties file and specify the URL of the XML file that describes your plugin. For example:

idea.plugin.hosts=»http://plugins.example.com:8080/updatePlugins.xml»

You may want to replace default JetBrains Marketplace with your custom plugin repository. This can be helpful if you want only your custom repository plugins to be available from IntelliJ IDEA.

Replace the default plugin repository

  1. Go to Help | Edit Custom Properties .
  2. Add the idea.plugins.host property to the platform properties file and specify the URL of the application that can properly handle requests from IntelliJ IDEA, that is, act as the default plugin repository application instead of JetBrains Marketplace. In particular, it should handle the following requests:
    • Get the list of plugins
    • Download the latest plugin update
  3. Restart IntelliJ IDEA.

If you replace the default plugin repository, the search field on the Marketplace tab of the Plugins dialog will browse only the plugins in the new default repository and any custom repositories that you add.

Productivity tips

Filter and sort search results

  • Type a forward slash / in the search string to see options for filtering and sorting search results. For example, you can add the following options to your search string to list only language-related plugins and sort them alphabetically by name:

Я написал Hello World плагин для IntelliJ IDEA

Я думаю, каждый из нас слышал на разнообразных конференциях, как люди пишут плагины для IDEA, чтобы решить локальные проблемы своего отдела или команды. Мне никогда не приходилось этого делать, так как локальные проблемы решались чем-то другим (gradle плагинами, CI/CD, или попросту баш скриптами). Однако на этой неделе мне захотелось добавить одну мелкую штуку к себе IDEA, и я создал свой первый, простой плагин.

Я захотел реализовать функциональность, которая уже доступна для GitHub в стандартном плагине для GitHub от IntelliJ, но не доступна для Azure DevOps, который сейчас используется на мой проекте. Это простой action, который называется — open this file in Github (в моем случае — Open File in Azure DevOps). Для тех, кто не знает, этот экшен открывает файл, который сейчас открыт у вас в IDE, в браузере гитхаба/гитхлаба, или ажура — в моем случае. Иногда это может быть полезно, если вы хотите посмотреть на историю файла или blame в более приятном GUI.

Несколько слов про процесс разработки. Я помню, много лет назад я уже пытался что-то сделать под IntelliJ IDEA (не плагин, а просто патч в кору, кажется). Это был довольно болезненный опыт, с точки зрения developer experience. Документация отсутствовала, как класс. Не было никаких удобных штук для улучшения локального опыта разработки. Спасало только, что IDEA делалась ребятами из РФ, и всегда можно было в каком-нибудь чате спросить совета.

В эти дни всё поменялось. Появилась вполне нормальная документация для старта https://plugins.jetbrains.com/docs/intellij/plugins-quick-start.html. Более того, появился шаблон на гитхабе, который вам позволяет начать разработку вашего плагина в течение 15 минут — https://github.com/JetBrains/intellij-platform-plugin-template. Кстати, у меня была одна проблемка с этим шаблоном, я создал тикет, и мне помогли с моей проблемой в течение суток.

Кроме того, на гитхабе теперь есть довольно много примеров разных плагинов, как от JB, так и от сторонних разработчиков. Используя новый поиск по Github, вы сможете довольно быстро найти примеры использования того или иного API.

После того, как я разработал плагин, я решил опкубликовать его на официальный JetBrains Marketplace. Процесс выглядил максимально гладко. Во-первых, есть пошаговая инструкция. Во-вторых, gradle плагин org.jetbrains.intellij, по сути, делает всё за вас. Вам нужно только указать сертификаты для подписывания плагина, и потом загрузить плагин через web-интерфейс (для первой загрузки, а потом уже можно из CI). В течение суток мой плагин прошел модерацию, и я теперь могу скачивать его прямо из стора.

Вот так вот выглядил мой первый опыт создания расширения под IDEA. Понятно, что мой пример — очень игрушечный. Тем ни менее, я прошел все шаги без каких-либо серьезных проблем. В будущем я постараюсь создать какой-нибудь еще плагин, если попадется под руки подходящая задача.

Другие записи из этой рубрики:

  • Немного потрогал WebAssembly в игрушечном проекте
  • Стоит ли купить механическую клавиатуру для программиста?
  • Как я слал нотификации из Android телефона в Windows компьютер
  • Проверяем Switch Exhaustiveness в Java 8
  • Сравнение Java и C# в 2022 году

Как установить плагин в intellij idea

JavaRush — F.A.Q.

Как скачать плагин JavaRush?

Как скачать плагин JavaRush?

Загрузка и настройка плагина JavaRush

Автор: Mark

Обновлено больше недели назад

Скачать плагин для дальнейшей его настройки в IntelliJ IDEA на вашем компьютере можно здесь. Также ссылка на загрузку плагина доступна в этой лекции.

Внимание! Вы должны быть залогинены под своей учетной записью на сайте для корректной загрузки плагина.

Подробная видеоинструкция по установке и настройке плагина JavaRush:

Нашли ответ на свой вопрос?

Загрузить плагин на Intellij IDEA с диска

Как установить с диска плагин golang версии 9.16 к Intellij IDEA , где убрана проблема с переменными окружения, с https://github.com/go-lang-plugin-org/go-lang-idea-plugin.
Работаю сейчас под Win7 Idea Community Edition, последняя версия. Я не понимаю, как сделать из архива с github архив с плагином .zip или .jar. Если есть мысли по этому поводу, подскажите, пожалуйста.
update: Нашёл в описании, как собирать плагин под ubuntu или mac os, но на данный момент нету возможности работать на этих ос. Есть варианты сборки под Windows?

Отслеживать
36.8k 6 6 золотых знаков 47 47 серебряных знаков 123 123 бронзовых знака
задан 24 окт 2014 в 8:20
Stee1House Stee1House
557 4 4 золотых знака 13 13 серебряных знаков 30 30 бронзовых знаков
Там, где список плагинов, есть две кнопки — установка из репозитория и с внешнего носителя.
24 окт 2014 в 16:29
Буду ждать официального обновления с репозитория.
30 окт 2014 в 22:38

2 ответа 2

Сортировка: Сброс на вариант по умолчанию

Этот плагин работает только на Idea 14.1 и выше (community версия тоже поддерживается) На https://github.com/go-lang-plugin-org/go-lang-idea-plugin#pre-release-builds написано как поставить из репозитория

Отслеживать
ответ дан 13 апр 2015 в 10:15
Sergey Linnik Sergey Linnik

Научился работать с github и нашёл замечательную ссылку release, где всё собрано..

Отслеживать
ответ дан 20 апр 2015 в 16:06
Stee1House Stee1House
557 4 4 золотых знака 13 13 серебряных знаков 30 30 бронзовых знаков

  • golang
  • intellij-idea
  • плагин
    Важное на Мете
Похожие

Подписаться на ленту

Лента вопроса

Для подписки на ленту скопируйте и вставьте эту ссылку в вашу программу для чтения RSS.

Дизайн сайта / логотип © 2023 Stack Exchange Inc; пользовательские материалы лицензированы в соответствии с CC BY-SA . rev 2023.10.27.43697

Нажимая «Принять все файлы cookie» вы соглашаетесь, что Stack Exchange может хранить файлы cookie на вашем устройстве и раскрывать информацию в соответствии с нашей Политикой в отношении файлов cookie.

Добавить комментарий

Ваш адрес email не будет опубликован. Обязательные поля помечены *