title: Way to have SQL intellisense or autocompletion inside code strings in Visual Studio Code?
body: <p>In JetBrains IDE's like <a href="https://www.jetbrains.com/phpstorm/" rel="noreferrer">PHPStorm</a> this is a built-in feature. E.g. in the code below, editing the SQL inside the string would autocomplete as SQL and suggest table/column names from an active database connection.</p>
  <pre class="lang-php prettyprint-override"><code>query(&quot;SELECT * FROM users LIMIT 50&quot;);
  </code></pre>
  <p>When using <a href="https://code.visualstudio.com/" rel="noreferrer">Visual Studio Code</a> or similar editors like <a href="https://theia-ide.org/" rel="noreferrer">Theia</a>, this functionality would be supplied by a plugin. Unfortunately, I haven't come across a plugin on the <a href="https://marketplace.visualstudio.com/vscode" rel="noreferrer">marketplace</a> that has this feature. Some have autocomplete for <code>.sql</code> files, but not inline SQL. It's hard to believe this isn't possible yet in such a popular editor.</p>
  <p><strong>Has anyone found a solution for this?</strong></p>
  <p>Plugins I've tried so far (I'm specifically looking for Postgres):</p>
  <ul>
  <li><a href="https://marketplace.visualstudio.com/items?itemName=mtxr.sqltools" rel="noreferrer">SQLTools</a></li>
  <li><a href="https://marketplace.visualstudio.com/items?itemName=ckolkman.vscode-postgres" rel="noreferrer">PostgreSQL</a> - privately maintained</li>
  <li><a href="https://marketplace.visualstudio.com/items?itemName=ms-ossdata.vscode-postgresql" rel="noreferrer">PostgreSQL</a> - abandonware by Microsoft</li>
  </ul>