I want to run a full fledged Swift command line program with multiple classes and multiple files, on Visual Studio Code. I'm using Macbook Air macOS Big Sur v11.2
I have setup VSCode from this tutorial. I am able to run single file swift program but when I try to create new class in another file (in same directory/folder), it doesn't recognize. refer the screenshots:
Consider, in Xcode similar to New project -> macOS -> command line tool. there we can have multiple files and we can define multiple classes in different files and still inherit or create object of those classes in main.swift file.
I'm pretty sure it's possible in VSCode too. May be we just need to structure the code and have a configuration. that is what i am looking for.
just similar to this question but seems no experienced people bother to answer :/
ps- I'm new to swift and using VSCode. but instead of using xCode (12 GB of installation and 25 GB occupied storage just for few command line programs), I want to use VSCode.