๋ฐ˜์‘ํ˜•

prettier 1

[Intellij] Prettier ์ ์šฉ ์˜ค๋ฅ˜ ํ•ด๊ฒฐ ๋ฐฉ๋ฒ•, ๊ณ ์น˜๋Š” ๋ฐฉ๋ฒ•

Intro ์ธํ…”๋ฆฌ์ œ์ด Intellij ์—์„œ prettier ์„ค์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์— ๋Œ€ํ•ด ์•Œ์•„๋ณด๋„๋ก ํ•˜๊ฒ ์Šต๋‹ˆ๋‹ค. ์ œ ๊ฒฝ์šฐ ์ด๋ฏธ prettier ํ”Œ๋Ÿฌ๊ทธ์ธ๊ณผ ํ•„์š”ํ•œ dependency, ๊ทธ๋ฆฌ๊ณ  prettierrc.js ํŒŒ์ผ๋„ ์ด๋ฏธ ์ƒ์„ฑ์„ ํ–ˆ์Šต๋‹ˆ๋‹ค. ํ•˜์ง€๋งŒ prettier ์ ์šฉ์ด ์ œ๋Œ€๋กœ ๋˜์ง€ ์•Š์•˜์Šต๋‹ˆ๋‹ค. ์ฐธ๊ณ ! Prettier ํ”„๋ฆฌํ‹ฐ์–ด๋Š” ์ผ์ข…์˜ ์ฝ”๋“œ formatter ์ž…๋‹ˆ๋‹ค. ํ”„๋ฆฌํ‹ฐ์–ด๋ฅผ ์‚ฌ์šฉ ์‹œ ์ผ๊ด€๋œ ์ฝ”๋“œ ์Šคํƒ€์ผ์„ ์œ ์ง€ํ•  ์ˆ˜ ์žˆ์Šต๋‹ˆ๋‹ค. ์˜ˆ๋กœ ๋“ค์—ฌ์“ฐ๊ธฐ, ์ค„ ๋ฐ”๊ฟˆ ๋„ˆ๋น„ ๋“ฑ์˜ ์„ค์ •์ด ์žˆ์Šต๋‹ˆ๋‹ค. How to do ๊ตฌ๊ธ€๋ง์„ ํ•ด๋ณด๋‹ˆ, ์ œ๊ฐ€ ๋†“์ณค๋˜ ์„ค์ •์ด ํ•˜๋‚˜ ์žˆ์—ˆ์Šต๋‹ˆ๋‹ค. ๋ฐ”๋กœ ์ธํ…”๋ฆฌ์ œ์ด ๋‚ด๋ถ€ IDE ์•ˆ์—์„œ Prettier ์„ค์ •์„ ํ•ด์ค˜์•ผ ํ•œ๋‹ค๋Š” ๊ฒƒ์ด์—ˆ์Šต๋‹ˆ๋‹ค. Preferences > Languages & Frameworks > ..

๋ฐ˜์‘ํ˜•