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

Phpstorm как установить плагин

  • автор:

Install plugins

Plugins extend the core functionality of PhpStorm. 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.

Open plugin settings

Press Ctrl+Alt+S to open the IDE settings and select Plugins .

Use the Marketplace tab to browse and install plugins from the JetBrains Plugin Repository 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.

If a plugin depends on some other plugin, PhpStorm will notify you about the dependencies. If your project depends on certain plugins, add them to the list of required plugins.

By default, PhpStorm 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

Press Ctrl+Alt+S to open the IDE settings and select Plugins .

Find the plugin in the Marketplace and click Install .

To install a specific version, go to the plugin page in the JetBrains Plugin Repository, 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

Download the plugin archive (ZIP or JAR).

Press Ctrl+Alt+S to open the IDE settings and select Plugins .

On the Plugins page, click and then click Install Plugin from Disk… .

Select the plugin archive file and click OK .

Click OK to apply the changes and restart the IDE if prompted.

Install plugin through command line

From the JetBrains Marketplace page, find a 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, NodeJS .

Open the terminal, go to the PhpStorm instance where your project resides, and for which you want to download and install a third-party plugin.

The downloaded PhpStorm instances are located in of the following directories depending on your OS.

Use the installPlugins PROJECT_PATH pluginId to install your plugin.

Remove plugin

You cannot remove bundled plugins.

Press Ctrl+Alt+S to open the IDE settings and select Plugins .

Open the Installed tab and find the plugin that you want to remove.

Click on the plugin’s description pane and select Uninstall .

Disable plugin

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

Press Ctrl+Alt+S to open the IDE settings and select Plugins .

Open the Installed tab, find and select the plugin that you want to disable.

Click on the plugin’s description pane and select 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 PhpStorm 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

Make sure the required plugin is installed.

Press Ctrl+Alt+S to open the IDE settings and select Build, Execution, Deployment | Required Plugins .

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 PhpStorm 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 PhpStorm, it will notify you if the required plugin is disabled, not installed, or requires an update.

Required plugin not installed warning

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

Suggested plugins

When you open a project, PhpStorm can suggest installing and enabling plugins based on libraries 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 PhpStorm 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 this plugin .

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

Check a project for suggested plugins

Press Ctrl+Shift+A and start typing Check Suggested Plugins .

Select the Check Suggested Plugins action.

If PhpStorm 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.

Custom plugin repositories

By default, PhpStorm is configured to use plugins from the JetBrains Plugin Repository. 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 information about setting up a custom plugin repository, see the IntelliJ Platform SDK documentation.

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

Add custom repositories

Press Ctrl+Alt+S to open the IDE settings and select Plugins .

On the Plugins page, click and select Manage Plugin Repositories… .

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.

Click OK in the Custom Plugin Repositories dialog to save the list of plugin repositories.

Click OK in the Settings dialog to apply the changes.

When you search for plugins, PhpStorm will show you results both from the default JetBrains Plugin Repository 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:

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

From the main menu, select Help | Edit Custom Properties .

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:

To add multiple URLs, separate them with semicolons ; .

You may want to replace the default JetBrains Plugin Repository with your custom plugin repository. This can be helpful if you want only your custom repository plugins to be available from PhpStorm.

Replace the default plugin repository

From the main menu, select Help | Edit Custom Properties .

Add the idea.plugins.host property to the platform properties file and specify the URL of the application that can properly handle requests from PhpStorm, that is, act as the default plugin repository application instead of JetBrains Plugin Repository.

In particular, it should handle the following requests:

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 by the number of downloads:

Managing plugins

In the Settings/Preferences dialog Ctrl+Alt+S , select Plugins .

On the Plugins page, you can do the following:

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

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

If a plugin depends on some other plugin, PhpStorm will notify you about the dependencies. If your project depends on certain plugins, add them to the list of required plugins.

By default, PhpStorm 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).

Install plugin from repository

In the Settings/Preferences dialog Ctrl+Alt+S , select Plugins .

Find the plugin in the Marketplace and click Install .

Install plugin from disk

After you download the plugin archive (ZIP or JAR), do the following:

In the Settings/Preferences dialog Ctrl+Alt+S , select Plugins .

On the Plugins page, click and then click Install Plugin from Disk .

Select the plugin archive file and click OK .

Click OK to apply the changes and restart the IDE if prompted.

You can also drag the downloaded plugin archive file and drop it into the PhpStorm Welcome screen.

Remove plugin

In the Settings/Preferences dialog Ctrl+Alt+S , select Plugins .

Open the Installed tab and find the plugin that you want to remove.

Click next to the Disable / Enable button and select Uninstall from the dropdown menu.

Custom plugin repositories

By default, PhpStorm is configured to use plugins from the JetBrains Plugin Repository. This is where all the community plugins are hosted, and you are free to host your plugins there. However, if you develop plugins for internal use only, you can set up a custom plugin repository for them.

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

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

In the Settings/Preferences dialog Ctrl+Alt+S , select Plugins .

On the Plugins page, click and then click Manage Plugin Repositories .

In the Custom Plugin Repositories dialog, click and specify your repository URL. It must point to the location of the updatePlugins.xml file. The file can be on the same server as your custom plugins, or on a dedicated one.

Click OK in the Custom Plugin Repositories dialog to save the list of plugin repositories.

Click OK in the Settings/Preferences dialog to apply the changes.

To browse the custom plugin repository, type repository: followed by the URL of the repository in the Marketplace tab of the Plugins page. For example:

Alternatively, you can replace the default JetBrains Plugin Repository with your custom repository URL. This can be helpful if you want only your custom repository plugins to be available from PhpStorm. To do this, edit the platform properties or VM options file as described below. For more information, see Advanced configuration.

Replace the default plugin repository with a custom one

From the main menu, select either Help | Edit Custom Properties or Help | Edit Custom VM Options .

Add the idea.plugins.host property to the platform properties file or the -Didea.plugins.host option to the VM options file. For example:

To add multiple URLs, separate them with semicolons ; .

Make sure that there is no plugins.jetbrains.com URL.

If you replace the default plugin repository with a custom one, the search field on the Marketplace tab of the Plugins dialog will browse only the plugins in your custom repository.

Required plugins

A project may require plugins that add support for certain technologies or frameworks. You can add such plugins to the list of required plugins for the current project, so that PhpStorm 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

Make sure that the required plugin is installed.

In the Settings/Preferences dialog Ctrl+Alt+S , select Build, Execution, Deployment | Required Plugins .

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 PhpStorm itself, add IDE Core to the list of required plugins.

After the required plugin is added, when you open the project in PhpStorm, it will notify you if the plugin is disabled, not installed, or requires an update.

Required plugin not installed warning

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

Статьи PhpStorm | Установка и настройка для работы с 1С Битрикс

File -> Settings -> Plugins -> Browse repositories.

В открывшемся окне ищем “Bitrix Framework Support”, жмем по нему правой кнопкой мыши и выбираем “Download and Install” или жмем кнопку “install” в правой части окна

Установка плагина BitrixLangCompletion

Устанавливаем плагин в PhpStorm:

File -> Settings -> Plugins -> Browse repositories.

В открывшемся окне ищем “BitrixLangCompletion”, жмем по нему правой кнопкой мыши и выбираем “Download and Install” или жмем кнопку “install” в правой части окна

Установка плагина Symfony для PhpStorm.

Прежде чем приступать к работе с Symfony, я рекомендую установить вам специальный плагин для редактора PHPStorm, который специально предназначен для работы с Symfony.

Этот плагин даст нам дополнительные возможности. Мы будем получать в PhpStorm различные подсказки по работе с этим фреймворком. Мы сможем более удобно переходить к нужным контроллерам, функциям и.т.д.

С помощью этого плагина все это можно делать.

Для его установки переходим в главное меню — Preferences (Настройки) — Plugins — Browse Repositories (обзор репозиториев) и вбиваем там Symfony.

Устанавливаем этот плагин.

Теперь, для того, чтобы этот плагин стал доступен для нашего проекта, переходим в раздел File -> Settings -> Languages & Framework -> PHP -> Symfony.

Переходим в этот раздел и включаем галочку "Enable Plugin for this project" (активировать плагин для этого проекта).

Сделайте такую настройку, чтобы в дальнейшем у нас все было однотипно и чтобы мы смогли получить все возможности Symfony плагина, которые имеются для редактора PhpStorm.

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

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