'Visual Studio Code puts .class files in src folder when compiling

When I compile and run my project, Visual Studio Code automatically generates a .class file for each .java file and puts them in the src folder, but they are already stored in the bin folder. Why are they duplicated?

screenshot



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source