Giter Club home page Giter Club logo

quicklogutil's Introduction

Quick Log Util

This is an extension for Visual Studio Code that provides a quick and convenient way to insert and delete log statements in your code. The extension supports multiple languages including C#, Python, ShellScript, JavaScript, TypeScript, C++, C, and Rust.

Features

  • Insert log statements for the word under the cursor
  • Insert log statements for highlighted text
  • Delete all log statements in the current document
  • Customizable log statements for each supported language

Usage

  • Install the extension

  • Open a document in one of the supported languages

  • To insert a log statement for the "word" under the cursor:

    • Press Ctrl/Cmd+Shift+L
    • Or press Ctrl/Cmd+Shift+P and run Insert Log Statement

    screenshot

  • To insert a log statement for longer text, highlight the text and:

    • Press Ctrl/Cmd+Shift+L
    • Or press Ctrl/Cmd+Shift+P and run Insert Log Statement

    screenshot

  • The log statement for a specific language can be customized via Settings:

    • {var} represents the variable name that will be logged
    • Either open the UI settings for the extension and modify the Log String for the language you want to customize.
    • Or open the settings editor and add "quickLogUtil.languageLogString": "yourcustomstring" where language is the language you want to customize (e.g. "consoleLogUtils.csharpLogToInsert": "Console.WriteLine($\"{var}: {{var}}\");" )

Settings

The extension provides the following settings:

  • quickLogUtil.unityLogString: Custom log statement for Unity C# projects
  • quickLogUtil.csharpLogString: Custom log statement for C# projects
  • quickLogUtil.pythonLogString: Custom log statement for Python projects
  • quickLogUtil.shellscriptLogString: Custom log statement for ShellScript projects
  • quickLogUtil.javascriptLogString: Custom log statement for JavaScript/TypeScript projects
  • quickLogUtil.cppLogString: Custom log statement for C++ projects
  • quickLogUtil.cLogString: Custom log statement for C projects
  • quickLogUtil.rustLogString: Custom log statement for Rust projects

Known Issues

None at the moment.

Release Notes

1.0.0 Initial release of Quick Log Util

Support

If you have any questions or issues, please open an issue on the Github repository

Contribution

Feel free to submit pull requests or issues on the Github repository

License

This extension is licensed under the MIT license.

quicklogutil's People

Contributors

vvhg1 avatar ziyadboshima avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.