title: How to include all files (including ones in subfolder) in sourcepath of a JAVA project?
body: <p>I am trying to create a Java project on VS Code, and I wish to add all of the files inside the <code>src</code> folder. Layout of the project:</p>
  <p><img src="https://i.stack.imgur.com/Smr7x.png" alt="layout" /></p>
  <p>As you can see, there are multiple subfolders inside <code>src</code>, and I wish to add all of them in the <code>java.project.sourcePaths</code> inside the <code>settings.json</code> file so the files can run. If I leave it as <code>&quot;java.project.sourcePaths&quot;: [&quot;src&quot;],</code>, I got errrors which my objects created <code>cannot be resolved to a type</code>.</p>
  <p>I got this temporarily fixed by changing the direcotry into <code>src/PA 1/</code>, but I do not know how to include all subfolders of <code>src</code>. This means everytime I create a new subfolder, I need to come back to add it in <code>java.project.sourcePaths</code>.</p>
  <p>Is there a way to include all subfolders inside <code>src</code>? I tried <code>src/**/</code> but it did not work.</p>
  <p>PS: Can any one explain why Java is not recognizing files inside the subfolder?</p>