prime31 / sublime-zig-language

Zig language support for Sublime Text

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sublime Text Zig Support

Adds syntax support for Zig files. Multi command plugin included to allow creating keyboard shortcuts/commands that chain together multiple Sublime commands. Two multi-commands are included and available in the command palette: Fix Unused Variable and Fix Unused Function Parameter. Put your cursor on the variable name and execute the command to "fix" annoying unused var errors quickly. They are also bound to cmd + shift + m and cmd + shift + n on macOS respectively.

Setup

  • open your Sublime Text package folder (Sublime Text -> Preferences -> Browse Packages menu item)
  • git clone https://github.com/prime31/sublime-zig-language "Zig Language" to add the plugin (note that the folder must be "Zig Language" for mdpopups to recognize it!)
  • (optional if zig is not on your PATH) Sublime Text -> Preferences -> Package Settings -> Zig -> Settings and edit your path

Usage (macOS keyboard commands. For Windows/Linux bind the commands however you like)

  • cmd + shift + r: builds the last chosen target or prompts for one if there is no previous build
  • cmd + option + shift + r: prompts for a target to build then builds it

About

Zig language support for Sublime Text


Languages

Language:Python 100.0%