Skip to content

Commit b550844

Browse files
committed
Merge branch 'dev'
2 parents 4874bf5 + 900f62f commit b550844

File tree

6 files changed

+100
-5
lines changed

6 files changed

+100
-5
lines changed
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
// Snippets for developing extensions
3+
4+
"Create Snippet": {
5+
"scope": "json",
6+
"prefix": "snip",
7+
"body": [
8+
"\"$1\": {",
9+
"\t\"scope\": \"gcode\",",
10+
"\t\"prefix\": \"$2\",",
11+
"\t\"body\": [",
12+
"\t\t\"$0\"",
13+
"\t],",
14+
"\t\"description\": \"$3\"",
15+
"}"
16+
],
17+
"description": "Create Snippet"
18+
}
19+
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
[![MIT License](https://badgen.net/badge/license/MIT)](https://opensource.org/licenses/MIT)
44
[![GitHub](https://badgen.net/github/release/appliedengdesign/vscode-gcode-syntax)](https://github.com/appliedengdesign/vscode-gcode-syntax)
5-
[![GitHub Issues](https://badgen.net/github/issues/appliedengdesign/vscode-gcode-syntax)](https://github.com/appliedengdesign/vscode-gcode-syntax/issues)
5+
[![GitHub Issues](https://badgen.net/github/open-issues/appliedengdesign/vscode-gcode-syntax)](https://github.com/appliedengdesign/vscode-gcode-syntax/issues)
66
![Gihub Stars](https://badgen.net/github/stars/appliedengdesign/vscode-gcode-syntax)
77
[![VS Marketplace Installs](https://badgen.net/vs-marketplace/i/appliedengdesign.vscode-gcode-syntax)](https://marketplace.visualstudio.com/items?itemName=appliedengdesign.vscode-gcode-syntax)
88
[![Follow @appliedengdesign](https://badgen.net/twitter/follow/appliedengdes)](https://twitter.com/appliedengdes)

snippets/gcode-snippets.json

Lines changed: 48 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,58 @@
11
{
2+
"G04": {
3+
"scope": "gcode",
4+
"prefix": "G04",
5+
"body": [
6+
"G04 P${0:[Dwell]}"
7+
],
8+
"description": "G04 Dwell"
9+
},
10+
"G43": {
11+
"scope": "gcode",
12+
"prefix": "G43",
13+
"body": [
14+
"G43 Z${1:[Z Loc]} H${0:[Tool Num]}"
15+
],
16+
"description": ""
17+
},
218
"G81": {
319
"prefix": "G81",
420
"scope": "gcode",
521
"body": [
6-
"G81 Z${1:[Depth]} R${2:[Retract Plate]} F${3:[Feed Rate]}",
22+
"G81 X${1:[X Loc]} Y${2:[Y Loc]} Z${3:[Depth]} R${4:[Retract Plane]} F${5:[Feed Rate]}",
23+
" $0",
24+
"G80"
25+
],
26+
"description": "G81 Drill Cycle"
27+
},
28+
"G82": {
29+
"prefix": "G82",
30+
"scope": "gcode",
31+
"body": [
32+
"G82 X${1:[X Loc]} Y${2:[Y Loc]} Z${3:[Depth]} R${4:[Retract Plane]} F${5:[Feed Rate]} P${6:[Dwell]}",
33+
" $0",
34+
"G80"
35+
],
36+
"description": "G82 Drill Cycle w/ Dwell"
37+
},
38+
"G83": {
39+
"prefix": "G83",
40+
"scope": "gcode",
41+
"body": [
42+
"G83 X${1:[X Loc]} Y${2:[Y Loc]} Z${3:[Depth]} R${4:[Retract Plane]} Q${5:[Peck Incr]} F${6:[Feed Rate]}",
43+
" $0",
44+
"G80"
45+
],
46+
"description": "G83 Deep Hole Peck Cycle"
47+
},
48+
"G84": {
49+
"scope": "gcode",
50+
"prefix": "G84",
51+
"body": [
52+
"G84 X${1:[X Loc]} Y${2:[Y Loc]} Z${3:[Depth]} R${4:[Retract Plane]} F${5:[Feed Rate]}",
753
" $0",
854
"G80"
955
],
10-
"description": "G81 Canned Drill Cycle"
56+
"description": "G84 Tapping cycle"
1157
}
1258
}

snippets/general-snippets.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"description": "GOTO Number"
1515
},
1616
"NXXXX": {
17-
"prefix": "N",
17+
"prefix": "sub",
1818
"body": [
19-
"N{1:NNNN}",
19+
"N${1:NNNN}",
2020
" $0",
2121
"M99"
2222
],

snippets/mcode-snippets.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,39 @@
11
{
2+
"Spindle": {
3+
"scope": "gcode",
4+
"prefix": "S",
5+
"body": [
6+
"S${1:[RPM]} M0${2|3,4|}"
7+
],
8+
"description": "Spindle Speed"
9+
},
10+
"M06": {
11+
"scope": "gcode",
12+
"prefix": "M06",
13+
"body": [
14+
"M06 T${0:[Tool Num]}"
15+
],
16+
"description": "M06 Tool Change"
17+
},
18+
"M19": {
19+
"scope": "gcode",
20+
"prefix": "M19",
21+
"body": [
22+
"M19 ${1|P,S|}${0:[Angle]}"
23+
],
24+
"description": "M19 Spindle Orient"
25+
},
226
"M97": {
327
"scope": "gcode",
28+
"prefix": "M97",
429
"body": [
530
"M97 P${2:0000} L${0:1}"
631
],
732
"description": "M97 Local Subprogram Call"
833
},
934
"M98": {
1035
"scope": "gcode",
36+
"prefix": "M98",
1137
"body": [
1238
"M98 P${1:0000} L${0:1}"
1339
],

syntaxes/gcode.tmLanguage.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,11 @@
7171
"operators": {
7272
"patterns": [
7373
{
74+
<<<<<<< HEAD
7475
"match": "(SIN)|(COS)|(TAN)|(ASIN)|(ACOS)|(ATAN)|(LN)|(SQRT)|(MOD)|(EXP)",
76+
=======
77+
"match": "(SIN)|(COS)|(TAN)|(ASIN)|(ACOS)|(ATAN)|(FIX)|(FUP)|(LN)|(ROUND)|(SQRT)",
78+
>>>>>>> added snippets
7579
"name": "support.constant.math.gcode"
7680
},
7781
{

0 commit comments

Comments
 (0)