In this video you will learn how to configure Visual Studio Code for Unity development. You'll learn how to get many things working including syntax highlighting, debugger, auto formatting, and snippets.
Пікірлер: 56
@crownedpix3 күн бұрын
Wow, I've been trying to do this for a long time, but I didn't find any properly written posts or videos explaining it so clearly. I am happy to set up VSCode to work like Visual Studio. Thanks a lot.
@ninjakiwigames54184 күн бұрын
0:55 This was exactly what I was looking for! I didn't know I had it set to something completely random and that's why it didn't work even after having downloaded both vs and vs code. Thank you so much!!
@MikeCroswellКүн бұрын
This video saved me a bunch of time. Big thanks! Tip for Mac users: Some macs use the F11 to show desktop and it's normal to use that as Code's "Step Into" when debugging. One can remap it on mac's system/keyboard/keyboard shortcuts/Mission Control. Also, in Unity, make sure you have both the latest Visual Studio and Visual Studio Code packages, else debugging won't be setup correctly, as of August 2024 using Unity 2022.3.7f1.
@ZanePro1235 ай бұрын
Thanks Man. Every other tutorial just shows small sections of the steps. Glad that you gave a full walkthrough
@professor_stevens67843 ай бұрын
Very helpful and clear. As of 24 May 2024, some changes: Had to add IntelliCode as a step on its own. Package Manager doesn't seem to install VS Code support, but it is present regardless.
@GrandSyzygy3 ай бұрын
You sir, are a god among men! Thanks for saving me from my several hour long battle with visual studio and unity 🙌🏼
@MrDeeprod8 ай бұрын
Thanks Mate, this was very useful. Got my VScode setup following this and it was a bliss
@MrZtapp2 ай бұрын
Thanks. Given the development of VsCode I have decided to move from Rider to VsCode and this was really helpful. Thanks!
@SpringFsm4 ай бұрын
Thanks a lot man. Love that you do everything step by step, no cuts too. Helped a lot ❤
@davidrius61762 ай бұрын
Thanks so much for the video! I was struggling a lot with indentation and autocomplete, and your video really helped. I really appreciate it!
@zaimhokzm2821Ай бұрын
Thank you from Thailand. God bless you.
@charinyazenope98934 ай бұрын
OMG! Thank you sir!! You are my life saver!!
@PvPNetwork3 ай бұрын
After many years of only using Studio I tho it was time to try VS Code. Thanks for making the transition less painful :)
@IMMORTAL00122 ай бұрын
hey i wanna use unity for a college project what do you reccommend vs or vs code also any tips for beginner no idea of c#
@PvPNetwork2 ай бұрын
@@IMMORTAL0012 Both are good tbh. I have a issue with vscode's indent (C#) which is really annoying, but everything else is good. VScode is lighter compared to VS. VS is a bit more straight forward, but if you follow this tutorial you are pretty much set. I would personally go with VS Code. First check C# basics. Try to understand what Variables & methods are and how they can be used. Difference between Private and Public. in Unity you should check out how components works and the general UI interface. Watch tutorials to learn, but don't copy their code. "Hands on", keep coding :) Remember that it's totally fine to hit a wall and struggle. Don't give up, and remember to take breaks.
@IMMORTAL00122 ай бұрын
@@PvPNetwork hey thanks for clarification and the suggestion i appreciate you very much
@makemake46172 ай бұрын
Very helpful, it solved the issues I had. Thanks man!
@brianrobinson27029 күн бұрын
Good stuff, Robby. Thanks. Very clear. only thing is I am struggling to get debug connection between unity and VS Code. Follow exactly what you do but my does not stop at breakpoint.
@js_adept3 ай бұрын
Thanks man! It's a good stuff for start of development
@lunatic48612 ай бұрын
Really helpful, man. Thank you!
@CosplayZine21 күн бұрын
I am having problems with running the debugger. It doesn't have an option to "attach to unity'. Just a blue button and if I choose unity in a dropdown menu I get "a message about installing "vstruc" or open json. Not sure why it's different for me. Also not sure what you clicked to create the editor config file.
@cate01a4 ай бұрын
oh my god!!! lifesaver!!!! spent so long trying to get brackets on same line but there were no solutions afaik prettier is universal formatter with limited but enough options, though doesnt support csharp some other formatter works but is """"opionionated"""" (gives you zero options and says that's a feature, because youre TOO STUPID to be allowed to change any settings) some other one did let you change your settings, but you needed to setup some server or some bs just for some bloody formatting thank god mate thank you thank you my eyes will bleed no more when i write cs
@toninotonnato77763 ай бұрын
Thanks a lot, it works like a charm! :)
@khajiit5556Ай бұрын
Nice and fast!
@user-yf9ek6hk5k6 ай бұрын
my external tools tab doesnt have that would i do?
@subkiro22 күн бұрын
Thank you for your video! what themre is on your VS code?
@VioletRose-Fae4 ай бұрын
Great tutorial, helped solve the last piece of actually getting the auto formatting working! I'm having an issue though, my breakpoint isn't triggering. Any suggestions?
@MikeCroswellКүн бұрын
Did you solve it? Make sure Visual Studio (not just code) is installed in the Package Manager. Should be v2.0.2 or greater.
@nicholascurran17343 ай бұрын
"No launchable target found." Any help?
@RomanKnavАй бұрын
Thanks Robby!
@FarmBoyTech3 ай бұрын
Man, you are more than awesome
@user-qf1nq9lo8y4 ай бұрын
I cant find visual studio code in external tool😢😢
@supertenchoo427112 күн бұрын
go to to this path C:\Users\{Username}\AppData\Local\Programs\Microsoft VS Code, when you go to user you wont find AppData you need to type it or paste AppData\Local\Programs\Microsoft VS Code ,then chose code.exe
@user-cx4ex4ds9t4 ай бұрын
Thanks a lot, very useful!
@user-mq5gs7lf5u3 ай бұрын
May I ask if the position of the cursor can be adjusted to be within the method by default? When I click on a blank area in a method {}, it always moves the cursor to the beginning of the line, while Visual Studio moves it to within the method
@glasgood99072 күн бұрын
Thank you 🙏
@benjaminhawkins11292 ай бұрын
Did you just blast 100% completely by installing visual studio code and setting it up?
@matthewiversen33696 ай бұрын
Great tutorial!
@AxelHoss17 ай бұрын
Helped a ton thx!
@second-handplanet42838 ай бұрын
Thanks! 😊
@benedictdayas32672 ай бұрын
Thank you!
@rosyprakash4 ай бұрын
I'm using Linux Ubuntu, The vs code opens script in read only hence I cannot edit the code. Any solutions?
@harrisgu59924 ай бұрын
Save my day man!Thanks!
@poisht853Ай бұрын
I get a warning saying that visual studio editor package is missing.
@cfloutier4 ай бұрын
Helped a lot too. Do you know how to easily debug the game directly. I use Attach Unity Debugger and it works fine but it's quite not direct to press F1, choose attach Unity Debugger and select the Player (not the editor). I'd like to have a F5 key pressed start, configured in the launch and I did n't find how to do it properly
@jasonjenkinson20493 ай бұрын
Thank you
@bearblitz4 ай бұрын
do you think it's better to use VS code of visual studio 2022 for unity?
@codingwithrobby4 ай бұрын
Probably Visual Studio, I just like vs code because I use it as a web developer every day and am used to it.
@drake_eric97992 ай бұрын
my unity still loading the script 30 minutes
@AniketPatra-zu2if6 ай бұрын
Thanks man!!!
@javlontursunov65274 ай бұрын
Thanks man
@richardlima88327 ай бұрын
nice, man!
@user-hc8fu3cd8m4 ай бұрын
Thanks!
@IndieGamesWTF3 ай бұрын
At 3.12 he installs "Visual Studio Code Editor" please don't do that... it is no longer supported.