Code Monkey home page Code Monkey logo

lean-snippet's Introduction


Lean Snippet

Extensions for Visual Studio Code

Visual Studio Marketplace Version

download πŸš€

English | δΈ­ζ–‡


Using 🌈

KeyBoard Shortcuts 🌈

Cmd+Shift+/

console.log selected text

console.log('🌳result------------------------------>');

Cmd+Shift+L

console.log selected text and val

console.log('🍧-----text-----', val);

Cmd+Shift+D

It will delete all console.log statements in the current document

Usage🌈

Prefix JavaScript Snippet Content
lre 🌈api requset demo
lcl 🌈console.log('🌈-----xxx-----',xxx) // xxx
laf 🌈const func = () => {}
lif 🌈if(){ ... } else{...}
lsw 🌈switch(){ case: break; default: break;}
lcc 🌈/** * @func fnName */

Prefix Vue Snippet Content
lvc 🌈vue3 component template
lvb 🌈 vue base template
lref 🌈 const valName = ref(..)
lrea 🌈 const valName = reactive(..)
lcom 🌈 const valName = computed(..)
lwa 🌈 watch(..)
lwe 🌈 watchEffect(..)
lmo 🌈 onMounted(..)
lbm 🌈 onBeforeMount(..)
lbu 🌈 onBeforeUnmount(..)
lun 🌈 onUnmounted(..)
lvem 🌈 const emit = defineEmits([]);
lvpr 🌈 const props = defineProps({});
lvde 🌈 defineExpose({});

Prefix Vue Snippet html
lrem 🌈lorem of English
lremc 🌈lorem of Chinese
lremn 🌈lorem of num

Shortcut tool for VS Code

With the rapid development and iteration of tools, the testing requirements that need to be addressed are also increasing, with a large number of calls and nesting appearing in the code The probability of collapse is also increasing. In order to solve these problems and reduce repetitive work, we have encapsulated these functions and code blocks in a fast and efficient manner, optimizing the code size and development efficiency, and greatly improving the readability and comprehensibility of the code.

This article introduces a shortcut writing method based on Lean Snippet, which allows us to write in a synchronous manner for rapid development.

Enjoy it to the fullest

License

MIT License Β© 2023-PRESENT Icey Wu

lean-snippet's People

Contributors

iceywu avatar

Stargazers

fyfny avatar Mckinley Ziemann avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.