You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+41-32Lines changed: 41 additions & 32 deletions
Original file line number
Diff line number
Diff line change
@@ -2,26 +2,51 @@
2
2
3
3
This extension wraps the word near your cursor and replaces it as an argument for `console.log`.
4
4
5
-
If needed you can log with a __prefix__ generated from the selected variable _or_ specify your own in an input box.
6
-
7
-
8
5
## Key features
6
+
7
+
* Optimized for keyboard use
9
8
* No selection needed
10
9
* Wrap and replace for fast logging
11
-
* Optimized for keyboard use (less mouse)
12
-
* Keeps the indent when inserting lines
13
-
* Can log variables both with and without prefixed text
14
-
* Wrap and logs selected text if needed
10
+
* Doesn't break indent
11
+
* Can log variables with and without prefixed text
12
+
* Supports custom prefix
15
13
16
-

14
+
> ### Type the variable to log
15
+

17
16
18
-
---
17
+
> ### Log the variable on cursor
18
+

19
+
20
+
> ### Type and log it as a string
21
+

22
+
23
+
> ### Keep your indents
24
+

25
+
26
+
> ### Use custom prefix
27
+

19
28
20
-
## Wrap and replace
29
+
The fastest way to log your variables! Type it and press `Ctrl+Alt+W` + `W`.
21
30
22
-
### _Quick logon the same line_
31
+
Another way to `console.log` your variables is to simply place your **mouse cursor**on them and then wrap them on the line below with `Ctrl+Alt+W` + `Down` or the line above with `Ctrl+Alt+W` + `Up`.
23
32
24
-
> ### Inline
33
+
Does the keyboard shortcuts seem to complex? Don't worry, they feel way more comfortable than they look. :)
34
+
35
+
Also, you are free to rebind all keyboard shortcuts as you want in your workspace and user settings files. :)
36
+
37
+
38
+
## Keyboard shortcuts
39
+
40
+
> ### Log as string
41
+
*Replace the word on your cursor or the selected text*
42
+
43
+
*`Ctrl+Alt+W` + `W`
44
+
45
+
---
46
+
47
+
### Log on current line
48
+
*Replace the variable on the mouse cursor*
49
+
> ### Wrap and replace
25
50
26
51
*`Ctrl+Alt+W` + `W`
27
52
@@ -34,18 +59,10 @@ If needed you can log with a __prefix__ generated from the selected variable _or
34
59
35
60
*`Ctrl+Shift+Alt+W` + `Ctrl+Shift+Alt+W`
36
61
37
-
38
-
These commands will replace with `console.log` on the same line.
39
-
40
-
Use input box if you want to specify a custom prefix.
41
-
42
62
---
43
63
44
-

45
-
46
-
## Insert **down**
47
-
48
-
### _Log on the next line_
64
+
### Insert **down**
65
+
*Insert console.log on the line below*
49
66
50
67
> ### Down
51
68
@@ -60,16 +77,10 @@ Use input box if you want to specify a custom prefix.
60
77
61
78
*`Ctrl+Shift+Alt+W` + `Ctrl+Shift+Alt+Down`
62
79
63
-
64
-
These commands will insert `console.log` on a new line below.
65
-
66
-
67
80
---
68
81
69
-
70
-
## Insert **up**
71
-
72
-
### _Log on the line above_
82
+
### Insert **up**
83
+
*Insert console.log on the line below*
73
84
74
85
> ### Up
75
86
@@ -84,5 +95,3 @@ These commands will insert `console.log` on a new line below.
84
95
85
96
*`Ctrl+Shift+Alt+W` + `Ctrl+Shift+Alt+Up`
86
97
87
-
88
-
These commands will insert `console.log` on a new line above.
0 commit comments