console-log is a simple and smart helper function that makes logging and debugging easy. New Config options added
ctrl-alt-l(Linux/Windows) - Generates a console.log with identifier if text/variable is selected, and empty console.log if no text is selected.
ctrl-alt-o(Linux/Windows) - Generates a console.log with text/variable within a JSON.stringify method.
Note:- This functionality will only work for selected text
ctrl-alt-c(plain insert) or
ctrl-alt-s(JSON.stringify insert) - For logging in the chrome dev tools console, you can choose to enable text styling for the identifier
You can install this package from the CLI or from the Editor.
apm install console-log
Atom > Preferences > Install > Search for console-log in Packages
console.log()insert, if you can select to have
console.log('TEST')inserted, which will show up as the code run past it.
If you see any bugs in this package or if you have any additional features that you would like, please add an issue to this repo and I will look to resolve it.
Good catch. Let us know what about this package looks wrong to you, and we'll investigate right away.