- Tree-sitter: tree-sitter-gcode
This extension currently supports the following file extensions:
| ply | sub | g | tap | nc | ncd |
| gco | bfb | gcode | eia | tcn | fgc |
| gp | knc | ssb | dnc | ncf | xpi |
| lib | min | nci | fnc | spf | cnc |
| din | g00 | mmg | ecs | gcd | m |
| mpt | ncg | ncp | sbp | anc | aptcl |
| mpf | hnc | ngc | prg | pim | apt |
| 001 | cls | fan | plt | pu1 | pit |
| rol | S | gc | out |
- Open Zed
- Press Ctrl+Shift+X to open Zed extensions menu (alternatively, you can open the menu by typing zed: extensions in the command palette (Ctrl+Shift+P))
- Search for the G-code extension and install it
Although this extension supports a huge variety of file extensions, you can extend it by adding file_types to your Zed project or user settings:
{
"file_types": {
"G-code": ["nc"]
}
}