Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>console.logNew to Visual Studio Code? Get it now.
console.log

console.log

Siveswararao Geddada

|
4,164 installs
| (0) | Free
"Log Selected Text with Console.log":
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Log Selected Text with Console.log Extension

Description

Use the predefined keybinding (e.g., Ctrl+l or Cmd+l on macOS) or right-click and select(Ctrl+l or Cmd+l)

  • The "code-logger" extension for Visual Studio Code allows you to quickly log selected text using console.log statements. This extension simplifies the process of adding temporary logging statements for debugging purposes, making it easier to understand the flow of your code.

Features

  • Select any text in the editor and trigger the command to insert a console.log(selectedText); statement on the next line.
  • Works in various programming languages supported by Visual Studio Code, such as JavaScript, TypeScript, Python, etc.

Installation

  1. Launch Visual Studio Code.
  2. Go to the Extensions view by clicking on the Extensions icon in the Activity Bar on the side of the window.
  3. Search for "Log Selected Text with Console.log" in the Extensions view search box.
  4. Click on the Install button to install the extension.
  5. Reload Visual Studio Code to activate the extension.

Usage

  1. Open a file containing the code you want to log.
  2. Select the text you want to log.
  3. Use the predefined keybinding (e.g., Ctrl+l or Cmd+l on macOS) or right-click and select the "Log Selected Value" command from the context menu.
  4. A new line with console.log(selectedText); will be inserted below the selected text.

Contributing

Contributions are welcome! If you encounter any issues or have suggestions for improvement, please open an issue or submit a pull request on the GitHub repository.

License

This extension is licensed under the MIT License.

Contact

If you have any questions or feedback, you can reach me at Siva-Geddada

Enjoy the extension! Happy coding!

Known Issues

--

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

Initial release of ...

1.0.1

Fixed issue #.

1.1.0

Added features -.


Following extension guidelines

Ensure that you've read through the extensions guidelines and follow the best practices for creating your extension.

  • Extension Guidelines

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

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