vscode formatter, 배열 줄 바꿈 하지 않기 설정
배열 줄 바꿈 하지 않기 설정
vscode javascript formatter beautify setting,
https://github.com/HookyQR/VSCodeBeautify
현재 포매팅 상황
// good
const _BOOK_INFO1 = {
2015: {
"mid": {
1: {
"pub1": ["park", "song", ],
},
},
},
};
// bad
const _BOOK_INFO2 = {
2015: {
"mid": {
1: {
"pub1": [
["park", 0],
["song", 0],
],
},
},
},
};
하지만 나는 _BOOK_INFO2 도 _BOOK_INFO1 처럼 한줄로 정렬하고 싶다
아래 처럼 formatteing 하려면 beautify formater 설정의 어떤 값을 변경해야 하나?
// good
const _BOOK_INFO2 = {
2015: {
"mid": {
1: {
"pub1": [["park", 0], ["song", 0], ],
},
},
},
---------------------------------------
.jsbeautifyrc 파일
"keep_array_indentation": true, <===============