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.
Advertisement
Answer
I solved the problem. You have to do next steps:
- Press
Alt+Ctrl+S
orFile -> Settings
- Then you go to
Languages & Frameworks
and openSQL Dialects
tab. - There will be your project
File/Directory
window and you have to change<Generic>
dialect to your current project dialect. In my case it is aMySQL
dialect.