title: Is it possible to fix this in VScode? #pragma once in main file [-Wpragma-once-outside-header]
body: <p>With VScode, how can this error be fixed?</p>
  
  <pre><code>#pragma once in main file [-Wpragma-once-outside-header]
  </code></pre>
  
  <p><strong>Update:</strong>
  Showing in VScode:</p>
  
  <p><a href="https://i.stack.imgur.com/ZwoTR.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ZwoTR.png" alt="enter image description here"></a></p>
  
  <p><strong>Update Again:</strong>
  Here are my current VScode settings in <code>c_cpp_properties.json</code></p>
  
  <pre><code>{
    "configurations": [
      {
        "name": "Mac",
        "includePath": ["${workspaceFolder}/**"],
        "defines": [],
        "macFrameworkPath": [
          "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.14.sdk/System/Library/Frameworks"
        ],
        "compilerPath": "/usr/bin/clang",
        "cStandard": "c11",
        "cppStandard": "c++17",
        "intelliSenseMode": "clang-x64"
      }
    ],
    "version": 4
  }
  </code></pre>