All Projects → unknownuser88 → Consolewrap

unknownuser88 / Consolewrap

Licence: mit
This plugin helps you to work easily with log statements

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Consolewrap

sublime-patcher
Bash script for patching/cracking Sublime Text on Linux
Stars: ✭ 20 (-73.33%)
Mutual labels:  sublime-text, sublime-text-3
Coffeescript Sublime Plugin
Syntax highlighting and checking, commands, shortcuts, snippets, compilation and more.
Stars: ✭ 296 (+294.67%)
Mutual labels:  sublime-text, sublime-text-3
CSSFontFamily
CSSFontFamily is a Sublime Text plugin with a collection of font stacks autocomplete.
Stars: ✭ 15 (-80%)
Mutual labels:  sublime-text, sublime-text-3
network tech
Cisco config syntax and snippets for Sublime Text
Stars: ✭ 82 (+9.33%)
Mutual labels:  sublime-text, sublime-text-3
Sublime zk
A SublimeText3 package featuring ID based wiki style links, and #tags, intended for zettelkasten method users. Loaded with tons of features like inline image display, sophisticated tag search, note transclusion features, support for note templates, bibliography support, support for multiple panes, etc. to make working in your Zettelkasten a joy 😄.
Stars: ✭ 408 (+444%)
Mutual labels:  sublime-text, sublime-text-3
sublime-text
Subime Text 相关资源收集整理
Stars: ✭ 62 (-17.33%)
Mutual labels:  sublime-text, sublime-text-3
eRCaGuy dotfiles
.bashrc file, terminal prompt that shows current git branch, Arduino setup, Eclipse setup, git diff with line numbers, helpful scripts, improved Linux productivity, etc.
Stars: ✭ 84 (+12%)
Mutual labels:  sublime-text, sublime-text-3
dotfiles
My personal dotfiles repository
Stars: ✭ 36 (-52%)
Mutual labels:  sublime-text, sublime-text-3
Ayu
🎨🖌 Modern Sublime Text theme
Stars: ✭ 3,933 (+5144%)
Mutual labels:  sublime-text, sublime-text-3
Chromerepl
A Sublime Text plugin to execute JavaScript in Google Chrome
Stars: ✭ 347 (+362.67%)
Mutual labels:  sublime-text, sublime-text-3
Milotic
Color Full Theme for All Text Editors!
Stars: ✭ 23 (-69.33%)
Mutual labels:  sublime-text, sublime-text-3
Sublimeallautocomplete
Extend Sublime autocompletion to find matches in all open files of the current window
Stars: ✭ 906 (+1108%)
Mutual labels:  sublime-text, sublime-text-3
github markdown snippets
GitHub flavored Markdown with plain'ol HTML knowledge! Boom!
Stars: ✭ 23 (-69.33%)
Mutual labels:  sublime-text, sublime-text-3
Nineties
💾 Colors for World Wide Web pioneers
Stars: ✭ 16 (-78.67%)
Mutual labels:  sublime-text, sublime-text-3
alfred-sublime-text
Filter and open your Sublime Text (2 and 3) project files from Alfred.
Stars: ✭ 66 (-12%)
Mutual labels:  sublime-text, sublime-text-3
CodeChampion
Plays epic sound clips when you write epic code on sublime Text!
Stars: ✭ 30 (-60%)
Mutual labels:  sublime-text, sublime-text-3
sublime-live-server
🌍️ Launch a Development Server directly from Sublime Text
Stars: ✭ 49 (-34.67%)
Mutual labels:  sublime-text, sublime-text-3
FileHistory
Sublime Text plugin that keeps track of files which have been recently closed, as well as files that have been recently accessed.
Stars: ✭ 51 (-32%)
Mutual labels:  sublime-text, sublime-text-3
Javascript Completions
JavaScript Completions for sublime text. It helps you to write your scripts more quickly with hints and completions.
Stars: ✭ 341 (+354.67%)
Mutual labels:  sublime-text, sublime-text-3
Javascriptenhancements
JavaScript Enhancements is a plugin for Sublime Text 3. It offers not only a smart javascript autocomplete but also a lot of features about creating, developing and managing javascript projects (real-time errors, code refactoring, etc.).
Stars: ✭ 592 (+689.33%)
Mutual labels:  sublime-text, sublime-text-3

Console Wrap

Release version Stability: Stable Package Control License: MIT

This plugin helps you easily create (comment, remove, show all) log statements (console.log, print etc.)

It places selected variable in log statement like console.log("variable", variable);

This is not a snippet.

Supported languages

  • Javascript
  • Python
  • Php
  • Go

Usage

First you need to select a variable (or put cursor on it) and press "ctrl+shift+q". The log line will appear on the next line. Press "ctrl+shift+q" again to change wrapping (info,warn etc.)

You can Also remove, comment or remove commented log statements from your selsection or from all document you can find that functionality in context menu (right click) or Command Palette (command+shift+p on OS X, control+shift+p on Linux/Windows).

Screenshots

Javascript
Javascript
Python
Python
Php
Php
All Logs
All Logs

Key Binding

The default key binding is "ctrl+shift+q" and "ctrl+shift+alt+q" (insert before selection).

{ 
    "keys": ["ctrl+shift+q"], 
    "command": "console_wrap",
    "args": {"insert_before": false}
},
{ 
    "keys": ["ctrl+shift+alt+q"], 
    "command": "console_wrap",
    "args": {"insert_before": true}
}

Commands

{
    "caption": "Console Wrap: Create logs",
    "command": "console_wrap"
}, {
    "caption": "Console Wrap: Remove logs",
    "command": "console_action",
    "args": {"action": "remove"}
}, {
    "caption": "Console Wrap: Remove Commented logs",
    "command": "console_action",
    "args": {"action": "remove_commented"}
}, {
    "caption": "Console Wrap: Comment logs",
    "command": "console_action",
    "args": {"action": "comment"}
}, {
    "caption": "Console Wrap: Show all logs",
    "command": "console_action",
    "args": {"action": "show_quick_nav"}
}

Settings

{
    "js": {
        "consoleStr"   : "{title}, {variable}", // "{title}, tmpVal = {variable}" to assigne value to temporary parameter output: console.log('title', tmpVal = variable);
        "consoleFunc"  : ["console", "log"],    // You can change default log statement for example ["logger", "info"] output: logger.info('title', variable);
        "single_quotes": false,                 // If true output: console.log('title', variable);
        "semicolon"    : true,                  // If false, will not add semicolon at end of line
        "log_types"    : ["log", "info", "warn", "error"]
    },
    "py": {
        "consoleStr"   : "{title}, {variable}",
        "consoleFunc"  : ["print"],
        "single_quotes": false
    },
    "php": {
        "consoleFunc"  : ["print_r"],   // var_dump or if you have custom logger ["$logger", "debug"] output: $logger->debug($variable);
        "preTag"       : true,          // Put log in pre tag like echo '<pre>'; print_r($variable); echo '</pre>';
        "dieAfterLog"  : false          // echo '<pre>'; print_r($variable); echo '</pre>'; die();
    },
    "go": {
        "consoleStr"   : "{title}, {variable}",
        "consoleFunc"  : ["fmt", "Println"],
        "single_quotes": false,
        "log_types"    : ["Print", "Printf"]
    },
    "fileTypeMap" : {                   // Maps file type to wrapper. For example "text.html.vue": "js" means use js wrapper in vue js files
        "text.html.vue"  : "js",        // php,python,js is included by dafault ("embedding.php": "php", "source.js": "js", "source.python": "py")
        "source.ts"      : "js",
        "source.tsx"     : "js",
        "source.coffee"  : "js",
        "text.html.basic": "js",
        "text.html.blade": "js",
        "text.html.twig" : "js"
    }
}

How to install

With Package Control:

  1. Run “Package Control: Install Package” command, find and install Console Wrap plugin.
  2. Restart Sublime Text editor (if required)

Manually:

  1. Clone or download git repo into your packages folder (in Sublime Text, find Browse Packages... menu item to open this folder)
  2. Restart Sublime Text editor (if required)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].