title: VSCode ignores cpp standard when folder is opened in WSL: Ubuntu?
body: <p>When I open a folder with WSL: Ubuntu and then try to build the project it seems to ignore the cpp standard set in VSCode's User settings. I can choose the standard I want by configuring a task.json file however I want to know how to change the default cpp standard for any folder opened in VSCode with WSL: Ubuntu. I have tried adding the following in my User settings in VSCode.</p>
  <pre><code>...
  &quot;C_Cpp.default.cppStandard&quot;: &quot;c++17&quot;,
  ...
  &quot;code-runner.executorMap&quot;: {
    ...
    &quot;cpp&quot;: &quot;cd $dir &amp;&amp; g++ -std=c++17 $fileName -o $fileNameWithoutExt &amp;&amp; $dir$fileNameWithoutExt&quot;,
    ...
  },
  </code></pre>
  <p>And yet when I build the following and execute the output I get <code>201402</code> indicating it is using c++14.</p>
  <pre><code>#include &lt;iostream&gt;
  
  int main()
  {
      std::cout &lt;&lt; __cplusplus &lt;&lt; std::endl;
      return 0;
  }
  </code></pre>
  <p>Any suggestions on how to change the default c++ standard?</p>
  <p>It seems that if I open the file in windows then it works fine as well so I don't know what the difference is here?</p>