|
Asper Header
1.0.14
The header injector extension
|
![]()
AsperHeader is a Visual Studio Code extension built primarily for the Asperguide development team. It provides an easy and standardized way to generate, insert, and maintain structured file headers across projects.
Although tailored for Asperguide, it is available on the VS Code Marketplace for anyone who may find it useful.
The source repository can be found here: github.com
You can find the developper documentation here (generated by doxygen): https://asperguide.github.io/asper-header/
AsperHeader: Add a header to the file (Ctrl+Alt+H), for Mac: (Cmd+Alt+H)AsperHeader: Refresh the header (Ctrl+Alt+U), for Mac: (Cmd+Alt+U)AsperHeader: Display a random logo (in a new window) (Ctrl+Alt+Shift+L), for Mac: (Cmd+Alt+Shift+L)AsperHeader: easter egg (Ctrl+Alt+Shift+D), for Mac: (Cmd+Alt+Shift+D)AsperHeader: diplay the author's name (Ctrl+Alt+Shift+A), for Mac: (Cmd+Alt+Shift+A)AsperHeader: To MorseAsperHeader: From MorseBellow is a video demoing the different features of the extension: (sorry for the low quality, github filesize restrictions oblige)
If animation fails to load, click here (gif) or here (mp4) 
None. The extension works out of the box with Visual Studio Code.
AsperHeader contributes the following settings:
| Setting | Type | Default | Description |
|---|---|---|---|
asperheader.extensionName | string | "AsperHeader" | Name of the extension being used. |
asperheader.projectCopyright | string | "(c) Asperguide" | Copyright message for the header. |
asperheader.headerOpenerDecorationOpen | string | "+==== " | Opening text for the header frame. |
asperheader.headerOpenerDecorationClose | string | " =================+" | Closing text for the header frame. |
asperheader.headerCommentSpacing | string | " " | Spacing between the comment symbol and the header text. |
asperheader.telegraphBegin | string | "BEGIN" | Text used for header begin marker. |
asperheader.telegraphEnd | string | "END" | Text used for header end marker. |
asperheader.telegraphBlockStop | string | "/STOP" | Marks the end of a header block section. |
asperheader.telegraphEndOfTransmission | string | "// AR" | End-of-transmission marker. |
asperheader.headerAddBlankLineAfterMultiline | boolean | false | Insert a blank line after multiline blocks. |
asperheader.headerKeyDefinitionSeparator | string | ": " | Separator between key and value in header. |
asperheader.headerLogoKey | string | "LOGO" | Header key for ASCII logo. |
asperheader.headerProjectKey | string | "PROJECT" | Header key for project name. |
asperheader.headerFileKey | string | "FILE" | Header key for file name. |
asperheader.headerCreationDateKey | string | "CREATION DATE" | Header key for creation date. |
asperheader.headerLastModifiedKey | string | "LAST Modified" | Header key for last modified date. |
asperheader.headerDescriptionKey | string | "DESCRIPTION" | Header key for file description. |
asperheader.headerCopyrightKey | string | "COPYRIGHT" | Header key for copyright. |
asperheader.headerTagKey | string | "TAG" | Header key for tags. |
asperheader.headerPurposeKey | string | "PURPOSE" | Header key for purpose section. |
asperheader.headerTimeSeperatorHour | string | ":" | Separator for hours in timestamps. |
asperheader.headerTimeSeperatorMinute | string | ":" | Separator for minutes in timestamps. |
asperheader.headerTimeSeperatorSecond | string | "" | Separator for seconds in timestamps. |
asperheader.headerTimeAndDateSeperator | string | " " | Separator between time and date. |
asperheader.headerDateSeperatorDay | string | "-" | Separator for day in dates. |
asperheader.headerDateSeperatorMonth | string | "-" | Separator for month in dates. |
asperheader.headerDateSeperatorYear | string | "" | Separator for year in dates. |
asperheader.headerLogo | array | [ASCII logo default] | Default ASCII logo array. |
asperheader.maxScanLength | number | 100 | Maximum lines scanned for existing headers. |
asperheader.enableDebug | boolean | true | Enable debug logging. |
asperheader.refreshOnSave | boolean | true | Automatically refresh header on file save. |
asperheader.promptToCreateIfMissing | boolean | true | Prompt to create header if missing. |
asperheader.randomLogo | boolean | false | Insert a random ASCII logo on each header generation. |
asperheader.extensionIgnore | array | [] | File extensions to ignore when saving. |
asperheader.useWorkspaceNameWhenAvailable | boolean | false | Use the workspace name when available. |
asperheader.projectDescription | string | "" | The description to use instead of asking the user every time. |
None so far.
AsperHeader now provides comprehensive multilingual support for user interface messages, error reporting, and interactive elements. Each language includes full translations with culturally appropriate phrasing and proper handling of technical terminology.
The extension currently supports the following languages:
| Language | Locale Code |
|---|---|
| English (US) | en |
| French | fr |
| Italian | it |
| Spanish | es |
| German | de |
| Japanese | ja |
| Korean | ko |
| Russian | ru |
| Portuguese (Brazil) | pt-br |
| Turkish | tr |
| Polish | pl |
| Czech | cs |
| Hungarian | hu |
| Simplified Chinese | zh-cn |
| Traditional Chinese | zh-tw |
Note: If a message is missing in a given language, it will automatically fall back to English (
en) to ensure consistent functionality across all locales.
.tsx file format to the comment identification logicmessageReference.ts in order to support such languagesThis extension follows VS Code Extension Guidelines.
Enjoy using AsperHeader!