Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>console_pathNew to Visual Studio Code? Get it now.
console_path

console_path

RakeshG

|
185 installs
| (0) | Free
"A snippet to get the line and path with console_log"
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

console-path README

This extension is primarily useful for debugging with console log. Deliberate Error is genereated from which line no and file path are fetched. Prettier formatter don't format this line because of presence of "prettier-ignore" statement at the end.

Demo

Features

There are 3 snippets:
1.Type "cl" to see for console log statement in available autocompletions (if autocompletion isn't visible for some reason, press "ctrl+space" to trigger it)
2.Type"cll" for console logging current line
3.Type "clp" for console logging current filepath which can be clicked and soon it moves to the editor where this line pasted.

"Tab" can be used to move to the appropriate positions as shown in the gif video.

1.0.3 - Video fix

1.0.0 [10.09.2022]

  • Initial release

Enjoy!

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft