title: How can I set up VSCode to put curly braces on the same line?
body: <p>By default this</p>
  
  <pre><code>{path: '/post/:postId', component: Post},
  </code></pre>
  
  <p>are converting to this</p>
  
  <pre><code>{
      path: '/post/:postId',
      component: Post
  },
  </code></pre>
  
  <p>How can I disable this behavior?</p>
  
  <p>UPD. I am coding in JavaScript, last time in vuejs with vetur plugin</p>
  
  <p>UPD2. Code expample.</p>
  
  <pre><code>// before
  export default new Router({
    routes: [
      { path: '/', component: Home },
      { path: '/about', component: About },
      { path: '/todo', component: Todo },
    ]
  })
  // after formatting (curly braces are moved on new line)
  export default new Router({
      routes: [{
              path: '/',
              component: Home
          },
          {
              path: '/about',
              component: About
          },
          {
              path: '/todo',
              component: Todo
          },
      ]
  })
  </code></pre>
  
  <p>UPD 3. Maybe Prettier will be useful to solve this task?</p>
  
  <p>UPD 4. In my case, the problem was in the additional plugin for formatting. Beautify was installed as the default option for formatting and all settings for vscode formatter was not working. </p>
  
  <p>The solution is set vscode formatter or prettier by default.</p>
  
  <pre><code>"[javascript]": {
      "editor.defaultFormatter": "esbenp.prettier-vscode",
  },
  </code></pre>
  
  <p>Thanks all. Especially for maven87.</p>