skip to content

Search

Print anything in any language!

Print X is an extension that can insert any log in any programming language. It works out of the box and is highly customizable. With simple configuration, it can become an indispensable and faithful companion in your programming. View and copy the configuration file snippet to your extension, and you will have the same printing effect.

function main() {
	const hello = "Hello World!"
	console.log("⚡ [src/index.js:2] ➤ hello:", hello);
}
#!/bin/bash
func(){
    hello="Hello World!"
    echo "🐚 [src/bash.sh:2] ➤ hello: $hello"
}
fn main(){
    hello="Hello World!"    
    println!("🦀 [src/rust.rs:2] ➤ {}: {:?}", "hello", hello);
}
def main():
    hello = "Hello World!"
    print(f"🐍 [src/python.py:2] ➤ hello: {hello}")
public class Main {
    public static void main(String[] args) {
        String hello = "Hello World!";
        System.out.println("☕ [src/java.java:3] ➤ hello: " + hello);       
    }
}
#include <iostream>
#include <string>
int main() {
    std::string hello = "Hello World!";    
    std::cout << "🔧 [src/c++.cpp:4] ➤ hello: " << hello << std::endl;
    return 0;
}
using System;
class Program {
    static void Main() {
        string hello = "Hello World!";
        Console.WriteLine($"🔷 [src/c#.cs:4] ➤ hello: {hello}");       
    }
}
def main
    hello = "Hello World!"   
    puts "💎 [src/ruby.rb:2] ➤ hello: #{hello}"
end
{ // You can define your programming language and print snippets through simple configuration
"filetype":[".js",".ts",".mjs",".jsx",".tsx"],
"langPrefix":"⚠️",
"langComment":"//",
"template":"console.warn(`${langPrefix} ${lineNumber}] ➤ ${variable}:`, ${variable});"
}

Just press a shortcut, and the variable at the cursor is automatically printed on the next line.

Snippets List