๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
javascript/๐Ÿ‘€ tips

๋งฅ๋ถ ์ดˆ๊ธฐ ์„ธํŒ… ๊ธฐ๋ก

by HomieKim 2023. 8. 15.

๋งฅ๋ถ ์„ธํŒ…

1.ํ™ˆ๋ธŒ๋ฃจ ์„ค์น˜

ํ™ˆ๋ธŒ๋ฃจ ํ™ˆํŽ˜์ด์ง€ ๋“ค์–ด๊ฐ€์„œ ์ปค๋งจ๋“œ ๋ถ™์—ฌ๋„ฃ๊ธฐ

   /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

(์„ค์น˜ํ•  ๋•Œ Xcode command Line ์„ค์น˜ํ•˜๋ƒ๊ณ  ๋ฌผ์–ด๋ณด๋ฉด ์—”ํ„ฐ๋ˆŒ๋Ÿฌ์„œ ์„ค์น˜ํ•˜๊ณ  ํ„ฐ๋ฏธ๋„์— echo ~~ ์ด๋Ÿฐ๊ฑฐ ๋ณต๋ถ™ํ•จ)

2.ํ•„์š”ํ•œ ํŒจํ‚ค์ง€ ๋ฐ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜ ์„ค์น˜

Brew install โ€”cask ํ•˜๋ฉด ๋งฅ์šฉ ์–ดํ”Œ๋ฆฌ์ผ€์ด์…˜์„ ์„ค์น˜ํ•  ์ˆ˜ ์žˆ์Œ

brew install โ€”cask visual-studio-code google-chrome slack iterm2

Brew install ํ•˜๋ฉด ํŒจํ‚ค์ง€ ์„ค์น˜ ๊ฐ€๋Šฅ

Brew install node ๋กœ node ์„ค์น˜

brew install yarn โ€”ignore-dependencies

node ๋นผ๊ณ  yarn ์„ค์น˜

brew install gh

์œผ๋กœ git ๋„ ์„ค์น˜

3.ํ„ฐ๋ฏธ๋„ ์ปค์Šคํ…€

Item์—์„œ Appearance > General : Theme : Minimal
Profiles > Session ์—์„œ status bar enabled : ํ•„์š”ํ•œ๊ฑฐ active
Iterm color skin : After glow
https://iterm2colorschemes.com/
์—ฌ๊ธฐ์„œ ๋‹ค์šด๋ฐ›์œผ๋ฉด ๋จ

Oh my zsh ์„ค์น˜

sh -c "$(curl -fsSL https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"

์„ค์น˜ ํ›„ powerlevel10k ์„ค์น˜

git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k

์„ค์น˜ํ•˜๊ณ 

code ~/.zshrc ๋“ค์–ด๊ฐ€์„œ
ZSH_THEME="powerlevel10k/powerlevel10k" ์ˆ˜์ • ํ•˜๊ณ  ์„ค์ •

Zsh-autosuggestions

git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

Syntax-hightlighting ํ”Œ๋Ÿฌ๊ทธ์ธ ์„ค์ •

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

code ~/.zshrc ๋“ค์–ด๊ฐ€์„œ

plugins=(
  git
  zsh-autosuggestions
  zsh-syntax-highlighting
)

4.VS code ์„ค์ •

ํ„ฐ๋ฏธ๋„ ํฐํŠธ ์„ค์ •
Setting > terminal font ๊ฒ€์ƒ‰ > integrated font : MesloLGS NF

์—๋””ํ„ฐ ์ฝ”๋“œ๋Š” D2 ๋กœ ๋ฐ”๊ฟˆ

  1. ์ต์Šคํ…์…˜ ์„ค์น˜
  • Auto Import
  • Auto Rename Tag
  • Code Spell Checker
  • Material Theme Icon
  • CSpell Tech Updater
  • Error lens
  • git Graph
  • HTML CSS Support
  • eslint
  • prettier
  • vscode-styled-components

๋“ฑ๋“ฑ..
2. ์—๋””ํ„ฐ ์„ธํŒ…

  "files.autoSave": "afterDelay",
  "editor.tokenColorCustomizations": {
    "comments": "#FFC2C2"
  },
  "editor.formatOnSave": true,
  "explorer.compactFolders": false,
  "editor.codeActionsOnSave": {
    "source.fixAll.eslint": true
  },
  "typescript.updateImportsOnFileMove.enabled": "always",
  "eslint.validate": [
    "javascript",
    "javascriptreact",
    "typescript",
    "typescriptreact"
  ],
  "javascript.updateImportsOnFileMove.enabled": "always",
  "eslint.workingDirectories": [
    {
      "mode": "auto"
    }
  ],
  "eslint.codeAction.showDocumentation": {
    "enable": true
  },

์„ธ์ด๋ธŒ ๋ช…๋ น์–ด ์ปจํŠธ๋กค + s ๋กœ ๋ณ€๊ฒฝ
-> ์„ธํŒ… ํƒญ์—์„œ ๋ฐ”๋กœ๊ฐ€๊ธฐ ํ‚ค ์—ฌ๊ธฐ์„œ ๋ณ€๊ฒฝ

์—ฌ๊ธฐ๊นŒ์ง€ ๊ธฐ๋ณธ ์„ธํŒ…...

  • ์นด๋ผ๋น„๋„ˆ ์„ค์น˜ํ•ด์„œ ํ•œ์˜ํ‚ค ๋ฐ”๊พธ๊ธฐ..
  • ๋งˆ๊ทธ๋„ท ์„ค์น˜...

๋Œ“๊ธ€