xabikos / vscode-javascript

Contains the code snippets for JavaScript (ES6) development in VS Code editor
MIT License
328 stars 136 forks source link

add space on both side of declared variables when destruct object and array #83

Open tjx666 opened 3 years ago

tjx666 commented 3 years ago

like format of prettier:

image

For example, dob should change to:

 "destructingObject": {
    "prefix": "dob",
-    "body": "const {${2:propertyName}} = ${1:objectToDestruct};",
+    "body": "const { ${2:propertyName} } = ${1:objectToDestruct};",
    "description": "Creates and assigns a local variable using object destructing"
  },