unknownuser88 / consolewrap Goto Github PK
View Code? Open in Web Editor NEWThis plugin helps you to work easily with log statements
License: MIT License
This plugin helps you to work easily with log statements
License: MIT License
Is it possible to make it customizable ?
So it can be one of the following options
console.log
console.debug
console.info
console.warn
console.error
Is it possible to add a setting for semicolon insertion too?
ST3 Console
Traceback (most recent call last):
File "D:\Progs\Sublime_Text\sublime_plugin.py", line 574, in run_
return self.run(edit)
File "consolewrap in D:\Progs\Sublime_Text\Data\Installed Packages\Console Wrap for js.sublime-package", line 76, in run
NameError: global name 'is_log_statement' is not defined
Is there a way to put the console.log above the currently selected text?
In IE9 to 6 console.log is really a problem
remove all console.log is good
I suggest add another option like comment all console log
and perhaps add an option like do it automatically after save a file
please select file types that need to support (ex. .vue
)
Hi, somehow the Jasmine plugin defines it's own scope. Is there some way for this plugin to support .spec.js files that the Jasmine plugin (or others like it) has defined within it's purview?
ST3: Build 3126
OS: Win7
I'm not sure if this is by design or not.
If you have multiple console logs with the same thing/value being logged it adds "//" the same number count of the identical logs. This it turn affects when you "Remove commented logs" or "Remove All logs" by only removing the first one preceding the log. It does this for both JS and PHP (haven't tested Python). Otherwise everything works good.
console.log("foo");
console.log("bar");
console.log(foo);
console.log(bar);
console.log(foo);
console.log("bar");
console.log("bar");
// // // console.log("bar");
// // console.log(foo);
// console.log(bar);
// // console.log(foo);
// // // console.log("bar");
// // // console.log("bar");
// //
//
//
// //
// //
Hello, just getting a small error. Removing the trailing comma in my settings file fixed it, but otherwise I couldn't run the plugin.
error: Error trying to parse settings: Trailing comma before closing bracket in C:\Users\...\Console Wrap\.sublime\consolewrap.sublime-settings:8:5
Traceback (most recent call last):
File ".\sublime_plugin.py", line 362, in run_
return self.run(edit)
File ".\console_wrap.py", line 111, in run
File ".\console_wrap.py", line 83, in runCommand
ValueError: zero length field name in format
How to add support for (TypeScript => Super Set of JavaScript) .ts files ?
source.ts.unittest
- typescript unit test
"source.ts.unittest": "js"
Subj.
Hello
Question: How can i use this plugin inside Vue component or other <script> tag needed parts?
For Feature Request possible to support Console wrap for vscode ?
Hello, i think for a new update you can add a setting for indent spaces, when we use your plugin :)
Installed Console Wrap plugin and it was working fine till now but suddenly it stopped working (using Control + Shift + q keyboard shortcut ) and it gives error in gutter
Console Wrap: not work in this file type source.js.dom
my file extension is .js and using es6 syntax..
can someone shed light how to fix that? I have restarted the ST3 but no affect.
I am not sure, but I am thinking that this feature was working before:
If I put cursor at the middle of the word, then press Ctrl+Alt+Q I am expecting to have the correct console.log
message.
Steps to reproduce:
let abcd = 2
;let
and copy it to the clipboard;abcd
(let ab|cd = 2
);Actual result:
New line appeared with current clipboard content:
console.log('let', let);
Expected result:
New line apperead (based on configuration):
console.log('abcd', abcd);
It'd save a couple keystrokes if it'd automatically selected the string after it writes code
Hello,
your package has just updated and stopped working after that.
nothing else was changed.
I select any variable, press ctrl+shift+q and that's what I see in console:
Traceback (most recent call last):
File "/Applications/Sublime Text.app/Contents/MacOS/sublime_plugin.py", line 812, in run_
return self.run(edit, **args)
File "consolewrap in xxx/Library/Application Support/Sublime Text 3/Installed Packages/Console Wrap for js.sublime-package", line 130, in run
File "consolewrap in xxx/Library/Application Support/Sublime Text 3/Installed Packages/Console Wrap for js.sublime-package", line 74, in is_log_string
TypeError: 'NoneType' object is not subscriptable
Currently when you select a variable that is on an existing console.* line and press the shortcut buttons you expect to get the selected variable in a new console.log above the current line.
Instead it goes through the different console.log/error/info/etc. options for the current line.
Expectation is to do that only when nothing is selected on the current line. When anything is selected it should exhibit the default behavior.
Add the ability to show file path in the generated log. Maybe we could control it via settings such as:
"consoleStr": "{path} ~ {title}, {variable}"
Hi!
The new shortcut super+shift+q
is being overridden by macOS global shortcut (cmd+shift+q
) to log out the current user. The readme still says ctrl+shift+q
so I suspect this was an unintentional change?
It would be great if it worked only in .js, .coffee, .es, .jsx files, since it's weird to try to console.log
in ruby file for example
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.