sachinsmc / turbo-rust-println

This extension make debugging much easier by automating the operation of writing meaningful log message in rust.

Home Page:https://marketplace.visualstudio.com/items?itemName=sachinsmc.turbo-rust-println

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Main Functionality


This extension make debugging much easier by automating the operation of writing meaningful log message.

Inspired from : https://github.com/Chakroun-Anas/turbo-console-log

Features


I) Insert meaningful log message automatically

Two steps:

  • Selecting the variable which is the subject of the debugging

  • Pressing ctrl + alt + L

The log message will be inserted in the next line relative to the selected variable like this:

fmt.Println("SelectedVariableEnclosingClassName -> SelectedVariableEnclosingFunctionName -> SelectedVariable", SelectedVariable)

alt text

Multiple cursor supported.

Properties: It still uses turboConsoleLog for settings will be replaced in future.

  • turboConsoleLog.wrapLogMessage (boolean): Whether to wrap the log message or not.

  • turboConsoleLog.logMessagePrefix (string): The prefix of the log message (default one is 🚀 ).

  • turboConsoleLog.addSemicolonInTheEnd (boolean): Whether to put a semicolon in the end of the log message or not.

  • turboConsoleLog.insertEnclosingClass (boolean): Whether to insert or not the enclosing class of the selected variable in the log message.

  • turboConsoleLog.insertEnclosingFunction (boolean): Whether to insert or not the enclosing function of the selected variable in the log message.

  • turboConsoleLog.delemiterInsideMessage (string): The delimiter that will separate the different log message elements (file name, line number, class, function and variable)

  • turboConsoleLog.includeFileNameAndLineNum (boolean): Whether to include the file name and the line number of the log message.

  • turboConsoleLog.quote (enum): Double quotes (""), single quotes ('') or backtick(``).

Participate


You're more than welcome to participate in the development of the extension by creating pull requests and submitting issues, link of the project in github: https://github.com/sachinsmc/turbo-rust-println

License

MIT

Enjoy!

About

This extension make debugging much easier by automating the operation of writing meaningful log message in rust.

https://marketplace.visualstudio.com/items?itemName=sachinsmc.turbo-rust-println


Languages

Language:TypeScript 99.3%Language:JavaScript 0.7%