You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+20-12Lines changed: 20 additions & 12 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,20 +37,24 @@ Here is the default settings...
37
37
```
38
38
[
39
39
{
40
-
"filename": "example.md",
41
-
"filelocation": "${globalStorage}",
42
-
"enable": false,
40
+
"Filename": "example.md",
41
+
"FileLocation": "${globalStorage}",
42
+
"Enable": false,
43
43
"RetainLine": true,
44
-
"insertbefore": "",
45
-
"insertafter": ""
44
+
"InsertBefore": "",
45
+
"InsertAfter": ""
46
+
"TrimTextStart": 5,
47
+
"TrimTextEnd": 38
46
48
},
47
49
{
48
-
"filename": "example.js",
49
-
"filelocation": "${globalStorage}",
50
-
"enable": false,
50
+
"Filename": "example.js",
51
+
"FileLocation": "${globalStorage}",
52
+
"Enable": false,
51
53
"RetainLine": false,
52
-
"insertbefore": "v",
53
-
"insertafter": "-Beta"
54
+
"InsertBefore": "v",
55
+
"InsertAfter": "-Beta"
56
+
"TrimTextStart": 0,
57
+
"TrimTextEnd": 0
54
58
}
55
59
]
56
60
```
@@ -66,10 +70,14 @@ The `"FileLocation":` entry is the path to the file to update. This can be set t
66
70
67
71
`"InsertAfter":` String to insert after the new version string.
68
72
73
+
`"TrimTextStart":` Number of characters to trim from the start of the line with the v-inc macro.
69
74
70
-
To see this extension in operation, open the example files with the command `Version Inc: Edit Example Files`, then enable the example files (Set Enable to true), then run the increment version command to see the results.
75
+
`"TrimTextEnd":` Number of characters to trim from the end of the line with the v-inc macro.
71
76
72
-
Note: The `RetainLine` option was added in v0-0-0-6 so if you have modified the settings file from a previous version you will need to add the line to the settings file (see the example settings above).
77
+
78
+
To see this extension in operation, open the example files with the command `Version Inc: Edit Example Files`, then enable the example files (Set Enable to true), then run the increment version command to see the results. Note that this will increment the version in your package.json file but you can use the command `Version Inc: Decrement Package.json Version` to restore it after you have examined the example files.
79
+
80
+
Note: The `RetainLine`, `"TrimTextStart"` and `"TrimTextStart"` options were added in v0-0-0-6 so if you have modified the settings file from a previous version you will need to add the line to the settings file (see the example settings above).
73
81
74
82
Note: The updated files are not automatically saved. This allows you to review the changes made and to continue making any other changes you require.
constexampleMD="# Example of using Version-Inc in a markdown file\n\n## Change Log\n\n## [v-inc] - ${DATE}\n";
570
+
constexampleMD='# Version-Inc example in a markdown file\n\n'+
571
+
'## Change Log\n\n'+
572
+
'<!-- ## [v-inc] - ${YEAR4}-${MONTHNUMBER}-${DATE} Note: this Line will be preserved -->\n';
545
573
// example.js file
546
-
constexampleJS="//----------------------------------\n// Version-Inc example in a java script file\n//\n// File version: V-INC\n//\n// Product version: v-inc\n//----------------------------------\n";
0 commit comments