An open API service indexing awesome lists of open source software.

https://github.com/tanangular/learning_zig

A repository for showcasing my knowledge of the Zig programming language, and continuing to learn the language.
https://github.com/tanangular/learning_zig

language learn learning zig zig-language

Last synced: 4 months ago
JSON representation

A repository for showcasing my knowledge of the Zig programming language, and continuing to learn the language.

Awesome Lists containing this project

README

          

# เรียนรู้ ภาษา zig
[อ้างอิง จาก zig learning] (https://ziglang.org/documentation)

เพิ่มเติม
- https://github.com/gyulanemeth/learn-zig
- https://github.com/craftlinks/zig_learn_opengl
- https://github.com/zigbyexample/zigbyexample.github.io
- https://github.com/bfeldpw/rayworld-ng
- https://github.com/seanpm2001/Learn-Zig

# ใช้งานใน Jetbrains IntelliJ
## 1. ติดตั้ง plugin "Zig Support" (https://plugins.jetbrains.com/plugin/18062-zig-support)
- Basic language syntax rendering
- Comment/Uncomment Zig code
- Live templates
- Formatting using zig fmt (Ctrl|Cmd + Alt + l)

![m475vnnq](https://github.com/tanangular/learning_zig/assets/1311673/42111e4b-1e30-4afa-9cad-2536ed6e3652)
![qdvttbzv](https://github.com/tanangular/learning_zig/assets/1311673/f4670d71-7295-4134-ae85-2460e6543052)
![ee7881x2](https://github.com/tanangular/learning_zig/assets/1311673/fd4030d1-646d-480a-91c4-382a7774a18b)

## 2. ติดตั้ง plugin "ZigBrains" (https://plugins.jetbrains.com/plugin/22456-zigbrains)

A multifunctional Zig Programming Language plugin for the IDEA platform.

Core features:

Uses ZLS (Zig Language Server) for code assistance, syntax highlighting, and anything to do with coding assistance
Supports build.zig.zon files with autocomplete
Per-project Zig toolchain integration
Debugging support for CLion (builtin), and IDEA Ultimate With this plugin
Gutter icon for running main(), tests, and build

Setting up the language server
If you have zls available on PATH, ZigBrains will automatically discover it. If not, follow this guide:

1. Download or compile the ZLS language server, available at https://github.com/zigtools/zls
2. Go to Settings -> Languages & Frameworks -> ZLS -> ZLS path -> set the path to the zls executable you downloaded or compiled
3. Open a .zig file, and wait for the circle in the bottom status bar to turn Green (empty). See below for an explanation on what the circle means.

![e3735tmd](https://github.com/tanangular/learning_zig/assets/1311673/640e062a-4f98-4e44-963a-cd42b0bf5b6d)
![3125r3cb](https://github.com/tanangular/learning_zig/assets/1311673/b93f71ab-df90-4507-a7e9-190220bfe08d)
![3byz3ll6](https://github.com/tanangular/learning_zig/assets/1311673/e7ae9e95-0f3c-446f-8cee-ee5b0871e1c2)

## 3. Jetbrains File Watcher
Screenshot 2566-09-18 at 05 38 06