Hello,
As far as I know, it's not possible. However, you can ignore to build the source code in the Source folder, or whichever folder, by right click to that folder >> Resource Configurations >> Exclude from Build..., then choose the appropriate configuration that you want to exclude the folder.

Best Regards,
Nam