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 9K
  • Win 5K
  • OS X 3K
  • Linux 2K
Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12
Windows 6 12 17 17 17 18 22 16 10 14 12 16 13 13 10 12 12 17 24 13 20 8 11 19 14 22 24 49 9 7 12 8 15 13 14 16 12 19 23 15 17 15 7 17 7 17
OS X 0 1 8 10 6 6 7 6 3 2 7 2 7 8 3 3 8 3 7 4 4 1 0 4 3 5 3 9 7 6 6 11 9 2 2 10 10 8 32 2 7 1 1 2 3 5
Linux 0 2 5 7 8 0 5 5 3 6 6 6 5 4 3 4 5 4 7 5 4 8 5 4 3 3 6 14 5 2 3 6 3 5 5 5 1 10 10 7 4 8 0 5 5 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