Перейти к содержимому

Как установить плагин в 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.

For more information about the criteria for suggesting plugins, refer to the JetBrains Marketpalce documentation.

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.

Check a project for suggested plugins

You can check your project for suggested plugins except for plugins for which you have disabled suggestions.

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:

Настройка IntelliJ IDEA

Эта статья рассказывает о том, как настроить Ваше рабочее пространство в IntelliJ IDEA для разработки плагинов с использованием SpongeAPI и а системы сборки, таких как Maven или Gradle или Плагин разработки Minecraft.

Если вы хотите создать ваш проект полностью с нуля, пожалуйста, пропустите все до секции Gradle или Maven. Используя плагин Minecraft Dev, он установит точку старта и устранит ваши попытки понять что означают те или функции при поднятии вашего проекта «с земли».

Использование IDEA Minecraft Dev плагина для создания рабочей отправной точки

Плагин Minecraft Development для IntelliJ это отличный плагин, который делает процесс создания плагина гораздо проще, а также предоставляет некоторые аккуратные и полезные возможности для разработки. По умолчанию он создаст проект, который использует Gradle как инструмент сборки.

Установка Плагина Разработки Minecraft

Этот плагин доступен в репозитории плагинов JetBrains IntelliJ.

Благодаря нему, вы можете установить плагин через внутренний браузер IntelliJ. Перейдите в File -> Settings -> Plugins и нажмите на кнопку Browse Repositories. внизу окна. В окне поиска просто найдите Minecraft . Вы можете установить его там и перезапустить IntelliJ, чтобы активировать плагин.

Создание Вашего Проекта из Шаблона

  • Откройте IntelliJ IDEA.
  • Нажмите Create New Project .
  • Выберите Minecraft в всплывающем меню.
  • Убедитесь, что в SDK проекта установлена версия 8/1.8 Java.
  • Выберите Sponge plugin для типа вашего проекта, затем нажмите Next .
  • Введите Ваши Group ID, Artifact ID, и Version.
    • Group ID обычно должен соответствовать названию Вашего пакета Java. Для подробностей смотрите Основной класс плагина .
    • Artifact ID обычно должен соответствовать Вашему plugin ID, который задавался Вами ранее, например myplugin .
    • Your Version is up to you. See Номер версии for details.

    Изменение конфигурации проекта

    Перейдите в Gradle или Maven секцию, в зависимости от того, что вы выбрали при создании проекта.

    Создание плагина с нуля – Gradle

    • Откройте IntelliJ IDEA.
    • Нажмите Create New Project .
    • Выберите Gradle в раскрывшемся списке.
    • Если вы хотите, выберите любые дополнительные библиотеки и фреймворки, например Kotlin.
    • Убедитесь, что в SDK проекта установлена версия 8/1.8 Java.
    • Нажмите Next для дальнейших действий.
    • Введите Ваши Group ID, Artifact ID, и Version.
      • Group ID обычно должен соответствовать названию Вашего пакета Java. Для подробностей смотрите Основной класс плагина .
      • Artifact ID обычно должен соответствовать Вашему plugin ID, который задавался Вами ранее, например myplugin .
      • Your Version is up to you. See Номер версии for details.
      • Windows: File -> Settings -> Build, Execution, Deployment -> Gradle
      • Mac: Intellij IDEA -> Preferences -> Build, Execution, Deployment -> Build Tools -> Gradle

      Редактирование Скрипта Сборки

      • Откройте build.gradle в навигаторе и добавьте зависимости.
      • Отредактируйте build-скрипт, как описано в статье Настройка Gradle .
      • Откройте Gradle tab в правой части окна программы и нажмите кнопку обновления (refresh).
      • Установка Gradle завершена! Теперь Вы можете приступить к написанию кода Вашего плагина.

      Создание плагина с нуля – Maven

      Создание Вашего Проекта

      • Откройте IntelliJ IDEA.
      • Нажмите Create New Project .
      • Выберите Maven в раскрывающемся списке.
      • Убедитесь, что в SDK проекта установлена версия 8/1.8 Java.
      • Нажмите Next для дальнейших действий.
      • Введите Ваши Group ID, Artifact ID, и Version.
        • Group ID обычно должен соответствовать названию Вашего пакета Java. Для подробностей смотрите Основной класс плагина .
        • Artifact ID обычно должен соответствовать Вашему plugin ID, который задавался Вами ранее, например myplugin .
        • Your Version is up to you. See Номер версии for details.

        Изменение конфигурации проекта

        • Откройте pom.xml в навигаторе.
        • Отредактируйте build-скрипт, как описано в статье Настройка Maven .
        • Обновите Ваш проект Maven.
        • Импортируйте изменения Maven, если появилась подсказка.

        Тестирование Вашего Плагина

        Следующие инструкции созданы для быстрого способа тестирования вашего плагина, но не являются самым эффективным способом для постоянной разработки.

        Для создания .jar файла, используя Gradle:

        • Перейдите в View -> Tool Windows -> Gradle
        • Под Tasks -> Build , нажмите на jar
        • Процесс сборки должен создать jar в build\libs

        Для создания .jar файла, используя Mave:

        • Перейдите в View -> «Tool Windows« -> Maven Projects
        • В окне Maven Projects , укажите название вашего проекта
        • В Plugins , укажите jar
        • Сделайте двойной щелчок по jar:jar
        • Процесс сборки должен создать jar в taget

        Скопируйте ваш jar файл в директорию mods рабочего Sponge сервера, затем перезапустите сервер для проверки.

        Для более эффективного процесса разработки, смотрите Отладка плагина для инструкций по запуску как на сервере Sponge, так и плагина внутри IDEA. Этот процесс позволяет вам изменять код плагина без перезапуска сервера.

        Импорт Существующего Проекта (Gradle или Maven)

        Если вы уже начали работу с вашим проектом и хотите снова импортировать его позже, вам необходимо его импортировать вместо повторного создания внутри вашей IDE:

        • Нажмите Файл > Открыть или Импортировать Проект .
        • Gradle: Переместитесь к файлу build.gradle и выберите его.
        • Maven: Переместитесь к файлу pom.xml и выберите его.
        • Убедитесь, что все настройки верны и нажмите Ок .

        Git Интеграция

        JetBrain предлагает документацию по интеграции Git:

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

        decorate image

        Записаться на бесплатный курс «Знакомство с Jmix»

        Если у вас уже установлена IntelliJ IDEA, вы можете подключить CUBA Studio в виде плагина:

        1. Запустите IntelliJ IDEA 2020.2 или новее.
        2. Откройте диалог Plugins.
        3. Перейдите на вкладку Marketplace.
        4. Введите в поле поиска “CUBA” и вы увидите плагин CUBA в результатах поиска.
        5. Нажмите Install и следуйте дальнейшим инструкциям IDE.

        Загрузить плагин на 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 золотых знаков 48 48 серебряных знаков 125 125 бронзовых знаков
        задан 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.

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

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

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

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