Auto Logger Log is a VS Code extension designed to streamline the process of generating debug logs. It automatically generates print statements for selected variables, making it easier to log and debug code. The extension supports popular programming languages such as Java, Python, JavaScript, Go, and Rust.
- Java: Generates
System.out.printlnstatements tailored to variable types. - Python: Creates
printstatements for variables. - JavaScript/TypeScript: Produces
console.logstatements for variables. - Go: Supports the generation of
fmt.Printlnlog statements. - Rust: Provides
println!log macros.
-
Smart Variable Handling
- Automatically detects variable types (strings, numbers, booleans, arrays, etc.).
- Generates language-specific print statements for logging variables.
-
Line Number Integration
- Logs the line number alongside the variable name for easy identification of where variables are used.
-
Cross-Platform Compatibility
- Works out of the box without additional configuration.
- Supports Windows, Linux, and macOS development environments.
-
Customizability
- Shortcut keys are configurable to suit individual development preferences.
- Open VS Code.
- Go to the Extensions Marketplace and search for Auto Logger Log.
- Click Install.
- Select a variable in your code.
- Press the default shortcut
Ctrl + Alt + P(Windows/Linux) orCmd + Alt + P(macOS). - The extension will automatically insert a language-appropriate print statement below the selection.
const myVariable = 42;
const anotherVariable = "Hello";
// User selects `myVariable`https://marketplace.visualstudio.com/items?itemName=zhangfengboLogger.AutoLogger&ssr=false#overview