Code taken from https://docs.swift.org/swift-book/GuidedTour/GuidedTour.html. Should run fine on Visual studio code with Swift Language(https://marketplace.visualstudio.com/items?itemName=Kasik96.swift) and Swift Project Creation(https://marketplace.visualstudio.com/items?itemName=cgrevisse.swift-project-creation#:~:text=Install%20the%20extension%20and%20reload,project%20will%20be%20created%20in) both installed
To build again, you will have to delete .build folder