LoginSignup
0
0

More than 5 years have passed since last update.

VSCodeでjsを書いてデストラクチャを改行させないようにするには

Last updated at Posted at 2018-05-03

背景

const {DashButton} = require('win-node-dash-button');

がBeautify fileを行うと、以下のように改行されてしまう。

const {
    DashButton
} = require('win-node-dash-button');

解決方法

.jsbeautifyrcに以下を記述したら、デストラクチャが改行されなくなった

{
  "brace_style": "collapse,preserve-inline",
  // ...
}
0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0