Skip to content

Latest commit

ย 

History

History
169 lines (73 loc) ยท 4.53 KB

vsCode_tips.md

File metadata and controls

169 lines (73 loc) ยท 4.53 KB

Visual studio Code Tips

visual studio code๋ฅผ ์‚ฌ์šฉํ•˜๋ฉด์„œ, ํ•„์š”ํ•œ ๋‚ด์šฉ๋“ค์„ ์ •๋ฆฌํ•˜๋ ค ํ•ฉ๋‹ˆ๋‹ค.

โŒ ๋‹นํ™ฉ์Šค๋Ÿฌ์šด ๊ฒฝ์šฐ

1. ์—๋””ํ„ฐ ์ฐฝ์ด ํ•˜๋‚˜๋กœ ๋ณด์ด๋Š” ๊ฒฝ์šฐ

control + cmd + w ๋กœ ํ† ๊ธ€์„ ํ•ฉ๋‹ˆ๋‹ค.

vscode

2. ํ„ฐ๋ฏธ๋„์—์„œ code . ์ด ์•ˆ ๋จนํžˆ๋Š” ๊ฒฝ์šฐ

vi .zshrc   # ๋งฅ os ์นดํƒˆ๋ฆฌ๋‚˜ ์ดํ›„๋Š” zshrc๋ผ๊ณ  ํ•ฉ๋‹ˆ๋‹น!
code () {
if [[ $# = 0 ]]
then
    open -a "Visual Studio Code"
else
    [[ $1 = /* ]] && F="$1" || F="$PWD/${1#./}"
    open -a "Visual Studio Code" --args "$F"
fi
}

โœ… ์ถ”์ฒœํ•˜๋Š” Extension

1. prettier - code formatter

extension ๊ฒ€์ƒ‰ ์ฐฝ์— prettier ๋ฅผ ์ž…๋ ฅํ•ด์„œ ์„ค์น˜ํ•ฉ๋‹ˆ๋‹ค. image

๊ทธ๋ฆฌ๊ณ , settings์—์„œ editor format on save ๋ฅผ ์ž…๋ ฅํ•ด์„œ ์ฒดํฌ ํ‘œ์‹œํ•ฉ๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด ์ €์žฅํ•  ๋•Œ๋งˆ๋‹ค ์˜ˆ์˜๊ฒŒ ํฌ๋งท์„ ๋งž์ถฐ์ค๋‹ˆ๋‹ค. ๊ทธ๋Ÿฌ๋ฉด ๋์ž…๋‹ˆ๋‹ค. image

*(์—ฌ๊ธฐ๋Š” ์•ˆํ•˜์…”๋„ ๋˜์š”!)* ์ด๋ ‡๊ฒŒ ํ•˜๋ฉด ๋์ด์ง€๋งŒ, settings์—์„œ json ์„ ์ž…๋ ฅํ•˜๊ณ  jsonํŒŒ์ผ์—์„œ ์ง์ ‘ ์ˆ˜์ •๋„ ๊ฐ€๋Šฅํ•ฉ๋‹ˆ๋‹ค. image

image

๊ทธ๋ฆฌ๊ณ ~!!!! ๊ทธ๋ž˜๋„ ์•ˆ๋˜๋Š” ๊ฒฝ์šฐ๊ฐ€ ์žˆ๋‹ค ใ… ใ…œ

settings => default formatter๋ฅผ prettier๋กœ ๋ณ€๊ฒฝํ•˜์ž. (์•„๋งˆ None์ผ ๊ฒƒ์ด๋‹ค.)

image

2. material theme : mattia astorino

์ด๊ฑด ๊ทธ๋ƒฅ ์„ค์น˜๋งŒ ํ•˜๋ฉด ๋ฉ๋‹ˆ๋‹ค.

โœ… ์ €๋งŒ์˜ ์ปค์Šคํ„ฐ๋งˆ์ด์ง•

1. ๋‹จ์ถ•ํ‚ค ์ง€์ •

code --> preference --> keyboard shorcuts

![image-20210526233238912](/Users/sangjin/Library/Application Support/typora-user-images/image-20210526233238912.png)

1) ๋Œ€์†Œ๋ฌธ์ž

  • To uppercase : cmd + k
  • To lowercase : cmd + l

๋‘˜๋‹ค ๊ธฐ์กด์— ๋‹จ์ถ•ํ‚ค๊ฐ€ ๋‹ค๋ฅธ ๊ฒƒ์œผ๋กœ ์„ค์ •๋˜์–ด ์žˆ๊ธฐ๋Š” ํ•˜์ง€๋งŒ, ๋‘˜๋‹ค ์‚ฌ์šฉํ•˜์ง€ ์•Š๋Š” ๋‹จ์ถ•ํ‚ค๋ผ์„œ ๋ฎ์–ด์”Œ์› ์Šต๋‹ˆ๋‹ค.

image

2) ์ฐฝ ์ด๋™

์•„ํ†ฐ์ด๋‚˜ ๋‹ค๋ฅธ ์—๋””ํ„ฐ์—์„œ๋Š” ๋ฐ”๋กœ ๋์—ˆ๋˜๊ฒŒ cmd + ์ˆซ์ž ๋กœ ์—๋””ํ„ฐ ์ด๋™ํ•˜๋Š” ๊ฑฐ์˜€๋Š”๋ฐ, ๊ทธ๊ฒŒ vscode์—์„œ๋Š” control + ์ˆซ์ž ๋กœ ์„ค์ •๋˜์–ด ์žˆ์Šต๋‹ˆ๋‹ค. ๊ทธ๋ž˜์„œ ๋ฐ”๊ฟ”์ค๋‹ˆ๋‹ค.

  • workbench.action.openEditorAtIndex : cmd + ์ˆซ์ž

image

์—๋””ํ„ฐ๋ฅผ ๋งŽ์ด ์ผœ๋†“๊ฒŒ ๋˜๋ฉด, ์™ผ์ชฝ, ์˜ค๋ฅธ์ชฝ์œผ๋กœ๋„ ์ด๋™ํ•˜๊ณ  ์‹ถ์–ด์„œ ๋‹ค์Œ๋„ ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

  • View: Open Next Editor : option + cmd + k
  • View: Open Previous Editor : option + cmd + j

์›๋ž˜๋Š” ๋ฐฉํ–ฅํ‚ค์ธ๋ฐ, j, k๋กœ ํ•˜๋Š”๊ฒŒ ๋” ํŽธํ•ด์„œ ๋ฐ”๊พธ์—ˆ์Šต๋‹ˆ๋‹ค.

3) ํ„ฐ๋ฏธ๋„

  • terminal: create new : cmd + t

2. ํฐํŠธ๋ณ€๊ฒฝ

iterm์—์„œ ์„ธํŒ…ํ–ˆ๋˜๋Œ€๋กœ vscode์—์„œ ํ˜ธํ™˜์ด ๋˜์–ด์„œ ์ข‹์ง€๋งŒ, oh my zsh ์‚ฌ์šฉ์œผ๋กœ vscode์˜ ํ„ฐ๋ฏธ๋„์ด ๊นจ์ง€๋Š” ํ˜„์ƒ์ด ์žˆ์„ ์ˆ˜ ์žˆ๊ธฐ ๋•Œ๋ฌธ์— ํฐํŠธ๋ฅผ ๋ณ€๊ฒฝํ•ฉ๋‹ˆ๋‹ค. (์ €๋Š” iterm์—์„œ D2Coding ์‚ฌ์šฉ ์ค‘)

code --> preference --> settings --> font

image

3. html ์ž๋™ ์™„์„ฑ

  1. html: ๋ฅผ ์น˜๊ณ  ์—”ํ„ฐ๋ฅผ ๋ˆ„๋ฅด๋ฉด, ๋ฐ”๋กœ ๊ธฐ๋ณธ ์„ธํŒ… ์™„๋ฃŒ.

  2. div-class ์‰ฝ๊ฒŒ ์ƒ์„ฑํ•˜๊ธฐ (๋‹ค์Œ์˜ ๊ฒฝ์šฐ .box ์—”ํ„ฐ์น˜๋ฉด ๋. (*2 ํ•˜๊ณ  ์—”ํ„ฐ๋„ ๊ฐ€๋Šฅํ•จ.))

    <div class="box"></div>
  3. span-class ์‰ฝ๊ฒŒ ์ƒ์„ฑํ•˜๊ธฐ (๋‹ค์Œ์˜ ๊ฒฝ์šฐ span.box ์—”ํ„ฐ์น˜๋ฉด ๋.)

    <span class="box"></span>
  4. li.nav__list-item*4>a.nav__list-link๋ฅผ ์น˜๋ฉด

    <li class="nav__list-item"><a href="|" class="nav__list-link">|</a></li>

ํ„ฐ๋ฏธ๋„ default ๋ฐ”๊พธ๊ธฐ (์œˆ๋„์šฐ ๊ธฐ์ค€)

settings -> integrated terminal

image

image