Skip to content

Added snippet for async named function. #88

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

pramodkandel
Copy link

Added snippet for async function because I need it a lot for what I'm doing (I have more async functions than sync). For shortcut, I have it as "asnfn", which is consistent with other functions where "fn" keyword is a suffix. If I could have, I'd have changed all function-based snippets to have "fn" as prefix instead of suffix, but can't change that now. Or can we? ;)

@arun0808rana
Copy link

arun0808rana commented May 24, 2023

This is going to really help with puppeteer syntax in nodejs.

Till this gets merged you can use user snippet in your codium

"async const function": {
"prefix": "asnfn",
"body": [
"const ${1:name} = async (${2:params}) =>{",
" ${3}",
"}"
],
"description": "async const function"
}

Source: https://github.com/pawelgrzybek/snippet-generator

@MarivateBasani
Copy link

PERFECT!

@MarivateBasani
Copy link

Added snippet for async function because I need it a lot for what I'm doing (I have more async functions than sync). For shortcut, I have it as "asnfn", which is consistent with other functions where "fn" keyword is a suffix. If I could have, I'd have changed all function-based snippets to have "fn" as prefix instead of suffix, but can't change that now. Or can we? ;)

#88 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants