IntelliJ IDEA 2016.2 Help

Blade

File | Settings | Languages and Frameworks | PHP | Blade for Windows and Linux
IntelliJ IDEA | Preferences | Languages and Frameworks | Blade for OS X
Ctrl+Alt+S

settings

This page is available only when the PHP and Blade plugins are installed and enabled. The plugins are not bundled with IntelliJ IDEA, but they can be installed from the JetBrains plugin repository as described in Installing, Updating and Uninstalling Repository Plugins and Enabling and Disabling Plugins. Once enabled, the plugins are available at the IDE level, that is, you can use it in all your IntelliJ IDEA projects.

The page consists of the following tabs:

Text Tags

In this tab, specify the delimiters to use in Blade templates. According to these settings, IntelliJ IDEA recognizes templates and provides error highlighting and code completion for them.

The fields in the tab show the opening and closing characters for raw tags, content tags, and escaped tags.

The fields are filled in with the default values in compliance with Blade Templates 5.1. If you are using an earlier version, you can specify the relevant custom delimiters and IntelliJ IDEA will provide coding assistance according to the new rules.

Directives

In this tab, manage Blade directives for use in IntelliJ IDEA. The tab lists all the currently available Blade directives, for those that have parameters, the prefixes and suffixes are also shown. When you start, the list contains only predefined directives. You can edit these directives as well as create custom ones.

ItemDescription
Directives The tab lists all the currently available Blade directives, for those that have parameters, the prefixes and suffixes are also shown. When you start, the list contains only predefined directives. You can edit these directives as well as create custom ones.
  • Add directive (add) click this button to define a new directive. Specify the directive's name in the Name text box. If the new directives requires a prefix and a suffix, select the Has parameter check box and type the prefix and suffix to use in the Prefix and Suffix text boxes respectively. IntelliJ IDEA will automatically enclose the prefix and suffix in opening and closing brackets and quotes and add a colon separator : so the parameters will look as follows: ("<prefix>:<suffix>").

    To edit an existing directive, select it in the list and change the values in the text boxes below. To restore the original definition, click the Reset to defaults button icon_resetToDefault.

  • Remove directive(s) (delete) click this button to remove the selected directive from the list.
  • Reset to defaults (icon_resetToDefault) click this button to restore the original definition of the selected directive.
Name In this text box, specify the name of a new directive or edit the name of the selected one.
Has parameter Select this check bo to specify a prefix and a suffix for a new directive or for the one selected in the list. When the check box is selected, the Prefix and Suffix text boxes are available for editing. Specify the required directive parameters. If the new directives requires a prefix and a suffix, select the Has parameter check box and type the prefix and suffix to use in the Prefix and Suffix text boxes respectively. IntelliJ IDEA will automatically enclose the prefix and suffix in opening and closing brackets and quotes and add a colon separator : so the parameters will look as follows: ("<prefix>:<suffix>").

See Also

Last modified: 23 November 2016