๋๋ ๋ค์์ ํ์ ์กฐํฉ์ ์ป๊ณ ์ถ์ต๋๋ค.
"wrap-attributes": "force-aligned",
"wrap-line-length": 120
๋ด ์ค์ด ์ค ๋ฐ๊ฟ ๊ธธ์ด์ ๋๋ฌํ๋ฉด ์ ์ฒด ์ค์ ์ค ๋ฐ๊ฟํ๊ณ ์ด์ ์ค๊ณผ ์ ๋ ฌํด์ผ ํฉ๋๋ค.
๋ฏธํํ๊ธฐ ์ ์ ์ฝ๋๋ ๋ค์๊ณผ ๊ฐ์์ต๋๋ค.
<p-dataTable
[value]="data"
[(selection)]="selectedRows"
(selectionChange)="onSelectionChange($event)"
[editable]="editable"
[selectionMode]="settings.selectionMode"
[resizableColumns]="settings.resizable"
[reorderableColumns]="settings.reorderable"
responsive="true"
scrollable="true"
scrollHeight="550px"
[lazy]="settings.lazy"
[totalRecords]="totalRecords"
[paginator]="settings.paginator"
[rows]="settings.paginator?.rowsPerPage || 10">
</p-dataTable>
ํด๋น ๊ธฐ๋ฅ์ผ๋ก ๋ฏธํํ ํ ์ฝ๋๋ ๋ค์๊ณผ ๊ฐ์์ผ ํฉ๋๋ค.
<p-dataTable [value]="data" [(selection)]="selectedRows" (selectionChange)="onSelectionChange($event)" [editable]="editable"
[selectionMode]="settings.selectionMode" [resizableColumns]="settings.resizable" [reorderableColumns]="settings.reorderable"
responsive="true" scrollable="true" scrollHeight="550px" [lazy]="settings.lazy" [totalRecords]="totalRecords"
[paginator]="settings.paginator" [rows]="settings.paginator?.rowsPerPage || 10">
</p-dataTable>
+1, ๋์ ๋ด ํ์ ๋์ผํ ๊ธฐ๋ฅ์ด ํ์ํ๋ฉฐ ์ฌ๊ธฐ์์ ์์ฒญํ ๊ฒ๊ณผ ๋์ผํ ๊ธฐ๋ฅ์ธ ๊ฒ ๊ฐ์ต๋๋ค. https://github.com/beautify-web/js-beautify/issues/1262
VSCode github์์ ์์ฒญํ ์ด ์ ํํ ๊ธฐ๋ฅ๋ ๋ณด์์ต๋๋ค: https://github.com/Microsoft/vscode/issues/2204 (๋ง์ง๋ง ์ฝ๋ฉํธ)
๋๋ ์์ค ์ฝ๋๋ฅผ ์ฝ๊ฐ ๊ฐ์ง๊ณ ๋์๊ณ ์๋ํ๋ ๊ฒ์ฒ๋ผ ๋ณด์ด๋ ๋ช ๊ฐ์ง ๊ตฌํ์ด ์์ต๋๋ค: "wrap_attributes" - "aligned"์ ๋ํ ์๋ก์ด ์ต์ ์ ์ค ๊ธธ์ด์ ๋๋ฌํ์ง ์๋ ํ ์์ฑ์ ๊ฐ์ ๋ก ๋ํํ์ง ์๊ณ ๋ค์๊ณผ ๊ฐ์ด ์ ์ ํ๊ฒ ์ ๋ ฌํฉ๋๋ค. ์ค์ด ๊ฐ๊ฒจ์์ต๋๋ค.
@bitwiseman, ์ด์ ๊ฐ์ ๊ฒ์ด ์๋ํ ์ ์์ต๋๊น?
๊ทธ๋ ๋ค๋ฉด ์ธ๋ถ ์ฌํญ์ ๋ ผ์ํ๊ฑฐ๋ PR์ ์ด ์ ์์ต๋๋ค. (๊ทธ๋ฌ๋ ์์งํ ๋งํด์, ๋๋ ์ ํํ ์คํ ์์ค ์ ๋ฌธ๊ฐ๊ฐ ์๋๋ฉฐ ํ ์คํธ์ ํ์ด์ฌ ๋ฒ์ ๋ฑ์ ๋ํด ์ฝ๊ฐ ํผ๋์ค๋ฌ์ํฉ๋๋ค.) ๊ธ์, html beautifier๋ ํ์ด์ฌ์ ์กด์ฌํ์ง ์์ผ๋ฏ๋ก ์๋ง๋ ๋ฌธ์ ๊ฐ๋์ง ์์ ๊ฒ์ ๋๋ค :) ์ง์นจ์ ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค!
@cheerypick
์ด๋ฅผ ๊ตฌํํด ์ฃผ์
์ ๊ฐ์ฌํฉ๋๋ค.
์, HTML ๋ฏธํ ๋ณ๊ฒฝ์ ๋ํ Python ๋ฒ์ ์ ๋ํด ๊ฑฑ์ ํ ํ์๊ฐ ์์ต๋๋ค. ํด๋น ๋ชจ๋์ ๋ํ Python ๊ตฌํ์ ์์ง ์์ต๋๋ค.
ํ
์คํธ๋ฅผ ์ํด ๋น๋๋ฅผ ์คํํ ์ ์๊ณ ๋ก์ปฌ์์ ์๋ํ๋์ง ํ์ธํ์ญ์์ค. ๊ทธ๋ฐ ๋ค์ test/data/html/tests.js๋ฅผ ์
๋ฐ์ดํธํ์ญ์์ค. ๋น๋๋ฅผ ๋ค์ ์คํํ๋ฉด ํด๋น ๋ฐ์ดํฐ ํ์ผ์์ ์คํ ๊ฐ๋ฅํ ํ
์คํธ๊ฐ ๋ค์ ์์ฑ๋ฉ๋๋ค. #1158 ์์ ์ด์ ๋ํ ์๋ฅผ ๋ณผ ์ ์์ต๋๋ค. ๋ช ๊ฐ์ง ๊ฐ๋จํ ํ
์คํธ๋ฅผ ๋จผ์ ์๋ํ๊ณ ์ถ๋ค๋ฉด ๊ด์ฐฎ์ต๋๋ค. matrix
ํ
์คํธ ์์ฑ์ด ์๋ํ๋ ๋ฐฉ์์ ์ดํดํ ์ ์๋ค๋ฉด test/data/html/tests.js#L323 ์ ์์ฑ ๋ฉ ํ
์คํธ์ ์ ๊ฐ์ ์ถ๊ฐํ์ญ์์ค.
์ด๋ค ๊ฒฝ์ฐ์ด๋ ์ธ์ ๋ ์ง ์์ ๋กญ๊ฒ PR์ ์์ํ๋ฉด ๊ทธ๊ณณ์์ ๋ ผ์ํ ์ ์์ต๋๋ค.
๋ค์ ํ๋ฒ ๊ฐ์ฌํฉ๋๋ค.
(๋น์ ์ด ํ์ํ๋ค๊ณ ์๊ฐํ๋ ์ถ๊ฐ ์ง์นจ์ผ๋ก CONTRIBUTING.md๋ฅผ ์ ๋ฐ์ดํธํ ์ํฅ์ด ์๋ค๋ฉด ๊ทธ๊ฒ๋ ๊ฐ์ฌํ ๊ฒ์ด์ง๋ง ํ์๋ ์๋๋๋ค.)
@cheerypick - ๋ํ ์ค๋ณต์ ์ง์ ํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค. #1262์์ ์ด ํ ๋ก ์ ๊ณ์ํ์ญ์์ค.
์ด์ ๋ํ ์ฐธ๊ณ ์ฌํญ: ์ ๋ ์ค์ ๋ก ์ด ๋ ์ค์ ์ ์กฐํฉ์ ์ฐพ๊ณ ์์์ง๋ง ์ด์ ์ ์๋ ์์ ๊ฐ์ต๋๋ค. ๋ด๊ฐ ํ์ํ ๊ฒ์ VSCode๊ฐ ์์ฑ์ ๊ทธ๋๋ก ๋๊ณ ์์๊ฐ 120๋ณด๋ค ๊ธธ์ด์ง๋ฉด ์์ฑ์ ์ ์ค์ ์ ๋ ฌํ๋ค๋ ๊ฒ์ด๋ฏ๋ก ๋ด๊ฐ ์ํ๋ ๊ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
<div class="form-check form-group row">
<label class="custom-control custom-checkbox" id="referral-filter-checkbox-label">
<input type="checkbox" class="custom-control-input" id="referral-filter-checkbox" ng-checked="$ctrl.filterReferralsRx | async : this" ng-click="$ctrl.toggleFilterReferrals()">
<input type="checkbox" class="custom-control-input"
id="referral-filter-checkbox"
ng-checked="$ctrl.filterReferralsRx | async : this"
ng-click="$ctrl.toggleFilterReferrals()">
<span class="custom-control-indicator"></span>
<span class="custom-control-description text-nowrap">{{ 'MODEL.INBOX.ACTION.FILTER' | translate }}</span>
</label>
</div>
์๊ฒ:
<div class="form-check form-group row">
<label class="custom-control custom-checkbox" id="referral-filter-checkbox-label">
<input type="checkbox"
class="custom-control-input"
id="referral-filter-checkbox"
ng-checked="$ctrl.filterReferralsRx | async : this"
ng-click="$ctrl.toggleFilterReferrals()">
<input type="checkbox" class="custom-control-input"
id="referral-filter-checkbox"
ng-checked="$ctrl.filterReferralsRx | async : this"
ng-click="$ctrl.toggleFilterReferrals()">
<span class="custom-control-indicator"></span>
<span class="custom-control-description text-nowrap">{{ 'MODEL.INBOX.ACTION.FILTER' | translate }}</span>
</label>
</div>
๋ ๋ฒ์งธ ์ ๋ ฅ์ 120์๋ณด๋ค ๊ธธ์ง ์๊ณ ์ด๋ฏธ ์ ๋ ฌ๋์ด ์๊ธฐ ๋๋ฌธ์ ์์ฑ์ ๊ทธ๋๋ก ๋์ด์ผ ํฉ๋๋ค.
๋ฐ๋ผ์ ๋ด๊ฐ ๋ณด๊ณ ์ถ์ ๊ฒ์ ํ ๋์ ์ฌ๋ฌ ์ค๋ก ์ ๋ ฌ๋์ด ์๋์ง ํ์ธํ๊ณ ์ค์ด 120์๋ฅผ ๋์ ๋ ์ฌ๋ฌ ์ค๋ก ์ง์ ํ๋ ๊ฒ์ ๋๋ค.
Visual Studio(Code ์๋)๋ ๊ธฐ๋ณธ์ ์ผ๋ก ์ด๋ฌํ ๋ฐฉ์์ผ๋ก HTML ํ์์ ์ง์ ํฉ๋๋ค(์ ๋ ฌ๋์ง๋ง ๊ฐ์ ๋์ง๋ ์์). ์ฝ๋๋ ํ ์ ์๋ค๋ฉด ์ข์ ๊ฒ์ ๋๋ค.
๋ด html ํ ํ๋ฆฟ ์ฝ๋๊ฐ ๋๋ฌด ๊ธธ์ด์ง์ง ์๋๋ก ๊ธฐ๋ฅ์ ์ถ๊ฐํ์ญ์์ค.
์ด๊ฒ์ ๋งค์ฐ ๋ฐ๋์งํฉ๋๋ค. @cheerypick ์์ง ํ๋ณดํ ์๊ฐ์ด์ ๊ฐ์?
VSCode์์ ์๋ํ์ง ์์ต๋๋ค.
.vue ํ์ผ์์
ํ์ฅ: ๋ ์๋ป์, Vetur
:-(
@christoferd
๋ฌด์จ ๋ง์ธ์ง ๋ชจ๋ฅด๊ฒ ์ผ๋ฉด ๋น๊ณต๊ฐ ์ด์์ ๋๊ธ์ ๋ฌ์ง ๋ง๊ณ gitter ์ฑ๋์์ ์ฑํ
ํ์ธ์.
VScode๋ฅผ ์ต์ ๋ฒ์ ์ผ๋ก ์ ๋ฐ์ดํธํ ํ ์ด ๋ฌธ์ ๋ฅผ ๋ค์ ๋ณด์์ต๋๋ค. Mac OS High Sierra์ ๋ฒ์ 1.30.2. ์๋์ผ๋ก ์ค์ ๋์๊ณ ๊ฐ์๊ธฐ ๋ด ์ฝ๋๊ฐ ๋ํ์ ์์ํฉ๋๋ค. ๊ฐ์ ๋ก ์ ๋ ฌ์ ์๋ํ์ง๋ง ์๋ํ์ง ์์ต๋๋ค.
@aybhalala @christoferd ๋น์ ์ด ๋ณด๊ณ ์๋ ๊ฒ์ ๋ํด ๊ตฌ์ฒด์ ์ผ๋ก ๋ง์ํด ์ฃผ์ญ์์ค. gitter์์ ์ฑํ ํ๊ฑฐ๋ ์ ๋ฌธ์ ๋ฅผ ์ฝ๋๋ค.
@bitwiseman ์ฃ์กํฉ๋๋ค. Prettier ํ๋ฌ๊ทธ์ธ์ ๋ฌธ์ ๊ฐ ์๋ค๋ ๊ฒ์ ๋ฐฉ๊ธ ์์๋์ต๋๋ค. ์๋ตํด ์ฃผ์ ์ ๊ฐ์ฌํฉ๋๋ค.
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
์ด์ ๋ํ ์ฐธ๊ณ ์ฌํญ: ์ ๋ ์ค์ ๋ก ์ด ๋ ์ค์ ์ ์กฐํฉ์ ์ฐพ๊ณ ์์์ง๋ง ์ด์ ์ ์๋ ์์ ๊ฐ์ต๋๋ค. ๋ด๊ฐ ํ์ํ ๊ฒ์ VSCode๊ฐ ์์ฑ์ ๊ทธ๋๋ก ๋๊ณ ์์๊ฐ 120๋ณด๋ค ๊ธธ์ด์ง๋ฉด ์์ฑ์ ์ ์ค์ ์ ๋ ฌํ๋ค๋ ๊ฒ์ด๋ฏ๋ก ๋ด๊ฐ ์ํ๋ ๊ฒ์ ๋ค์๊ณผ ๊ฐ์ต๋๋ค.
์๊ฒ:
๋ ๋ฒ์งธ ์ ๋ ฅ์ 120์๋ณด๋ค ๊ธธ์ง ์๊ณ ์ด๋ฏธ ์ ๋ ฌ๋์ด ์๊ธฐ ๋๋ฌธ์ ์์ฑ์ ๊ทธ๋๋ก ๋์ด์ผ ํฉ๋๋ค.
๋ฐ๋ผ์ ๋ด๊ฐ ๋ณด๊ณ ์ถ์ ๊ฒ์ ํ ๋์ ์ฌ๋ฌ ์ค๋ก ์ ๋ ฌ๋์ด ์๋์ง ํ์ธํ๊ณ ์ค์ด 120์๋ฅผ ๋์ ๋ ์ฌ๋ฌ ์ค๋ก ์ง์ ํ๋ ๊ฒ์ ๋๋ค.