Skip to content

0r0loo/quick-log

Repository files navigation

Quick Log

Build Version License

Read this in Korean (한국어)

Quick Log is a JetBrains IDE plugin that helps you insert styled console.log statements quickly. It supports multi-cursor functionality, includes file name and line number in output, and streamlines debugging for JavaScript/TypeScript developers.

Features

Quick Log plugin provides an easy way to add console.log statements for debugging JavaScript/TypeScript code:

  • Auto-insert styled console.log statements after selecting a variable
  • Include current file name and line number in the log output
  • Use multi-cursor template when no text is selected
  • Automatically maintain proper indentation

Usage

  1. Select the variable or text you want to log in your code.
  2. Press the shortcut key Alt+L (default).
  3. A console.log statement for the selected variable will be automatically inserted below the current line.

Examples

When you select the variable userName and press the shortcut:

const userName = "John";
console.log('fileName.js:2 | userName : ', userName);

When you press the shortcut without selecting anything:

console.log('fileName.js:5 | ', );

In this state, multi-cursors are activated, allowing you to type text at label and value positions simultaneously.

Installation

  1. Search for "Quick Log" in the JetBrains IDE plugin marketplace.
  2. Click the Install button.
  3. Restart your IDE.

Configuration

You can change the plugin shortcut in the IDE settings:

  1. Go to Settings/Preferences > Tools > Quick Log Settings.
  2. Enter your desired shortcut combination (e.g., ctrl shift L).
  3. Save the settings and restart the IDE.

System Requirements

  • JetBrains IDEs: IntelliJ IDEA, WebStorm, PhpStorm, PyCharm, etc.
  • IDE versions 242.* or higher (2024.2+)

Contributing

Bug reports and feature requests are welcome through GitHub issues. Pull requests are also appreciated.

License

This project is distributed under the MIT License. See the LICENSE file for more details.

Developer Information

Made with ❤️ by 0r0loo

Changelog

For the latest changes, please refer to the CHANGELOG.md file.

Additional Resources

About

Instant console.log generator for WebStorm. Just hit a shortcut and debug like a pro.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages