...
PhpStorm provides database prefixes support and changes #__ on fly to the prefix that is defined in the $dbprefix field in the configuration.php file (. You will also have completion working for your SQL queries.To have it working make sure that SQL Dialect for project is equal to Database (Settings-> SQL Dialects).
If you click Ctrl+Click you can navigate directly to the table from the query.
Joomla! Doc-blocks standard support
...