title: Visual Studio Code & Cold Fusion Markup (formatting)
body: <p>For VSCode users unaware, Cold Fusion Markup is similar to HTML, XML, etc</p>
  
  <pre><code>&lt;cfif variable is "value"&gt;
    stuff
  &lt;cfelse&gt;
    other stuff
  &lt;/cfif&gt;
  </code></pre>
  
  <hr>
  
  <p>I've been using Visual Studio code as my preferred IDE, largely because I can make it feel like Visual Studio. It feels like a good hybrid between Brackets and Visual Studio.</p>
  
  <p>Anyway.. there are two Extensions for CFML, and I've tried them both. They both seem functionally identical but neither one handles syntax formatting (both handle tag completion and syntax-coloring).</p>
  
  <pre><code>    "*.cfm": "lang-cfml"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>    "*.cfm": "cfmhtml"
  </code></pre>
  
  <p>Being a tag-based language, I could leave it on default but the default formatter does not handle SQL well at all.</p>
  
  <p>I can get by without auto-formatting but it sure is a nice feature. I tried this with the default formatter and the SQL is still reformatted to a fashion as shown below, and I lose tag completion.</p>
  
  <pre><code>"html.format.unformatted": "cfquery, a, [...] textarea, tt, var" (in settings.json.
  
  &lt;cfquery...&gt;
      select field from table where username =
      &lt;cfqueryparam ...value="#form.username#" /&gt; and password =
      &lt;cfqueryparam ...value="#encryptedpassword#" /&gt;
  &lt;/cfquery&gt;
  </code></pre>
  
  <p>which is quite frustrating to read.</p>
  
  <p>Is there anything I can do besides learning to alter the extensions and seeing if I can improve it?</p>