Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>Lean SnippetNew to Visual Studio Code?Β Get it now.
Lean Snippet

Lean Snippet

IceyWu

|
326 installs
| (2) | Free
🌈 Generate useful snippets!
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Lean Snippet

Code snippet manager & log toolkit for VS Code.

VS Code Marketplace

English | δΈ­ζ–‡

Features

  • Snippet management β€” browse, add, import/export snippets from the sidebar
  • Multi-language β€” JS, TS, Vue, HTML built-in; supports custom languages
  • Log tools β€” insert named console.log, bulk delete all logs
  • Keybinding editor β€” view and customize shortcuts in the panel

demo

Keyboard Shortcuts

Shortcut Action
Ctrl+Shift+L Insert log with selected variable
Ctrl+Shift+/ Choose log type to insert
Ctrl+Shift+D Delete all log statements in file

Mac: replace Ctrl with Cmd. All shortcuts are customizable in the panel.

Log Examples

// Select `text`, press Ctrl+Shift+L β†’
console.log("🍧-----text-----", text);

// Press Ctrl+Shift+D β†’ all console.log removed

Snippet Reference

JavaScript / TypeScript

Prefix Description
lre Async request pattern
lret Request with try-catch
lcl console.log with variable
laf Arrow function
lif If-else
lsw Switch-case
lcc JSDoc comment
linterface TS interface
ltype TS type alias
ltsfunc TS function
lclass TS class
lenum TS enum
ltrycatch Try-catch block

Vue 3

Prefix Description
lvc Component template
lvb Base template
lref ref()
lrea reactive()
lcom computed()
lwa / lwe watch / watchEffect
lmo / lun onMounted / onUnmounted
lvem / lvpr / lvde defineEmits / defineProps / defineExpose

HTML

Prefix Description
lrem English placeholder text
lremc Chinese placeholder text
lremn Numeric placeholder text

Install

  1. Search Lean Snippet in the VS Code Extensions panel
  2. Or install from Marketplace

License

MIT Β© 2023-PRESENT Icey Wu

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