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) 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" } ]