So I searched PhpStorm to write PHP code. Can I switch a piece of code to another programming language.
In many projects, we often want to switch programming languages during programming. Generally, we need to embed a different programming language in the code string. For example, embed an HTML segment in PHP code if you encounter a similar situation.
$ HtmlFragmentThe variable is an HTML code, including some PHP variables and escape strings.
In this case, HTML code prompts cannot be well used. For example, <p> </p> cannot be automatically closed. It is very hard to beat the keyboard one by one.
PhpStorm programming language switch
PhpStorm recognizes these situations and provides a comprehensive HTML editor for us to edit existing strings:
We can also create a string and use the language switch (
Alt + Enter) Manually specify a string to another language:
This is a very good small function that completely improves programming efficiency. This function is applicable to all other languages.
This function makes it easy for me to use Zen Coding when editing PHP code.