How to add a jsconfig.json

To get better JavaScript code completion, debugging and formatting while using Visual Studio Code to work on your JavaScript projects, you need to create a jsconfig.json file for each project.

Just add a jsconfig.json to the root folder of your project.

{
  "compilerOptions": {
    "baseUrl": ".",
    "paths": {
      "@/*": [
        "resources/js/*"
      ],
      "@Components/*": [
        "resources/js/Components/*"
      ]
    }
  },
  "exclude": [
    "node_modules",
    "public"
  ]
}

References

Victor Yoalli

This is me.