Assuming all that you already have zig already installed in your system and by this command you'll get a version
zig version
Once you get an output showing that you have zig. Then now we need to initialize the project
Create a folder in your desired location and in that directory run the following command
zig init-exe
This command will create a zig boilerplateproject for you and will contain the following folders
-------
|-src
| - main.zig
|-zig-cache
| -...
|-zig-out
| -bin
|-build.zig
By that you have a ready project structure. Just run
zig build
to build your project or zig build run
to build and run the project.
Oldest comments (1)
please add Part 2: "Setting up Zig Dev Environment"
what IDE to choose, how to connect debugger so on.