This extension make debugging much easier by automating the operation of writing meaningful log message.
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:
console.log("SelectedVariableEnclosingClassName -> SelectedVariableEnclosingFunctionName -> SelectedVariable", SelectedVariable)
The log message can be wrapped by changing the value of wrapLogMessage to true in settings.json
If you want the log message to end with a semicolon all you need to do is to set addSemicolonInTheEnd to true in settings.json.
II) Comment all log messages, inserted by the extension, from the current document
All it takes to comment all log messages, inserted by the extension, from the current document is to press alt + shift + c
III) Uncomment all log messages, inserted by the extension, from the current document
All it takes to uncomment all log messages, inserted by the extension, from the current document is to press alt + shift + u
IV) Delete all log messages, inserted by the extension, from the current document
All it takes to delete all log messages, inserted by the extension, from the current document is to press alt + shift + d
Initial release of Turbo Console Log
- New feature: The possibility of wrapping the log message is added
- New feature: Comment all log messages inserted by the extension
- New feature: Uncomment all log messages inserted by the extension
- When requested, only the log messages inserted by the extension will be commented, uncommented or deleted
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/Chakroun-Anas/turbo-console-log
You can contact me on the following mail: [email protected]
MIT © Chakroun Anas
Buying me a coffe will definitely help me to keep working in this project and other open source projects <3
Enjoy!