intellij-ideaintellij-idea-2016

intellij auto completes a tag without href


I know that when doing

a TAB it used to auto complete to <a href=""></a> this is no longer the case for me. It simply does this: <a></a> Is there a way to turn this back on? in html and php files


Solution

  • You can create create Live Template from Preferences > Editor > Live Templates to associate a TAB with <a href=""></a>.

    Here's an example:

    enter image description here

    In this example the text <a href=""></a> has been associated with Abbreviation: a and has been configured to Expand with Tab.