Skip to content
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

Use array on body for better readability #56

Open
camilosw opened this issue Dec 6, 2018 · 0 comments
Open

Use array on body for better readability #56

camilosw opened this issue Dec 6, 2018 · 0 comments

Comments

@camilosw
Copy link

camilosw commented Dec 6, 2018

Instead of using \n on body to break lines like this:

"classConstructorContext": {
  "prefix": "conc",
  "body": "constructor(props, context) {\n\tsuper(props, context);\n\t$0\n}\n",
  "description": "Adds a default constructor for the class that contains props and context as arguments"
},

use an array for better readability:

"classConstructorContext": {
  "prefix": "conc",
  "body": [
    "constructor(props, context) {",
    "\tsuper(props, context);",
    "\t$0",
    "}"
  ],
  "description": "Adds a default constructor for the class that contains props and context as arguments"
},

That way others can contribute easily or use your snippets as a starting point for their owns.

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

No branches or pull requests

1 participant