์กฐ๊ธ์ด๋ผ๋ ๋ ๋น ๋ฅด๊ฒ Project file์ ์๋ฆฌ๊ฐ๋ฆฌ ํ๊ณ ์ถ์ ๋ง์์ ์ฌ์ฉํ๋ ๋จ์ถํค๋ฅผ ์ ๋ฆฌํด๋ณธ๋ค. ์ธ์ ๊ฐ๋ ๊น๋จน์ผ๋, ๊ทธ๋์์ ๋ด์ผ์ง. ์ด๊ฑด ๊ณ์ํด์ ์ ๋ฐ์ดํธํ๋๋ก ํ๊ฒ ๋ค.
Shortcuts
| Option | Action | Shortcut | note |
|---|---|---|---|
| Xcode | Preference | โ, | |
| File | new > Project | โงโN | |
| new > Playground | โฅโงโN | ||
| Add Files | โฅโA | ||
| View | Show/Hide Navigator | โ0 | |
| Move Navigator Menu | โ1~9 | ||
| Show/Hide Inspector | โโฅ0 | ||
| Move Inspector Menu | โโฅ1~4 | ||
| Reveal in Project Navigator | โงโJ | ํ์ผ ์์น ํ์ | |
| Reveal in Project Navigator | โงโO | ํ์ผ ๋ฐ๋ก ์ด๊ธฐ | |
| (in code) Show Snippets | โงโL | ์ฝ๋ ์ฐฝ์์ Snippet ๋ณด์ฌ์ค | |
| (in storyboard) Show Library | โงโL | UIKit Library ๋ณด์ฌ์ค | |
| Find | Find in workspace | โงโF | |
| Find Selected Symbol in workspace | โโงโF | ํด๋น ๋ณ์๋ฅผ ์ฌ์ฉํ๊ณ ์๋ ์ฐพ์์ค (text๊ฐ ์๋ symbol) | |
| Find Call Hierachy | โโงโH | ํด๋น ํจ์์ ํธ์ถ ๊ณ์ธต์ ๋ณด์ฌ์ค | |
| Find | โF | ||
| Find and Replace | โฅโF | ||
| Find Next | โG | ||
| Find Previous | โงโG | ||
| Find and Select Next | โฅโG | ||
| Find and Select Previous | โฅโงโG | ||
| Use Selection for Find | โE | navigator find ๋ฉ๋ด์ ๋ฌธ์์ด ๋ฃ์ ๋ ๋ง์ด ์ | |
| Use Selection For Replace | โงโE | ์ ํ ๋ถ๋ถ ํ๋ฒ์ ๋ฐ๊พธ๊ธฐ | |
| Folding | Fold | โฅโโ | |
| Unfold | โฅโโข | ||
| Fold Methods & Functions | โฅโงโโ | ํน์ ์์ ์ค์ฝํ ์์ ์๋ method ๋ชจ๋ folding | |
| Unfold Methods & Functions | โฅโงโโข | ||
| Fold Comment Blocks | โโงโโ | ||
| Unfold Comment Blocks | โโงโโข | ||
| Build, Execution | Build | โB | |
| Clean build folder | โงโK | ||
| Test | โU | ||
| Infomation | Show History | โงโโA | |
| Simulator | Screen Shot | โS | |
| Record | โR | ์ค๋จ ํ, ์ฐ์ธก ํ๋จ์ ๋์ค๋ ์์์์ ์ค๋ฅธ์ชฝ ํญํ๋ฉด gif ๋ณํํ์ฌ ์ ์ฅ ๊ฐ๋ฅ | |
| Keyboard | โK | ||
| Rotate | โโฌ | ||
| To Home | โโงH | ||
| Shake | โโZ | ||
| Move | Move line up | โฅโ[ | |
| Move line down | โฅโ] | ||
| Back | โโโ | ๋ค๋ก ๊ฐ๊ธฐ | |
| Forward | โโโข | ์์ผ๋ก ๊ฐ๊ธฐ | |
| Cursor | Multi cursor | โฅ + drag | Sublime text์์ โฅโง + drag |
| Make cursor | โงโ + click | Sublime text์์ โฅ + click | |
| Select Next Occurrence | โฅโE | Sublime text์์ โD | |
| Sorting | Re-indent | โI | ์ฝ๋ ์ ๋ ฌํด์ค, ๋๋ ํค ๋งคํ์ด ๋์ด ์์ด โฅP๋ก ์ค์ ํจ |
| Log | Clean Debug window | โK | ๋๋ฒ๊ทธ ์ฐฝ ๋ชจ๋ ์ง์ฐ๊ธฐ |
| Debug | Console On/Off | โโงY | ๋๋ฒ๊ทธ ์ฐฝ ์ฌ๋ฆฌ๊ธฐ/๋ด๋ฆฌ๊ธฐ |
| Debug On/Off | โY | ๋๋ฒ๊ทธ ๊ธฐ๋ฅ On/Off | |
| Next breakpoint | โโY | ๋ค์ ๋ธ๋ ์ดํฌ ํฌ์ธํธ ๋์ด๊ฐ๊ธฐ | |
| New | New Editor | โโT | ์๋ก์ด editor ์์ฑ |
| open current symbol in New editor | โโโฅ + Click | ์ ์๋ํฐ์์ ํจ์, ๋ณ์ ๋ณด๊ธฐ | |
| Edit | Edit all scope | โโE | ์ง์ ํ์ผ ํ์ ๋ฆฌ๋ค์ด๋ฐ |
| Source Control | Commit | โโฅC | ์ปค๋ฐ์ฐฝ ๋์ฐ๊ธฐ |
๊ฐ๋๊ฐ๋ค๊ฐ vsc ๊ธฐ๋ณธ์ค์ ์ผ๋ก ์ตํ ๋จ์ถํค๋ค์ด ์๋๋ฐ, ์ฌ๊ธฐ๋ ์๋ค. Preference -> Key Bindings -> Customize ํ๋ฉด ๋๋ค.

Extra
Extract Method

- ์ ํ, ์ฐํด๋ฆญ,
Refactor-Extract to method
Reference
Update Log
- 22.04.22: initial draft
- 22.04.23: Move line, snippet ์ถ๊ฐ
- 22.04.26: Simulator Record ์ถ๊ฐ
- 22.05.11: Re-indent ์ถ๊ฐ
- 22.05.13: ๋ค๋ก๊ฐ๊ธฐ, ์์ผ๋ก ๊ฐ๊ธฐ, ๋๋ฒ๊ทธ ์ฐฝ ์ง์ฐ๊ธฐ ์ถ๊ฐ
- 22.05.16: ์ฝ์์ฐฝ ๋ด๋ฆฌ๊ธฐ/์ฌ๋ฆฌ๊ธฐ, ๋๋ฒ๊ทธ on/off, next breakpoint
- 22.06.09: ์๋ํฐ ์ฐฝ ์๋ก ๋ง๋ค๊ธฐ ์ถ๊ฐ
- 23.06.27: ์ง์ ํ์ผ ํ์ ๋ฆฌ๋ค์ด๋ฐ, extract method, test, commit