Format MySQL code inside PHP string

后端 未结 16 2067
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-02-04 00:29

Is there any program IDE or not that can format MySQL code inside PHP string e.g. I use PHPStorm IDE and it cannot do it.

It does that for PHP and MYSQL but not for MYS

16条回答
  •  暗喜
    暗喜 (楼主)
    2021-02-04 01:31

    In PHPStorm you can specify SQL dialect for your project: http://www.jetbrains.com/phpstorm/webhelp/sql-dialects.html

    Next, you must setup Data Source: http://www.jetbrains.com/phpstorm/webhelp/data-sources-2.html

    After that your IDE will support SQL syntax and autocomplete for tables (fields).


    Also, there is a page, where you can specify SQL code-style: http://www.jetbrains.com/phpstorm/webhelp/code-style-sql.html

提交回复
热议问题