title: Use $dir with backslashes escaped in VSCode settings
body: <p>I'm using the <a href="https://marketplace.visualstudio.com/items?itemName=formulahendry.code-runner" rel="nofollow noreferrer">Code Runner</a> for [VSCode][2] <em>(Visual Studio Code)</em> and I'm trying to change the run command for <code>C++</code>.</p>
  
  <p>I have the following setting in my settings.json file:</p>
  
  <pre><code>// Set the executor of each language.
  "code-runner.executorMap": {
      // ...
  
      "cpp": "cd $dir &amp;&amp; g++ $fileName -o $fileNameWithoutExt &amp;&amp; $dir$fileNameWithoutExt"
  
      // ...
  }
  </code></pre>
  
  <p>Then when I press <code>CTRL SHIFT P</code> and press enter on <code>Run Code</code> to run my current C++ file, it produces the following command to be ran:</p>
  
  <pre><code>cd "c:\C++\" &amp;&amp; g++ main.cpp -o main &amp;&amp; "c:\C++\"main
  </code></pre>
  
  <p>But then the output of the command is:</p>
  
  <pre><code>bash: cd: c:\C++" &amp;&amp; g++ main.cpp -o main &amp;&amp; c:C++"main: No such file or directory
  </code></pre>
  
  <p>This is because as you can see in the command being run, it's trying to CD to <code>"c:\C++\"</code> but the <code>\</code> characters are not being escaped and it causes the command to fail.
  If the command had all the <code>\</code> characters escaped to look like <code>"c:\\C++\\"</code>, it would run correctly.</p>
  
  <p>I am using the git bash console for my integrated terminal.</p>
  
  <p>How can I fix this issue and escape the path's retreived from the <code>$dir</code> variable in my <code>settings.json</code> file?</p>