____
| __ ) __ _ _ __ _ __ ___ _ __
| _ \ / _` | '_ \| '_ \ / _ \ '__|
| |_) | (_| | | | | | | | __/ |
|____/ \__,_|_| |_|_| |_|\___|_| _
/ ___|___ _ __ ___ _ __ ___ ___ _ __ | |_ ___
| | / _ \| '_ ` _ \| '_ ` _ \ / _ \ '_ \| __/ __|
| |__| (_) | | | | | | | | | | | __/ | | | |_\__ \
\____\___/|_| |_| |_|_| |_| |_|\___|_| |_|\__|___/ fixAn update on an old favourite, to accommodate .mjs, .spec.js and .cy.js.
Select one or more lines of text you want to turn into a banner heading. Open the VS Code command palette with Ctrl-Shift-P or Cmd-Shift-P, and then use the following commands.
-
"Apply <h1|h2|h3> font": Text is transformed into one of the heading fonts, which default to h1=Coder Mini, h2=Standard and h3=Future Smooth.

-
"Set <h1|h2|h3> font": Change which figlet fonts to use for the 3 heading levels
You can select from the full list of figlet fonts.
- "Apply from list"
Or you can make a short list of favorites and select from that.
-
"Add to favorites"
-
"Apply from favorites"
NOTE: Also supports multi-line selections:
This extension contributes the following settings:
banner-comments.h1: "<figlet font name>"banner-comments.h2: "<figlet font name>"banner-comments.h3: "<figlet font name>"banner-comments.favorites: [ <figlet font name>, ... ]banner-comments.figlet.horizontalLayout: "<default | full | fitted | controlled smushing | universal smushing>"banner-comments.figlet.verticalLayout: "<default | full | fitted | controlled smushing | universal smushing>"
- Set default fonts to h1=Univers, h2=Standard, h3=Mini
- Use
constinstead ofletwhere possible - Improved ReadMe
- Improved ReadMe
Fixes:
- Added support for Cypress test files: .spec.js
- Added support for ES6 modules: .mjs Forked from version by Daniel-Junior Dube and IMFUZZ
Fixes:
- Fixed the package.json so the extension keeps working on newer vscode engines
- Code refactoring/simplification
Features:
- Apply from list: Opens the list of all available figlet fonts and applies the selected one.
- Add/Remove to favorites: Choose a font to add to/remove from the list of favorite fonts.
- Apply from favorites: Opens the list of favorite fonts and applies the selected one.
Settings:
- banner-comments.figlet.horizontalLayout: Figlet configuration providing 5 different layouts affecting the width of the font. See more details here: https://www.npmjs.com/package/figlet#user-content-horizontallayout
- banner-comments.figlet.verticalLayout: Figlet configuration providing 5 different layouts affecting the height of the font. See more details here: https://www.npmjs.com/package/figlet#verticallayout
- banner-comments.favorites: List of favorited fonts.
- Updated README to clarify default fonts behaviour
- Updated default font for h1 to "Coder Mini"
- Updated default font for h3 to "Future Smooth"
- Fixed indentation issues where only the first line was indented correctly.
- Converted apply and set font to "apply hfont" and "set h font" with h1, h2 and h3.
- Code cleaned and removed unused dependencies.
- Now detects and uses the file's comment tags to wrap the banner text! (Uses the blockComment to wrap the text or puts lineComments in front of each line)
- Auto-trims whitespaces from the end of each line of the banner.
Initial release of the 'Banner comments' extension.
