Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>consolens-snippetsNew to Visual Studio Code? Get it now.
consolens-snippets

consolens-snippets

Hackem

|
13 installs
| (0) | Free
consolens-snippets is a collection of useful nippets for enhancing you usability of th Consolens package. Boost your development speed with ready-to-use log templates.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

consolens-snippets

consolens-snippets is a VS Code extension providing a collection of useful snippets for enhancing your productivity while using the Consolens package. This extension offers ready-to-use log templates, helping you boost development speed by quickly inserting commonly used logging code into your JavaScript and TypeScript files.

NPM consolens package: https://www.npmjs.com/package/consolens

Install consolens package by:

npm install consolens
or
yarn add consolens
or
pnpm install consolens

Features

This extension includes a variety of snippets for logging and debugging, tailored specifically for the Consolens package. For more details on all features, visit the Features Documentation.

Release Notes

1.0.5 - Available Snippets

Here are the snippets you can use:

Prefix Snippet Description Language
loginfo Logs an informational message - 3 variants JavaScript, TypeScript
logwarn Logs a warning message - 3 variants JavaScript, TypeScript
logerror Logs an error message - 3 variants JavaScript, TypeScript
loglens Create a log automatically identified JavaScript, TypeScript
consolog Logs a message using Consolens JavaScript, TypeScript
consolens Createas a complete log JavaScript, TypeScript
consolinfo Logs a complete info message JavaScript, TypeScript
consolwarn Logs a complete warning message JavaScript, TypeScript
consolerror Logs a complete error message JavaScript, TypeScript
logcallout Logs a callout message JavaScript, TypeScript
logheader Logs a styled header JavaScript, TypeScript
logh1 Logs a header (H1 style) JavaScript, TypeScript
logh2 Logs a header (H2 style) JavaScript, TypeScript
logh3 Logs a header (H3 style) JavaScript, TypeScript
logh4 Logs a header (H4 style) JavaScript, TypeScript
logh5 Logs a header (H5 style) JavaScript, TypeScript
logdiv Logs a divider JavaScript, TypeScript

Usage

  1. Open a JavaScript or TypeScript file in VS Code.
  2. Start typing one of the prefixes from the list above (e.g., loglens).
  3. Select the snippet from the IntelliSense dropdown or press Tab to expand it.
  4. The first Tab you can use to import consolens package, if not, with ctrl + .
  5. Then you can navigate through the parameters with Tab

The snippet will be inserted at the current cursor location, providing you with a ready-to-use template for your logging needs.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft