Skip to content

VS Code extension to help insert and remove console.* statements

License

Notifications You must be signed in to change notification settings

whtouche/vscode-js-console-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Benjamin WhiteBenjamin White
Benjamin White
and
Benjamin White
Dec 21, 2016
1979c2b · Dec 21, 2016

History

29 Commits
Dec 11, 2016
Dec 11, 2016
Dec 11, 2016
Dec 11, 2016
Dec 11, 2016
Dec 11, 2016
Dec 17, 2016
Dec 21, 2016
Dec 21, 2016
Dec 11, 2016
Dec 21, 2016
Dec 11, 2016

Repository files navigation

vscode-js-console-utils

Easily insert and remove console.log statements, by @whtouche

Installing

This extension is available for free in the Visual Studio Code Marketplace

Usage

With selection:

  • Highlight a variable (or really any text)
  • Press Cmd+Shift+L
  • The output (on a new line) will be: console.log('variable: ', variable);

Without selection:

  • Press Cmd+Shift+L
  • The output (on the same line) will be: console.log();

To remove console.logs:

  • Press Cmd+Shift+D
  • This will delete all console.log statements in the current document

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)
  • When deleting console.*, report how many were deleted, across how many files
  • Allow configuration to only delete certain types of console.* statements

License

MIT License

About

VS Code extension to help insert and remove console.* statements

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published