Skip to content

Commit

Permalink
Updated README.md with keybindings details
Browse files Browse the repository at this point in the history
  • Loading branch information
padamczewski committed Apr 3, 2017
1 parent d4129a1 commit f405405
Showing 1 changed file with 18 additions and 0 deletions.
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

0 comments on commit f405405

Please sign in to comment.