A Visual Studio and VS Code extension that allows developers to generate ASCII art comments using FIGLet fonts. Add beautiful, eye-catching header comments to your code with just a few keystrokes!
- 🎨 Generates ASCII art comments in any programming language
- 🔤 Supports for multiple FIGLet fonts
- ⚙️ Automatically uses the correct comment syntax for different file types
- 📐 Multiple layout modes (Full Size, Kerning, Smushing)
- 🎯 Intelligent character compression with customizable smushing rules
- 💡 Context-aware comment insertion
- ⌨️ Configurable keyboard shortcuts
- Open Visual Studio
- Go to Extensions > Manage Extensions
- Search for "FIGLet Comment Generator"
- Click Download and restart Visual Studio
- Open VS Code
- Press
Ctrl+P(Windows/Linux) orCmd+P(macOS) - Type
ext install FIGLet-comment-generator - Press Enter and reload VS Code
- Place your cursor where you want to insert the ASCII art comment
- Press
Ctrl+Shift+F(Windows/Linux) orCmd+Shift+F(macOS) - Type your text in the input box
- Select a font from the dropdown (optional)
- Press Enter to generate and insert the comment
Input:
Hello, World!
Output (using "small" font):
- C#
/*
* _ _ _ _ __ __ _ _ _
* | || |___| | |___ \ \ / /__ _ _| |__| | |
* | __ / -_) | / _ \_ \ \/\/ / _ \ '_| / _` |_|
* |_||_\___|_|_\___( ) \_/\_/\___/_| |_\__,_(_)
* |/
*/- Visual Basic
' _ _ _ _ __ __ _ _ _
' | || |___| | |___ \ \ / /__ _ _| |__| | |
' | __ / -_) | / _ \_ \ \/\/ / _ \ '_| / _` |_|
' |_||_\___|_|_\___( ) \_/\_/\___/_| |_\__,_(_)
' |/- Python
# _ _ _ _ __ __ _ _ _
# | || |___| | |___ \ \ / /__ _ _| |__| | |
# | __ / -_) | / _ \_ \ \/\/ / _ \ '_| / _` |_|
# |_||_\___|_|_\___( ) \_/\_/\___/_| |_\__,_(_)
# |/Go to Tools > Options > FIGLet Comment Generator to configure:
- Font folder, for additional fonts.
- See examples of the available fonts.
- Open Settings (
Ctrl+,orCmd+,) - Search for "FIGLet"
- Adjust settings as needed
The extension automatically detects the file type and uses the appropriate comment syntax:
- C-style languages (C, C++, C#, Java, JavaScript):
//or/* */ - Python:
# - HTML/XML:
<!-- --> - SQL:
-- - PowerShell:
# - And many more!
The extension is built on a robust FIGLet implementation that includes:
- Full support for the FIGLet font format (.flf)
- Multiple layout modes (FullSize, Kerning, Smushing)
- Comprehensive smushing rules:
- Equal character smushing
- Underscore smushing
- Hierarchy smushing
- Opposite pair smushing
- Big X smushing
- Hardblank smushing
- Efficient string manipulation using StringBuilder
- Thread-safe design
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- FIGLet (http://www.org/) for the original FIGLet specification
- The FIGLet font designers for their creative contributions
- The Visual Studio and VS Code extension ecosystem
If you encounter any issues or have feature requests, please:
Made with ❤️ by Paulo Santos