Skip to content

Latest commit

 

History

History
12 lines (9 loc) · 1.15 KB

README.md

File metadata and controls

12 lines (9 loc) · 1.15 KB

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