Skip to content

slunecniborecek/consolewrap

 
 

Repository files navigation

ConsoleWrap for JS

Summary

This plugin places your selected variable in console.log as console.log('variable' , variable).

The plugin inserts coffeescript console.log 'variable', variable in CoffeeScript files (require Better CoffeeScript plugin)

THIS IS NOT A SNIPPET.

Screenshots

ScreenShot

ScreenShot

Install

Git Clone

Clone this repository in to the Sublime Text "Packages" directory, which is located where ever the "Preferences" -> "Browse Packages" option in sublime takes you.

Key Binding

The default key binding is "ctrl+shift+q".

Key Binding Conflicts

Unfortunately there are other plugins that use "ctrl+shift+q", this is a hard problem to solve. If consolewrap doesn't work, then you have two options:

  1. Add {"keys": ["ctrl+shift+q"], "command": "consolewrap"} to your user keybindings file. This will override anything specifid by a plugin.
  2. Find the offending plugin, and change the shortcut in its sublime-keymap file (will revert on updates).

Usage

First you need to select a variable and press "ctrl+shift+q". The console.log line will appear on the next line.

You can Also remove all console.logs from your selsection or from all document


About

Console log selected variable

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%