Skip to content

Commit f405405

Browse files
committed
Updated README.md with keybindings details
1 parent d4129a1 commit f405405

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

README.md

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,24 @@ To remove console.logs:
2323
* Press Cmd+Shift+D
2424
* This will delete all console.log statements in the current document
2525

26+
## Keybindings
27+
28+
Default keybindings for all platforms:
29+
30+
| Command | Mac | Windows | Linux | Default |
31+
| :-------------------------------: | :---------: | :---------: | :----------: | :----------: |
32+
| Insert console.log | shift+cmd+l | shift+win+l | shift+meta+l | shift+ctrl+l |
33+
| Delete all console.log | shift+cmd+d | shift+win+d | shift+meta+d | shift+ctrl+d |
34+
35+
Above shortcuts can be easily customised via the `keybindings.json` file.
36+
37+
| Command | Command ID |
38+
| :-------------------------------- | -------------------------------- |
39+
| Insert console.log | extension.insertLogStatement |
40+
| Delete all console.log | extension.deleteAllLogStatements |
41+
42+
More details about customising shortcuts can be found in [VS Code documentation](http://code.visualstudio.com/docs/getstarted/keybindings#_customizing-shortcut)
43+
2644
## To Do
2745
* Add support for other console.* methods (warn, error, time, timeEnd, etc)
2846
* Add ability to delete console.* across project (currently just the open file)

0 commit comments

Comments
 (0)