Set up Visual Studio Code for Unity [MAC/PC 2024]

  Рет қаралды 49,904

Coco Code

Coco Code

Күн бұрын

Learn how to use Visual Studio Code with Unity. A new package developed officially by Microsoft and Unity make this process very fast!
🎁 Support me on Patreon: / cococode
--------------------------------------------------------------------------------
🔗 LINKS IN THIS VIDEO:
Visual Studio Code download: code.visualstu...
--------------------------------------------------------------------------------
👨‍💻 SOCIALS:
💜 Join our Discord: / discord
🔵 Follow me on Twitter: / cococodeyt
🎓 YOU WILL LEARN:
- How to install Visual Studio Editor package
- How to use Visual Studio Code with Unity
- How to debug code in Unity
- How to change theme in Visual Studio Code

Пікірлер: 131
@al28314
@al28314 6 ай бұрын
Thank you bro, i've been struggling with this for an entire week.
@BILGI_PASA
@BILGI_PASA 11 ай бұрын
I had so many problems when i tried to use vs code with unity a couple of months ago. Then i gave up and i started using visual studio. But this video can help me. Thank you!
@samirkazah302
@samirkazah302 11 ай бұрын
Same here
@Laomer_Dev
@Laomer_Dev 2 ай бұрын
thank you bro ❤🌹
@jaxmundotwitch
@jaxmundotwitch 4 ай бұрын
Tysm after trying all solutions on the internet I finally got it with your video. Love your content
@diplodocus3
@diplodocus3 10 ай бұрын
Thank you!!! And specially for adding this on Reddit! I was fed up with the fact that there was no proper IDE support on Mac (except Rider ofcourse). Microsoft has given a SWEET surprise
@firstname9928
@firstname9928 9 ай бұрын
Literally I have been struggling so long getting intellisense on my new project. THANK YOU.
@brain-370
@brain-370 2 ай бұрын
Finally, my pc has stopped burning
@CocoCode
@CocoCode 10 ай бұрын
How about VS vs VSCode comparison (for Unity) video?
@itsAdopo_DevXD
@itsAdopo_DevXD 9 ай бұрын
answear plsss i got so many problems!! 1------> when i open vs code everytime the "projects" bar taking way too long to show those numbers 2------> I got an error message on vs code about c# not connected to server (Somthing about "Pipline Name") 3------> when the "projects" bar finished and showed the numbers ,the seggetions can"t work and if I type something wrong , it will never tell me where is it can u give me the solution 😭😭 I got a school project to finish 😭😭😭😭
@misterlonely6057
@misterlonely6057 11 ай бұрын
Yay, thank you! :D
@EnderRobber101
@EnderRobber101 11 ай бұрын
Thanks this was the best updated tutorial!
@normaluser9294
@normaluser9294 4 ай бұрын
You have my sub, man! Keep going, amazing work!
@saadaamir4933
@saadaamir4933 4 ай бұрын
Thank you for explaining it such beautiful way. It was much helpful.
@magic00squirrel
@magic00squirrel 9 ай бұрын
Thank you for making this. I updated my Unity version to get access to the new navigation tools but my autofill code stopped working. This fixed that.
@AizakuGaming
@AizakuGaming 4 ай бұрын
To anyone having the Errors with "project convert" for .csproj files: Uninstall 'Visual Studio Code Editor' package, make sure 'Visual Studio Editor' packages is present and up to date. IF you cannot remove or update them due to dependency, remove 'Engineering' feature (it's a package collection for different IDEs) in package manager and try again. Be sure to repeat the steps @ 1:11 and regenerate files again. Restart VSCode.
@yaseer_clash3761
@yaseer_clash3761 3 ай бұрын
Thanks so kuch
@minhbaby3243
@minhbaby3243 Ай бұрын
Thank you CoCo Code very much.
@wedere_fast_rap
@wedere_fast_rap 7 ай бұрын
Thank you so much! I was going insane ahah ❤
@LiterallyJustARat
@LiterallyJustARat 3 ай бұрын
Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Thank you. Seriously. Been fighting with this for the last several hours tried all kinds things.
@Briezar
@Briezar 11 ай бұрын
ah dang, I tried installing the Unity for VSCode package right when it first released but never got it to work so I uninstalled it. Didn't think it was because I didn't remove the old VSCode Editor. Will try it later today, thanks for the informative video, really needed it.
@omurpods
@omurpods 11 ай бұрын
Intellicode not working, how to enable? Not IntelliSense. The feature of completing the code suggestion suggested by artificial intelligence does not work. Completed by pressing Tab.
@user-si9jn1kc1r
@user-si9jn1kc1r 28 күн бұрын
You are my hero
@tyleryu6432
@tyleryu6432 5 ай бұрын
Extremely helpful
@InkDevil999
@InkDevil999 2 ай бұрын
Thanks for the video! It has always been a problem to get it to work properly but not it works. The only thing is that for some reason Unity Toolbox changed the Unity Message to "METHOD is called by Unity" Which is pretty useless since it does not explain what the method actually does. I'll be using Unity Code Snippets.
@SanLiuk
@SanLiuk 9 ай бұрын
No installed .NET SDK was found on the computer. If it is installed, make sure it can be found through the PATH environment variable. C# Dev Kit does not work without a supported version of SDK. After installing the SDK, you need restart the VS Code session, or the computer. The .NET Core SDK cannot be located: Error running dotnet --info: Error: Command failed: dotnet --info /bin/sh: dotnet: command not found /bin/sh: dotnet: command not found . .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path.
@realname4755
@realname4755 2 ай бұрын
Bless.
@LardonLardon
@LardonLardon 11 ай бұрын
Thank you !
@JonStar
@JonStar 4 ай бұрын
Thank you so much!
@user-gj7eb6hb1y
@user-gj7eb6hb1y 10 ай бұрын
The .NET Core SDK cannot be located: Error running dotnet --info: Error: Command failed: dotnet --info /bin/sh: dotnet: command not found /bin/sh: dotnet: command not found . .NET Core debugging will not be enabled. Make sure the .NET Core SDK is installed and is on the path. I have this error although i installed the dotnet sdk. Can you or someone help me to fix this error, please. I have been being stuck in this error for 2 months
@SanLiuk
@SanLiuk 9 ай бұрын
did u fix ? if yes could you tell how?
@Nuan07
@Nuan07 2 ай бұрын
You're awesome!
@EL1TEPT
@EL1TEPT 10 ай бұрын
Thank you so much broski
@user-ib3jd5rm5q
@user-ib3jd5rm5q Ай бұрын
mannnnnnn i lovvvvvvvvvve uuuuuuuuuuuuuuuuuuu
@hackblox-d5w
@hackblox-d5w Ай бұрын
Thank you the suggestion work fine but when i save in vs code unity didnt compile
@lucasgodt
@lucasgodt 10 ай бұрын
thank you so much! I have been having problem with this for weeks, now its gone!
@ZBR92
@ZBR92 25 күн бұрын
when i download it and close my visual studio and re open it says about downloading an sdk. i download the latest and i try but it still says i need to download an sdk
@valentynvorobec7834
@valentynvorobec7834 4 ай бұрын
thank you very much sir
@thomasanderson1416
@thomasanderson1416 13 күн бұрын
Don't you need to also add the C# and C# Devkit extensions and separately install the .NET SDK?
@phihung2709
@phihung2709 16 күн бұрын
why my assets folder in vs code does not have anything?
@parthawijaya482
@parthawijaya482 8 ай бұрын
it work well, thanks
@Iamaqwerte
@Iamaqwerte 5 ай бұрын
Thanks!
@SPOIDERMaen
@SPOIDERMaen 4 ай бұрын
Thanks man
@itsAdopo_DevXD
@itsAdopo_DevXD 9 ай бұрын
i got a problem !! 1------> when i open vs code everytime the "projects" bar taking way too long to show those numbers 2------> I got an error message on vs code about c# not connected to server (Somthing about "Pipline Name") 3------> when the "projects" bar finished and showed the numbers ,the seggetions can"t work and if I type something wrong , it will never tell me where is it can u give me the solution 😭😭 I got a school project to finish 😭😭😭😭
@ArshiaBabakhani-ee4pd
@ArshiaBabakhani-ee4pd 4 ай бұрын
Thank you
@alifurkantekdemir4262
@alifurkantekdemir4262 10 ай бұрын
Clearly work thanks!
@poisht853
@poisht853 2 ай бұрын
I use to use unity 2022.3.9f1 where everything worked well and then switching to 2022.3.29f1 started my issues. 1. It doesn't show up errors. 2. The general settings for Layout (such as curly braces on same line) are back to VSCode defaults... Any ideas on how to fix this?
@SOLShinji
@SOLShinji 9 күн бұрын
It says unlock it. It looks like you can but can't really set it up. How to fix that
@supertenchoo4271
@supertenchoo4271 25 күн бұрын
I could not find the path for Vs code on windows
@hamidlafiesta1767
@hamidlafiesta1767 3 ай бұрын
when i do this there is an error instead of having the number of projects it is in red
@alexdell9323
@alexdell9323 4 ай бұрын
Unfortunately it just says no installed .net DSK was found or so,etching, like that.
@SigmaZer0
@SigmaZer0 9 ай бұрын
Not on the Macbook M1 (arm64), it keeps on throwing an error that the .NET SDK is not installed, I have to reinstall it every time I re-open VSCode.
@SanLiuk
@SanLiuk 9 ай бұрын
how did you fix? did you? I have Mac mini m2 . same stuff .NET Core SDK error
@SigmaZer0
@SigmaZer0 9 ай бұрын
@@SanLiukSorry, I wish I had a solution, but so far it's only reinstalling the SDK. The PATHs are setup correctly so I have no idea why it's not being picked up when restarting VSCode.
@SanLiuk
@SanLiuk 9 ай бұрын
@@SigmaZer0 I solved. I wrotee on got and it said to write some lines on command line plus restart vs code , unity and Mac . and open c# script from the "asset" on unity. I repeated few times and it worked. now ihave like 4 diferents sdk. and I keep them all!
@TechFix-Hub77
@TechFix-Hub77 Ай бұрын
My Problem is: When I nistaling it says Validating so long
@mohammedo.6895
@mohammedo.6895 4 ай бұрын
Hi, please how can I get similar color theme on my visual studio ? I tried many themes but I didn't found yours
@user-ms9nk1ul9q
@user-ms9nk1ul9q 5 ай бұрын
2:01 What to do , if there is no “project” inscription? What might this depend on?
@steveruu
@steveruu 3 ай бұрын
having the same issue
@dm1tryrin
@dm1tryrin 10 ай бұрын
@CocoCode For example, I do not add the Input class and the GetKeyDown method (most likely, not only them). Help me please. (I installed Unity Toolbox)
@brandonbonner4535
@brandonbonner4535 4 ай бұрын
mine is lock and I can't remove it I need help!
@1ht1baron
@1ht1baron 8 ай бұрын
I am writing “void OnTrigger” but intellisense not working. -- Fixed: I installed this extension: “Unity Code Snippets”
@Bhairab_roy
@Bhairab_roy 11 ай бұрын
May i know why my intelisense work so late even after uodated my vs to latest version??
@marc8150
@marc8150 10 ай бұрын
Did everything you stated in the video, still IntelliSense does not work for me...
@diamondsword7821
@diamondsword7821 8 ай бұрын
vs code is not opening for me after I press "open c# project". Please help me
@theshadowunity8260
@theshadowunity8260 7 ай бұрын
Can we get those Asset Usages like we have in Rider?
@AKExtra-wr6uy
@AKExtra-wr6uy 4 ай бұрын
Can't remove "visual studio code editor" package due to dependencies
@surjaBruh
@surjaBruh 3 ай бұрын
Uninstall "Engineer" package
@mpgaming07
@mpgaming07 11 ай бұрын
hey bro i am learning blender gor assert creation , can u drop me some suggestion , if u need any model to be made ask me.
@Hassher34985
@Hassher34985 11 ай бұрын
Any code maid extension alternatived? Its formatter plugin. I've used csharpier but I didnt like it C sharp curly formatter for you that wanna see curly braces like vs
@Hassher34985
@Hassher34985 11 ай бұрын
Other troubles like ctrl + . (Yellow bulb) for completing ENUM, and creating new method is bad. Ive used vscode from july. I love it
@Xind0898
@Xind0898 11 ай бұрын
what is the difference between vs code and vs? i have been using exlusively vs, is there any reason for me to switch to vs code?
@Briezar
@Briezar 11 ай бұрын
VS is an IDE which is, by default, fully-integrated to work with languages and engines (e.g. Unity), so it has all the needed feature but at the cost of being heavier, you should probably notice that just opening VS may take a few minutes. VSCode, on the other hand, is basically a text editor that you can insert extensions and plugins to modify it specifically for what you need. It is way lighter than VS, takes a few seconds to open and connect intellisense, but it is not fully integrated for Unity like VS, so niche features like Attach to Unity or setting breakpoints won't be there.
@Briezar
@Briezar 11 ай бұрын
I switched from VS to VSCode initially because of the slow startup time, but then got more comfortable with VSCode because of how customizable it is. Don't like how the default icons look? Download an extension. Don't like any of the existing themes? Download an extension. Need some snippets? Download an extension. Missing a feature you like from VS? Download an extension. There's probably an extension for anything you need out there.
@samuelfacanha8745
@samuelfacanha8745 10 ай бұрын
Thanks for the tutorial. I was having this error: "No installed .NET SDK was found on the computer. If it is installed, make sure it can be found through the PATH environment variable. C# Dev Kit does not work without a supported version of SDK. After installing the SDK, you need restart the VS Code session, or the computer." After lots of research, adding the following line to the user preferences (command + shift + p then type "Open User Settings (JSON)") solved the problem. Hopefully this can help someone having the same issue. Probably something with ohMyZsh initialization time. "application.shellEnvironmentResolutionTimeout": 120
@CocoCode
@CocoCode 10 ай бұрын
Thank you! Sorry to hear you had issues with the installation! The C# extension (which is a Unity extension dependency) should handle that for you 😰
@littledemo3605
@littledemo3605 11 ай бұрын
Google play services achievement and leaderboard tutorial please 🙏, discord Link not working
@mrmansir3734
@mrmansir3734 3 ай бұрын
I added the extension, but when I test out typing in private void OnTrig.... , it doesn't predict the entire syntax like how it normally would on Visual Studio. When it would predict it, I could press tab and it would autocomplete the code syntax. (private void OnTriggerEnter2D (Collider2D collider) How do I fix this so the prediction thing returns? It was a very useful feature in Visual Studio.
@surjaBruh
@surjaBruh 3 ай бұрын
Have you u fixed it? I got the same issue
@mrmansir3734
@mrmansir3734 3 ай бұрын
@@surjaBruh no, i havent tried to fix it ever since :( . But its on my todo list.
@mrmansir3734
@mrmansir3734 3 ай бұрын
@@surjaBruh Basically there's a bunch of extensions that are similar to it. The autocomplete/predict code feature is called IntelliSense. So you just got to find a good Unity Intellisense extension.
@surjaBruh
@surjaBruh 3 ай бұрын
@@mrmansir3734 I tried that out already, checked all the forums Still got something wrong Thanks for answering anyway
@surjaBruh
@surjaBruh 3 ай бұрын
@@mrmansir3734 i will let you know if i willl fix it somehow, maybe will be useful for you as well
@slap2685
@slap2685 10 ай бұрын
If you want to make vsc have the same features as vs, why do you have to search for many extensions to use the same features? While you just open VS ? I don't understand how many extensions have the same features as vs?? For what? Just use vs. I've never had a problem with it. It really has everything you need. It's super easy.
@user-vy8mb9ix7d
@user-vy8mb9ix7d 4 ай бұрын
I DONT SEE VISUAL STUDIO CODE , I ONLY SEE VISUAL STUDIO IN THE EXTERNAL TOOLS TAB
@emmabirrell1974
@emmabirrell1974 10 ай бұрын
I just cant find visual studio in any applications. I have been searching for ages and i dont know what to do. Everything is correct that i have done ao far but it wont show up on my mac
@CocoCode
@CocoCode 10 ай бұрын
Are you sure you followed the very first step in the video to download it? ;) 0:08
@stefanciobotaru9678
@stefanciobotaru9678 6 ай бұрын
almost there, it didn't work to show Unity Message after installing Unity Toolbox. on the other hand, Intellisense works fine
@Zrewski
@Zrewski 2 ай бұрын
same here
@John-1904
@John-1904 11 ай бұрын
I love VS Code
@SkorpionYassine
@SkorpionYassine 11 ай бұрын
I hate VS Code
@John-1904
@John-1904 11 ай бұрын
@@SkorpionYassine haha
@TheGreenSprout
@TheGreenSprout 8 ай бұрын
I followed step by step and it works until after downloading the unity extension, because I don't get the "Projects: " message, and the autocomplete doesn't work, any idea of why that might be?
@TheGreenSprout
@TheGreenSprout 8 ай бұрын
Nevermind it's fixed. For anyone else with this problem: The issue (mine at least) was the .Net SDK. I had a previous version installed (in order for the autocomplete to work before), so I uninstalled it, followed the tutorial, and when I downloaded the Unity addon it gave me a warning message telling me to download a .Net SDK and gave me a link to download it. I downloaded it, followed the tutorial again (I had to uninstall visual studio code for that, boring), and the "Projects: " message was there. Hope it helps! :D
@CocoCode
@CocoCode 8 ай бұрын
Ohh 😮‍💨 Glad it works now, thanks for the insight!
@pranavajay5528
@pranavajay5528 7 ай бұрын
@ukaszj2906
@ukaszj2906 10 ай бұрын
I cannot remove Visual Studio Code Editor in Unity 2022.3 cause it's a dependency to Engineering package. Still the new editor is used for the script editor.
@abdulrahmansafwat1555
@abdulrahmansafwat1555 4 ай бұрын
Same here, did you solve it?
@ukaszj2906
@ukaszj2906 4 ай бұрын
@@abdulrahmansafwat1555 Sorry, but no. Later I tried a little UE and left unity, so i dont even remember what i did with this.
@abdulrahmansafwat1555
@abdulrahmansafwat1555 4 ай бұрын
@@ukaszj2906 Thank you, I actually found out that the package doesn't have to be removed.
@ahmadjames151
@ahmadjames151 10 ай бұрын
Why not using the normal Visual Studio ?? is there any different between them ??
@CocoCode
@CocoCode 10 ай бұрын
In my experience VSStudio is way less customizable (themes, plugins) and has some weird shortcut limitations. Also please keep in mind that Mac version of VSStudio will soon be discontinued, so VSC becomes a real deal for this platform
@ahmadjames151
@ahmadjames151 10 ай бұрын
@@CocoCode thank you for respond ✔️
@aliiftikharbutt
@aliiftikharbutt 11 ай бұрын
I followed the steps by installing it in package manager but ther is no sign of VS code in my machine nor it shows up in external tools ... Should i remove Visual studio first which i have been using
@CocoCode
@CocoCode 11 ай бұрын
Have you downloaded visual studio Code first? You may need to browse for it in Unity as stated on the video. No need to remove (purple) visual studio
@aliiftikharbutt
@aliiftikharbutt 11 ай бұрын
@@CocoCode oops I forgot to follow the veeery first step (to download it lol) Anyways thanks for quick reply, it is now up and working. By the way 4 to 5 hours ago I was thinking to consider switching to VS code (because Visual studio is too slow on windows) and you just released very relevent video
@CocoCode
@CocoCode 11 ай бұрын
Great! Let us know after some time if the change has been better for you!
@aliiftikharbutt
@aliiftikharbutt 11 ай бұрын
@@CocoCode sure, I have already started enjoying it due to its quick load time
@aliiftikharbutt
@aliiftikharbutt 11 ай бұрын
@@CocoCode intellisence is not working
@_EliteKnight_
@_EliteKnight_ 9 ай бұрын
Visual Studio and Visual Studio Code are two different editors. lol :D
@CocoCode
@CocoCode 9 ай бұрын
Yeah, they are. Microsoft has done everything possible to confuse them
@Theriser44
@Theriser44 11 ай бұрын
what mac do you have?
@CocoCode
@CocoCode 11 ай бұрын
iMac 5K 2019
@ChaosInsurgent
@ChaosInsurgent 4 ай бұрын
AFTER 2 YEARS OF SEARCHING
@andreagrumpeenlate5813
@andreagrumpeenlate5813 11 ай бұрын
Tried it works…. BUT: this is not better than VS. I mean, it doesn’t even autocomplete typing your variable? I think I will uninstall this.
@CocoCode
@CocoCode 11 ай бұрын
One you setup it correctly (like shown on the video), all intellisense/code suggestions features work. Let me know if you will need any help regarding that
@andreagrumpeenlate5813
@andreagrumpeenlate5813 11 ай бұрын
@@CocoCode after some (let’s call it, background thinking) it started doing auto completion for those. I’m trying to get to grips with it but it’s hard to get into a new habit. I can’t see a particular reason switch, other than the thought of jumpin ahead of when they’ll “force” us to switch.
@salimnegan7289
@salimnegan7289 3 ай бұрын
It doesn't work for me ...
@amiroo9214
@amiroo9214 11 ай бұрын
will this work with linux?
@CocoCode
@CocoCode 11 ай бұрын
Sorry, I'm unable to verify that right now 😔
@Inf4mousKidGames
@Inf4mousKidGames 11 ай бұрын
If unity is on Linux then yes the only issue is the distro you chose considering the Linux community refuses to make a standard app model for their software.
@paruslovee
@paruslovee 7 ай бұрын
очень знакомый голос... Ну точно ты русский, но какой именно канал хз
@CyberAngel67
@CyberAngel67 11 ай бұрын
recently? been out for months now
@CocoCode
@CocoCode 11 ай бұрын
August 4th 2023, less than 2 months ago
@CyberAngel67
@CyberAngel67 11 ай бұрын
@@CocoCode I had it installed longer than that mate, I would go as far as to say May or June
@SondaPower
@SondaPower 11 ай бұрын
visual studio code is shiet 🙂 the purple version is 1000000000000000 times better.
@CocoCode
@CocoCode 11 ай бұрын
Any particular reasons? In my opinion, VSCode has: - better performance and multi-window support - plugin and themes support - better keyboard shortcuts and command palette The Purple/Old Visual Studio is going away soon on Mac (2024) and on Windows it a quite heavy and unresponsive peace of software
@fv4202x
@fv4202x 11 ай бұрын
@@CocoCode I only use visual studio because it saves my code foldings, region foldings etc.
@SingularityPk
@SingularityPk 2 ай бұрын
Thanks alot man
@ghostcs541
@ghostcs541 8 ай бұрын
mine just opened up blank, what to do
Setting up VS Code for Unity Development - New 2024!
7:50
Coding with Robby
Рет қаралды 23 М.
Install Linux instead of Windows 11 - Here's how!
15:10
Linus Tech Tips
Рет қаралды 3,8 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 9 МЛН
Apple peeling hack
00:37
_vector_
Рет қаралды 82 МЛН
1ОШБ Да Вінчі навчання
00:14
AIRSOFT BALAN
Рет қаралды 5 МЛН
Why I’m switching from Unity to Unreal Engine
9:02
LixianTV
Рет қаралды 1,1 МЛН
How to set up Visual Studio Code for Unity
12:10
Zigurous
Рет қаралды 162 М.
How to Install Unity 🎮 EASY Full Guide & Setup (2024)
8:02
YourCreativeDestiny
Рет қаралды 177
BU VİDEOYU İZLEDİKTEN SONRA OYUN YAPABİLECEKSİN!
43:20
at0m
Рет қаралды 1,4 МЛН
The Future of Game Development
8:58
Brackeys
Рет қаралды 1,2 МЛН
Tmux has forever changed the way I write code.
13:30
Dreams of Code
Рет қаралды 980 М.
Programming a BETTER state machine
10:16
iHeartGameDev
Рет қаралды 73 М.
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 557 М.
Учим Unity за 1 час! #От Профессионала
1:59:24
Хауди Хо™ - Просто о мире IT!
Рет қаралды 1,6 МЛН
POV: Your kids ask to play the claw machine
00:20
Hungry FAM
Рет қаралды 9 МЛН