Mac ์œ ๋‹ˆํ‹ฐ-VSCode ์—ฐ๋™ ์„ค์ • (M2 pro)

2023. 6. 17. 14:18

 

๋งฅ๋ถ ๊ตฌ๋งค ๊ธฐ๋…์œผ๋กœ ์ปดํ“จํ„ฐ๋ฅผ ์„ธํŒ…ํ•˜๋˜ ์ค‘ ide๋ฅผ ๋ญ˜ ์‚ฌ์šฉํ• ๊นŒ ํ•˜๋‹ค๊ฐ€ VSCode๋ฅผ ์“ฐ๊ธฐ๋กœ ํ–ˆ๋‹ค.

 

VS CODE ์—ฐ๊ฒฐํ•˜๊ธฐ

1. mono stable ๋ฒ„์ „์„ ๋‹ค์šด๋กœ๋“œ ํ•ด์ค€๋‹ค.

https://www.mono-project.com/download/stable/

 

2. ๋‹ท๋„ท ๋‹ค์šด๋กœ๋“œ 

https://dotnet.microsoft.com/en-us/download

 

3. Visual Studio Code ์„ค์น˜

https://code.visualstudio.com/

 

 

4. Unity / [Preference] > [External Tools]

์œ ๋‹ˆํ‹ฐ์—์„œ ํ”„๋กœ์ ํŠธ ์•„๋ฌด๊ฑฐ๋‚˜ ์˜คํ”ˆํ•ด์„œ [Preference] > [External Tools] ์— ๋“ค์–ด๊ฐ„๋‹ค .

[External Script Editor] ์„ ๋ˆŒ๋Ÿฌ Visual Studio Code๋ฅผ ์„ ํƒํ•ด์ค€๋‹ค.

 

๋งŒ์•ฝ ์ฝค๋ณด๋ฐ•์Šค ์•ˆ์— Visual Studio Code๊ฐ€ ์—†๋‹ค๋ฉด [Browse...]๋ฅผ ๋ˆŒ๋Ÿฌ ์ง์ ‘ ์ฐพ์•„์„œ ์—ฐ๊ฒฐํ•ด์ฃผ๋ฉด ๋œ๋‹ค.

 

 

5. ํ”„๋กœ์ ํŠธ์—์„œ ์Šคํฌ๋ฆฝํŠธ๋ฅผ ์—ด์–ด๋ณด๊ธฐ

 

6. VS Code > [Extensions]

extension์—์„œ C#์„ ๊ฒ€์ƒ‰ํ•ด ์„ค์น˜ํ•ด์ค€๋‹ค.

์ด ์™ธ์—๋„ unity code snippets, unity snippets ๋“ฑ์„ ์„ค์น˜ํ•ด์คฌ๋‹ค. 

 

 

 

7. [Preferences] > [Settings] > [Omnisharp modern]

[Preferneces]์—์„œ Omnisharp modern ์„ค์ •์„ ํ•ด์ œํ•ด์ค€๋‹ค.

ํ•ด์ œ ํ–ˆ์œผ๋ฉด ๋ฐ‘์— ๋œฌ ๋Œ€๋กœ (Restart OmniSharp) ์žฌ์‹œ์ž‘์„ ํ•ด์ค€๋‹ค.

 

 

8. Unity / [Preferences] > [External tools]

๋‹ค์‹œ ์œ ๋‹ˆํ‹ฐ์˜ [Preferences] ๋กœ ๋Œ์•„์™€์„œ [External tools]์˜ generate project files๋ฅผ ํ•ด์ค€๋‹ค,

๊ทธ๋Ÿฌ๋ฉด csproj๊ฐ€ ์žฌ์ƒ์„ฑ๋œ๋‹ค.

 

 

๋-

 


์ฐธ๊ณ  ์ถœ์ฒ˜ ;

https://youtu.be/3GVGyooZ8jk ( Set up Visual Studio Code with UNITY, MAC, and INTELLISENSE WORKING 2023)

 

BELATED ARTICLES

more