Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

G Code Language Extension for Visual Studio Code. Turn VSCode into a fully capable G-Code editor, including language support & more.

License

NotificationsYou must be signed in to change notification settings

appliedengdesign/vscode-gcode-syntax

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

VersionInstallsRating

GitHub IssuesGithub StarsGithub Last CommitMIT License

Follow @appliedengdesign




VSCode G-Code Syntax is the premier extension for editing G-Code inside of VSCode. Going past the simple syntax highlighting, this extension aims to turn your editor into a full blown g-code management suite. Building on the features of VSCode like Intellisense, snippets, debugging and more, we are able to offer nearly all of the features you would see in very expensive proprietary editors.

Additionally, by editing your G-Code inside of VSCode, you can take advantage of source control using Git to manage your g-code file versions.

Screenshot

VSCode orVisual Studio Code is a FREE (as in beer), open source application for editing code of all kinds of programming languages. To make it even better, there is a greatmarketplace where you can download and addextensions to the application to support other languages, add features and more.

Support VSCode-G-Code-Syntax

G-Code Syntax is generously offered to everyone free of charge, if you find it useful, please considersupporting the project by becoming a sponsor, sharing it, and letting your friends know!

Also, pleasewrite a review,star me on GitHub, and follow me onTwitter orInstagram.

You can also subscribe to our videos over onYouTube.

Features

This extension adds language syntax for CNC G-Code, code snippets, and colorization.

Tree View

  • Tree View shows an overview of the operations in the G-Code Program

Tree Screenshot

Stats View

  • Stats View shows a number of stats like tool changes, runtime, etc.

Stats Screenshot

Hovers

  • Hovering over G/M codes will show a short description of the code
  • Descriptions for the codes are taken from the sister project:gcode-reference
  • Hovers are dependent on the machine type selected

Hovers Screenshot

Status Bars

  • G-Code adds three informative sections to the VSCode status bar area
    • Tree Status (Dirty or Up to Date) depending on Refresh needed
    • Current units as set by settings (Auto, Inch or Metric)
    • Machine Type as set by settings
    • Ok there's a little heart there too.

Status Bar Screenshot

Context Menu

  • G-Code adds several commands to the context menu when viewing g-code
    • Change selected code into a comment
    • Refresh Stats
    • Refresh Tree
    • Remove Comment from selected code

Context Menu Screenshot

Current Supported File Extensions

| .001   | .apt | .aptcl | .cls   | .cnc | .din | .dnc | .ecs || .eia   | .fan | .fgc   | .fnc   | .g   | .g00 | .gc  | .gcd || .gcode | .gp  | .hnc   | .knc   | .lib | .m   | .min | .mpf || .mpr   | .msb | .nc    | .ncc   | .ncd | .ncf | .ncg | .nci || .ncp   | .ngc | .out   | .pim   | .pit | .plt | .ply | .prg || .pu1   | .rol | .S     | .sbp   | .spf | .ssb | .sub | .tap || .xpi   |      |        |        |      |      |      |      |

If you would like another file extension supported by this extension, pleaseopen an issue.

Installation

Install from Extensions Marketplace or manually install thevsix file.

Usage

Install & activate extension. Extension activates when you open a file marked for thegcode language.

Tree view is enabled by default and can be access from the G icon on the activity bar.

G-Code Syntax Settings

G-Code Syntax is customizable and provides many configuration settings to allow the personalization of almost all features.

NameDescription
gcode.general.hovers.enabledEnable or Disable the hovers to show G-Code information
gcode.general.machineTypeChoose the machine type for extension (Mill is default)
gcode.general.statusBars.enabledEnable or Disable the G-Code status bars
gcode.general.statusbars.alignmentChoose the alignment of the status bars (Left is default)
gcode.general.unitsChoose the units for the file. Options are Auto, Inch or Metric
gcode.general.outputLevelConfigure Output level for debugging purposes
gcode.lineNumberer.addSpaceAfterAdd space after line number
gcode.lineNumberer.defaultIncrementDefault Line Numberer Increment
gcode.lineNumberer.defaultStartDefault Line Numberer Start
gcode.lineNumberer.enableQuickPickEnable or Disable Input for the Line Numberer (Will use above defaults)
gcode.lineNumberer.frequencyFrequency of line number additions (Every Line or at Tool Changes)
gcode.lineNumberer.ignoreBlankIgnore Blank lines when numbering
gcode.lineNumberer.ignoreCommentsIgnore Comments when numbering
gcode.lineNumberer.ignoreExtraAdditional characters to ignore (Beginning of Line, Default is %)
gcode.lineNumberer.ignoreProgramNumbersIgnore Program numbers, e.g.O12345
gcode.lineNumberer.matchLineNumberWhen numbering, match the N number to file's line number. (Default is off)
gcode.views.maxAutoRefreshValue for limiting the autoRefresh maximum lines
gcode.views.navTree.autoRefreshTree auto-refreshes as changes are made to the g-code. ( Disabled by default )
gcode.views.stats.autoRefreshAuto-refresh the stats view when changes are made to the g-code. (Disabled by default)
gcode.views.webviews.enabledEnable or disable the webviews

Settings Screenshot

Known Issues

Please visit ourGitHub Issues page for any open issues.

TODO

  • Add more snippets
  • Add additional tree items.
  • Machining Calculator
  • More Statistics
  • G-Code Debugging
  • Backplotter
  • Semantic Highlighting
  • Programmatic Language Server

Visit ourprojects page for future roadmaps.

Changelog

Latest Version: v0.7.7

Please refer to ourCHANGELOG doc.

Contributing

If you work like to help contribute to the code or this project, please fork away and submit pull requests!

For more information on contributing, please refer to theCONTRIBUTING doc.

Contributors

About Applied Eng & Design

We are a full service engineering and design firm, specializing in CAD/CAM, CNC milling, rapid prototyping, training and more. We also like to dabble in Arudino / RaspberryPi projects, electronics, drones and robotics projects! Subscribe to our YouTube channel for videos on our projects, screencast tutorials, and more!

Follow us onTwitter &Instagram, and like ourFacebook Page!

License

This extension is licensed under theMIT License.

About

G Code Language Extension for Visual Studio Code. Turn VSCode into a fully capable G-Code editor, including language support & more.

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors5


[8]ページ先頭

©2009-2025 Movatter.jp