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: vscode/asperheader/README.md
+16-1Lines changed: 16 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -104,7 +104,13 @@ AsperHeader contributes the following settings:
104
104
|`asperheader.randomLogo`| boolean |`false`| Insert a random ASCII logo on each header generation. |
105
105
|`asperheader.extensionIgnore`| array |`[]`| File extensions to ignore when saving. |
106
106
|`asperheader.useWorkspaceNameWhenAvailable`| boolean |`false`| Use the workspace name when available. |
107
-
|`asperheader.projectDescription`| string | "" | The description to use instead of asking the user every time. |
107
+
|`asperheader.projectDescription`| string |`""`| The description to use instead of asking the user every time. |
108
+
|`asperheader.languagePrepend`| object |`{}`| If set, and language is matched, will put the text specified in the string in front of the comment during the initial generation of the header. example for python: `{"python": "r"}`, example for bash scripts: `{"bash":"#!/usr/bin/env bash\n"}`|
109
+
|`asperheader.languageAppend`| object |`{}`| If set, and language is matched, will append the text specified in the string after the comment during the initial generation of the header. Useful for adding formatting or boilerplate. example: `{"python": "\n# Code begins"}` to add a separator comment after the header |
110
+
|`asperheader.languageSingleLineCommentOverride`| object |`{}`| Specify an override of your choice for the single line comment to be used when it's specified language (name is case insensitive) is matched. example: `{"idris":"\|\|\|"}` instead of the default '--' |
111
+
|`asperheader.languageMultiLineCommentOverride`| object |`{}`| Specify an override of your choice for the multiline comment to be used when it's specified language (name is case insensitive) is matched. example: `{"c":["/*","**","*/"]}`|
112
+
|`asperheader.removeTrailingHeaderSpaces`| boolean |`true`| Toggle wether to remove trailing whitespaces from the lines in the header that might contain them due to the generation (i.e: a space after the `LOGO:` due to there being a newline instead of text) |
113
+
|`asperheader.preferSingleLineComments`| boolean |`false`| Prefer using the single line comments when available for the language instead of the multiline version |
108
114
109
115
---
110
116
@@ -239,6 +245,15 @@ The extension currently supports the following languages:
239
245
240
246
- Fix issue of bulk saving only updating the open file.
241
247
248
+
### 1.0.18
249
+
250
+
- Add an option to specify a character to add before the header based on the language (during initial header generation)
251
+
- Add an option to specify a character to add after the header based on the language (during initial header generation)
252
+
- Add an option to toggle between single and multi line comments preference (during initial generation)
253
+
- Add an option to override the comment used for single line comments per language (during initial generation)
254
+
- Add an option to override the comment used for multiline comments per language (during initial generation)
255
+
- Fix issue where version 1.0.17 would add extra lines between single line comments in the header
0 commit comments