ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Console Wrap for js

by David Bekoyan ST2/ST3

Console log selected variable

Details

Installs

  • Total 8K
  • Win 4K
  • OS X 3K
  • Linux 2K
Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5 Jan 4 Jan 3 Jan 2 Jan 1 Dec 31 Dec 30 Dec 29 Dec 28 Dec 27 Dec 26 Dec 25 Dec 24 Dec 23 Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4
Windows 0 17 15 7 17 7 17 8 9 11 5 10 11 6 11 11 6 6 4 6 9 14 12 9 6 6 10 8 9 12 5 6 9 14 2 12 14 10 7 8 10 14 12 14 11 3
OS X 0 7 1 1 2 3 5 6 8 12 6 2 7 7 7 9 4 3 2 3 2 1 6 1 1 1 7 5 7 8 7 5 4 5 9 6 9 8 4 2 3 5 6 3 3 1
Linux 0 4 8 0 5 5 2 1 6 6 3 3 4 7 1 1 4 5 1 0 3 3 5 3 2 3 3 1 6 1 2 1 3 3 6 5 3 4 1 3 6 4 7 1 9 2

Readme

Source
raw.​githubusercontent.​com

ConsoleWrap for JS

Summary

This plugin places your selected variable in console.log as console.log('variable' , variable); javascript only. 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