Reputation: 223
I have used PhpStorm 10, but recently they released a new version. In PhpStorm 10 it was very comfortable to autocomplete SQL code. I could start typing the column name and autocompletion continued my code.
At the new version (PhpStorm 2016.2.1) you have to start typing with the table prefix before column name, that is not very convenient.
Maybe someone knows how change this option, that I could start typing column name without the table prefix to autocomplete my SQL.
Upvotes: 3
Views: 1942
Reputation: 223
I solved the problem. You have to do following steps:
Alt+Ctrl+S
or File -> Settings
Languages & Frameworks
and open SQL Dialects
tab.File/Directory
window and you have to change
<Generic>
dialect to your current project dialect. In my case, it is a MySQL
dialect.Upvotes: 7