Backtic-logAdd Log to Next Line VSCode Extension This VSCode extension allows you to insert a custom log statement to the next line of your code, making it easier to debug or trace variable values. It automatically grabs the filename, current function name, and selected text to generate the log. FeaturesInsert Log to Next Line: Automatically adds a log statement to the next line of code. Formatted Log: Inserts a formatted log in the format:
KeybindingsWindows: Ctrl + Alt + L macOS: Cmd + Alt + L Linux: Ctrl + Alt + L InstallationOpen VSCode. Navigate to the Extensions Marketplace (Ctrl + Shift + X or Cmd + Shift + X on macOS). Search for Add Log to Next Line and click Install. Alternatively, you can clone this repository and install it manually. UsageSelect the text or place the cursor where you want to insert a log. Press the defined keybinding for your platform (Ctrl + Alt + L on Windows/Linux or Cmd + Alt + L on macOS). A log statement will be inserted on the next line in the following format:
Your cursor will automatically move to the end of the log. LicenseThis extension is licensed under the MIT License. See LICENSE for details. |