Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>G-Code HelperNew to Visual Studio Code? Get it now.
G-Code Helper

G-Code Helper

tr-ex

|
268 installs
| (0) | Free
G-Code helper with syntax highlighting, formatting and code completion
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Extension with support for g-code

At the moment the following file extensions are supported:

  • .gcode
  • .spf
  • .mpf
  • .lst

Highlighting

The extension highlights diffrent patterns with diffrent colors.

example of highlighting of the line numbers

Formatting document

With this extension formatting your gcode is possible. To format the document you can either right click and select Format Document or you can also set a shortcut for it. Also you can set format on save.

example

Code definitions

This extension provides code definition for a small collection of g-code

example

Code completion

Additionally there is a support for a handful of shortcuts as well as a shortcut for section comments

example

Renumbering

You have the option to renumber a whole document or just part of it as well.

Renumber document with starting number

There is a function called renumber which allows you to renumber the whole document with dynamically set starting linenumber and step.

example

Renumber selected part of a document

There is also a function which allows you to renumber line numbers of the selected part with 3 diffrent static steps.

example

Section comments

When using section comments it might be useful to increment the line numbers afterwards. This extension can do this for you.

To use this feature you first have to enable it in the settings. For that simply search for these two settings and modify them:

  • gcode-helper.comments.sectionComments.incrementLineNumber
  • gcode-helper.comments.sectionComments.incrementLineNumberBy

example

LST-Header hovering

When hovering over values from a table it provides you with the definition string from the table

example

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft