Skip to content

Visual Studio g-code syntax highlighter for CNC and 3DPrinters

License

Notifications You must be signed in to change notification settings

gojimmypi/GcodeLanguageExtension

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

G-Code Language Extension

GcodeLanguageExtension.png

Installation - Visual Studio Market Place

https://marketplace.visualstudio.com/items?itemName=gojimmypi.gojimmypi-gcode-language-extension

Installation - Manual install with source code

Find the location of your VSIXInstaller.exe, typpically in .\Common7\IDE\ of Developer Command Prompt. Shown is an example of VS2017 Enterprise:

c:
cd \workspace
git clone https://github.com/gojimmypi/GcodeLanguageExtension.git
cd GcodeLanguageExtension
msbuild GcodeLanguage.csproj
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe"  C:\workspace\GcodeLanguageExtension\bin\Release\GcodeLanguage.vsix

For VS 2015:

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\VSIXInstaller.exe"  C:\workspace\GcodeLanguageExtension\bin\Release\GcodeLanguage.vsix

Removal

"C:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\VSIXInstaller.exe" /uninstall:TBD TODO

Testing

Open the project and press F5 to launch an experimental versional of Visual Studio.

Modifications

Tips

Ensure the CopyLocal is set to false for all project references.

Notes

[ – minimum version inclusive.

] – maximum version inclusive.

( – minimum version exclusive.

) – maximum version exclusive.

TODO

Case Sensitivity

There seems to be a disagreement between various sources as to whether G-Code is case senstiive. According to RS274/NGC Interpreter - Version 3, page 23:

"Input is case insensitive, except in comments, i.e., any letter outside a comment may be in upper or lower case without changing the meaning of a line."

Resources

Looking at:

Other Stuff

Releases

No releases published

Packages

No packages published