Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
]
Expand Down