From d4129a1f244679db493df9123c5216339ddc2443 Mon Sep 17 00:00:00 2001
From: Przemyslaw Adamczewski
Date: Mon, 3 Apr 2017 22:30:08 +0100
Subject: [PATCH 1/2] Added keybindings for Windows and Linux
---
package.json | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/package.json b/package.json
index 49753e2..05d55cd 100644
--- a/package.json
+++ b/package.json
@@ -31,12 +31,16 @@
{
"command": "extension.insertLogStatement",
"key": "shift+ctrl+l",
+ "linux": "shift+meta+l",
+ "win": "shift+win+l",
"mac": "shift+cmd+l",
"when": "editorTextFocus"
},
{
"command": "extension.deleteAllLogStatements",
"key": "shift+ctrl+d",
+ "linux": "shift+meta+d",
+ "win": "shift+win+d",
"mac": "shift+cmd+d"
}
]
From f40540599ec37d409e9d815d4f529f282960b31c Mon Sep 17 00:00:00 2001
From: Przemyslaw Adamczewski
Date: Mon, 3 Apr 2017 22:30:26 +0100
Subject: [PATCH 2/2] Updated README.md with keybindings details
---
README.md | 18 ++++++++++++++++++
1 file changed, 18 insertions(+)
diff --git a/README.md b/README.md
index b3194d2..f86fc5e 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,24 @@ To remove console.logs:
* Press Cmd+Shift+D
* This will delete all console.log statements in the current document
+## Keybindings
+
+Default keybindings for all platforms:
+
+| Command | Mac | Windows | Linux | Default |
+| :-------------------------------: | :---------: | :---------: | :----------: | :----------: |
+| Insert console.log | shift+cmd+l | shift+win+l | shift+meta+l | shift+ctrl+l |
+| Delete all console.log | shift+cmd+d | shift+win+d | shift+meta+d | shift+ctrl+d |
+
+Above shortcuts can be easily customised via the `keybindings.json` file.
+
+| Command | Command ID |
+| :-------------------------------- | -------------------------------- |
+| Insert console.log | extension.insertLogStatement |
+| Delete all console.log | extension.deleteAllLogStatements |
+
+More details about customising shortcuts can be found in [VS Code documentation](http://code.visualstudio.com/docs/getstarted/keybindings#_customizing-shortcut)
+
## To Do
* Add support for other console.* methods (warn, error, time, timeEnd, etc)
* Add ability to delete console.* across project (currently just the open file)