This extension is built to ease inserting log (print) statements while coding.
You can install this awesome extension through:
Launch Quick Open:
Paste the following command and press Enter
.:
ext install universal-console-utils
- Download the
.vsix
file of the latest release from GitHub - Run
code --install-extension universal-console-utils-*.*.*.vsix
in the command line (reference)
Change to your .vscode/extensions
VS Code extensions directory.
Depending on your platform it is located in the following folders:
Clone the Universal Console Utils repository as omergulen.universal-console-utils
:
git clone https://github.com/omergulen/universal-console-utils.git omergulen.universal-console-utils
By default Alt + Shift + L
(Option + Shift + L
for Mac) key combination inserts the most common print statement of the language.
Also, if there is a selection in the editor, it inserts a print statement with that selection. It's like a shortcut for printing variables to the console.
Steps/Status | Issue | Language Support | Functionality Support | Testing |
---|---|---|---|---|
TO-DO | Refactor code | Testing | ||
DONE | Handle multi-selection | Support more languages | ||
TO-DO | Let users to edit config file | Support more functions (delete logs etc.) | ||
TO-DO | Handle back-tick, sing and double quotes | |||
TO-DO | Save/Apply config files to/from Gist's | |||
TO-DO | More configuration |
Bug reports and pull requests are welcome on GitHub at https://github.com/omergulen/universal-console-utils. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct
The repo is available as open source under the terms of the MIT License.