Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Logit - logger shortcuts for javascript & typescriptNew to Visual Studio Code? Get it now.
Logit - logger shortcuts for javascript & typescript

Logit - logger shortcuts for javascript & typescript

Aniket Batabyal

|
108 installs
| (0) | Free
A vs code extension to act as a shortcut to clean logs in javascript / typescript applications
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Custom Snippets for Visual Studio Code

Overview

This repository contains custom code snippets for Visual Studio Code (VSCode) to streamline your development process. These snippets are designed to enhance productivity by providing quick access to commonly used code patterns.

Installation

To use these snippets, follow these steps:

  1. Clone or download this repository to your local machine.

  2. Copy the snippet files (ending with .json) into your VSCode snippets directory.

    • Windows: %APPDATA%\Code\User\snippets
    • macOS: ~/Library/Application Support/Code/User/snippets
    • Linux: ~/.config/Code/User/snippets
  3. Restart VSCode for changes to take effect.

Snippets List

cl - Log a message and an object to the console

console.log('$1', $2);

Use this snippet to quickly log a message and an object to the console.

cw - Log a warning message and an object to the console

console.warn('$1', $2);

This snippet is useful for logging warning messages and an object to the console.

ce - Log an error message and an object to the console

console.error('$1', $2);

This snippet helps in logging error messages and an object to the console.

ci - Log an informational message and an object to the console

console.info('$1', $2);

Use this snippet to log informational messages and an object to the console.

cd - Log a debug message and an object to the console

console.debug('$1', $2);

This snippet assists in logging debug messages and an object to the console.

ca - Log an assertion message and an object to the console

console.assert($1, $2);

Use this snippet to log assertion messages and an object to the console.

Usage

To insert a snippet into your code:

  1. Open a JavaScript or TypeScript file in VSCode.
  2. Type the snippet prefix (e.g., cl or cw).
  3. Press Tab to expand the snippet.

Contributing

Contributions are welcome! If you have any useful snippets to share or improvements to existing ones, feel free to open a pull request.

License

This project is licensed under the MIT License.

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