3

VSCode Version:1.20.1 OS Version:windows 10 1709 Steps to Reproduce:

1.When I input fun and press tab,this code will show.

function name(params) {
}  

2.I don't like this snippet.I want to change it, but I can not find a file about this snippet.

What should I do?

1
  • Because I dont need name and params. Commented Mar 18, 2018 at 5:40

1 Answer 1

2

It is a default snippet but you can overwrite it. So assuming javascript, try this in your javascript.json file:

"Function no name": {
    "prefix": "fun",
    "body": [
        "function () {",
        "",
        "}"
    ],
    "description": "Function no name or parameters"
},

Gear icon/User Snippets/choose your language.

Sign up to request clarification or add additional context in comments.

1 Comment

Thank you for your ask,but I still want to change the default snippet.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.