I'm using the Visual Studio Code. I never want autocomplete functions with semicolon in JS.
Like when I type log TAB, it appears console.log(); with semicolon at the end.
How can I stop auto-complete semicolon at the end of JS functions.
CodePudding user response:
Go to Preferences of VSCode and search the semicolons. Then select ignore option.

CodePudding user response:
To make VSCode insert console.log({}) instead of console.log({}); when you type log and then press tab, you need to edit the snippet's body.
- Press shift command p and type
snippets - Select
Preferences: Configure User Snippets - Select
console.log().code-snippets - Change line 23 from
"console.log({$0});"to"console.log({$0})"
