Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>codelineloggerNew to Visual Studio Code? Get it now.
codelinelogger

codelinelogger

Mihir Panchal

|
663 installs
| (2) | Free
CodeLineLogger is a versatile VS Code extension that enables seamless line logging for multiple programming languages, enhancing debugging and analysis capabilities.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

CodeLineLogger VS Code Extension

CodeLineLogger Icon
CodeLineLogger

Welcome to the CodeLineLogger VS Code Extension! This extension enhances your coding experience by allowing you to seamlessly add line logging statements to your code in various programming languages.

CodeLineLogger Icon
Working

Features

  • Effortless Line Logging: With a simple keyboard shortcut, you can wrap the selected line of code in a log statement, making debugging and analysis easier.
  • Multi-Language Support: CodeLineLogger supports multiple programming languages, including JavaScript, Python, Java, C#, Ruby, PHP, Go, Swift, Kotlin, C/C++, Rust, TypeScript, Lua, PowerShell, and Perl.
  • Automatic Formatting: The extension ensures that the log statement retains the original line's indentation, preserving code readability.
  • Smart Log Statements: Depending on the language and context, CodeLineLogger intelligently adds log statements specific to each language, such as console.log in JavaScript, print in Python, or System.out.println in Java.
  • Selective Logging: CodeLineLogger detects if the selected line is a function or object and adjusts the log statement accordingly, omitting quotes for non-string values.
  • Semicolon Handling: The extension takes care of adding or omitting semicolons at the end of log statements based on the language's syntax conventions.

Installation

  1. Launch Visual Studio Code.
  2. Open the Extensions view by clicking on the square icon in the left sidebar or by pressing Ctrl+Shift+X (Cmd+Shift+X on macOS).
  3. Search for "CodeLineLogger" in the Extensions Marketplace.
  4. Click on the "Install" button for the CodeLineLogger VS Code Extension.
  5. Once installed, click on the "Reload" button to activate the extension.

Usage

To wrap a selected line with a log statement using CodeLineLogger, follow these steps:

  1. Select the desired line(s) in the editor.
  2. Press Ctrl+. (Cmd+. on macOS) to wrap the selected line with a log statement.
  3. CodeLineLogger will automatically add the appropriate log statement for the selected programming language, including proper formatting and context-aware behavior.

Website

Please do visit our website for more information at CodeLineLogger
Docker Repository Docker

Feedback and Contributions

Feedback and contributions are highly appreciated! If you encounter any issues, have suggestions for improvements, or would like to contribute to the project, please visit the GitHub repository for the CodeLineLogger VS Code Extension.

License

This extension is released under the MIT License.

Credits

The CodeLineLogger extension was created by Mihir Panchal. Special thanks to the following contributors for their valuable input and support.

Thank you for choosing the CodeLineLogger VS Code Extension! We hope you find it useful and enjoy enhancing your debugging and analysis capabilities with seamless line logging. If you have any questions or need assistance, feel free to reach out. Happy coding!

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