DEV Community

Discussion on: VS Code shortcuts and tricks that I wish I knew sooner

_phzn profile image
Kevin Lewis

It might be useful to know that you can do multi-line snippets in VS Code by providing multiple strings to the body array:

"Setup Express & Body Parser": {
    "prefix": "expressBodyParser",
    "body": [
      "const app = require('express')()",
      "const bodyParser = require('body-parser')",
      "app.use(bodyParser.urlencoded({ extended: false }))",