Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Instant PrintNew to Visual Studio Code? Get it now.
Instant Print

Instant Print

MuhanandYifan

|
1,153 installs
| (0) | Free
A simple time saving tool
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Instant Print

This is a simple print statement generator that will generate a simple print statement in corresponding programming language.


Features

By simply typing out !p at desired line in your file, this generator will automaticly generate a print statement with current file name and line number in the current programming language.

Java Sample

javaPrint

C++ Sample

cppPrint

C Sample

cPrint

Supported Languages

  • Coffeescript
  • C
  • C++
  • C#
  • F#
  • Go
  • Groovy
  • Java
  • JavaScript
  • JavaScript React
  • Objective-C
  • Objective-C++
  • Perl
  • PHP
  • Python
  • R
  • Ruby
  • Rust
  • Swift
  • TypeScript
  • TypeScript React

Release Notes

1.0.0

Initial release of Print Statement Generator

Contributors

Name Email
Muhan Li muhancanada@gmail.com
Yifan Wang cufewangyifan@qq.com

Enjoy!

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