Setting up VS Code for Unity Development - New 2024!

  Рет қаралды 21,817

Coding with Robby

Coding with Robby

Күн бұрын

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
@crownedpix
@crownedpix 3 күн бұрын
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.
@ninjakiwigames5418
@ninjakiwigames5418 4 күн бұрын
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
@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.
@ZanePro123
@ZanePro123 5 ай бұрын
Thanks Man. Every other tutorial just shows small sections of the steps. Glad that you gave a full walkthrough
@professor_stevens6784
@professor_stevens6784 3 ай бұрын
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.
@GrandSyzygy
@GrandSyzygy 3 ай бұрын
You sir, are a god among men! Thanks for saving me from my several hour long battle with visual studio and unity 🙌🏼
@MrDeeprod
@MrDeeprod 8 ай бұрын
Thanks Mate, this was very useful. Got my VScode setup following this and it was a bliss
@MrZtapp
@MrZtapp 2 ай бұрын
Thanks. Given the development of VsCode I have decided to move from Rider to VsCode and this was really helpful. Thanks!
@SpringFsm
@SpringFsm 4 ай бұрын
Thanks a lot man. Love that you do everything step by step, no cuts too. Helped a lot ❤
@davidrius6176
@davidrius6176 2 ай бұрын
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
@zaimhokzm2821 Ай бұрын
Thank you from Thailand. God bless you.
@charinyazenope9893
@charinyazenope9893 4 ай бұрын
OMG! Thank you sir!! You are my life saver!!
@PvPNetwork
@PvPNetwork 3 ай бұрын
After many years of only using Studio I tho it was time to try VS Code. Thanks for making the transition less painful :)
@IMMORTAL0012
@IMMORTAL0012 2 ай бұрын
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#
@PvPNetwork
@PvPNetwork 2 ай бұрын
@@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.
@IMMORTAL0012
@IMMORTAL0012 2 ай бұрын
@@PvPNetwork hey thanks for clarification and the suggestion i appreciate you very much
@makemake4617
@makemake4617 2 ай бұрын
Very helpful, it solved the issues I had. Thanks man!
@brianrobinson2702
@brianrobinson2702 9 күн бұрын
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_adept
@js_adept 3 ай бұрын
Thanks man! It's a good stuff for start of development
@lunatic4861
@lunatic4861 2 ай бұрын
Really helpful, man. Thank you!
@CosplayZine
@CosplayZine 21 күн бұрын
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.
@cate01a
@cate01a 4 ай бұрын
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
@toninotonnato7776
@toninotonnato7776 3 ай бұрын
Thanks a lot, it works like a charm! :)
@khajiit5556
@khajiit5556 Ай бұрын
Nice and fast!
@user-yf9ek6hk5k
@user-yf9ek6hk5k 6 ай бұрын
my external tools tab doesnt have that would i do?
@subkiro
@subkiro 22 күн бұрын
Thank you for your video! what themre is on your VS code?
@VioletRose-Fae
@VioletRose-Fae 4 ай бұрын
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
@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.
@nicholascurran1734
@nicholascurran1734 3 ай бұрын
"No launchable target found." Any help?
@RomanKnav
@RomanKnav Ай бұрын
Thanks Robby!
@FarmBoyTech
@FarmBoyTech 3 ай бұрын
Man, you are more than awesome
@user-qf1nq9lo8y
@user-qf1nq9lo8y 4 ай бұрын
I cant find visual studio code in external tool😢😢
@supertenchoo4271
@supertenchoo4271 12 күн бұрын
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-cx4ex4ds9t
@user-cx4ex4ds9t 4 ай бұрын
Thanks a lot, very useful!
@user-mq5gs7lf5u
@user-mq5gs7lf5u 3 ай бұрын
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
@glasgood9907
@glasgood9907 2 күн бұрын
Thank you 🙏
@benjaminhawkins1129
@benjaminhawkins1129 2 ай бұрын
Did you just blast 100% completely by installing visual studio code and setting it up?
@matthewiversen3369
@matthewiversen3369 6 ай бұрын
Great tutorial!
@AxelHoss1
@AxelHoss1 7 ай бұрын
Helped a ton thx!
@second-handplanet4283
@second-handplanet4283 8 ай бұрын
Thanks! 😊
@benedictdayas3267
@benedictdayas3267 2 ай бұрын
Thank you!
@rosyprakash
@rosyprakash 4 ай бұрын
I'm using Linux Ubuntu, The vs code opens script in read only hence I cannot edit the code. Any solutions?
@harrisgu5992
@harrisgu5992 4 ай бұрын
Save my day man!Thanks!
@poisht853
@poisht853 Ай бұрын
I get a warning saying that visual studio editor package is missing.
@cfloutier
@cfloutier 4 ай бұрын
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
@jasonjenkinson2049
@jasonjenkinson2049 3 ай бұрын
Thank you
@bearblitz
@bearblitz 4 ай бұрын
do you think it's better to use VS code of visual studio 2022 for unity?
@codingwithrobby
@codingwithrobby 4 ай бұрын
Probably Visual Studio, I just like vs code because I use it as a web developer every day and am used to it.
@drake_eric9799
@drake_eric9799 2 ай бұрын
my unity still loading the script 30 minutes
@AniketPatra-zu2if
@AniketPatra-zu2if 6 ай бұрын
Thanks man!!!
@javlontursunov6527
@javlontursunov6527 4 ай бұрын
Thanks man
@richardlima8832
@richardlima8832 7 ай бұрын
nice, man!
@user-hc8fu3cd8m
@user-hc8fu3cd8m 4 ай бұрын
Thanks!
@IndieGamesWTF
@IndieGamesWTF 3 ай бұрын
At 3.12 he installs "Visual Studio Code Editor" please don't do that... it is no longer supported.
12 VS Code Extensions to INCREASE Productivity 2024
27:13
Devression
Рет қаралды 662 М.
I Wish I Had Known This Before I Started Unity Game Development...
11:11
Get 10 Mega Boxes OR 60 Starr Drops!!
01:39
Brawl Stars
Рет қаралды 19 МЛН
黑天使遇到什么了?#short #angel #clown
00:34
Super Beauty team
Рет қаралды 47 МЛН
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
If Barbie came to life! 💝
00:37
Meow-some! Reacts
Рет қаралды 77 МЛН
No Code App Development is a Trap
9:31
Coding with Dee
Рет қаралды 222 М.
React Native CLI Setup for Windows [Created in 2024]
25:02
CodeLegends
Рет қаралды 6 М.
Hack your brain with Obsidian.md
11:53
No Boilerplate
Рет қаралды 1,9 МЛН
The Future of Game Development
8:58
Brackeys
Рет қаралды 1,2 МЛН
25 VS Code Productivity Tips and Speed Hacks
11:35
Fireship
Рет қаралды 2,3 МЛН
Get started with UI Toolkit in Unity
12:29
Sasquatch B Studios
Рет қаралды 31 М.
The Best VSCode Extensions 2024
9:29
Coding With Adam
Рет қаралды 328 М.
Microsoft FINALLY killed it
6:45
Alex Ziskind
Рет қаралды 633 М.
Learn Unity's UI Toolkit In One Video
1:48:53
Coding with Robby
Рет қаралды 10 М.
Nokia imba #trollface #sorts
0:31
SodnomTsybikov
Рет қаралды 7 МЛН
Новый фонарик в iPhone с iOS 18
0:49
Wylsacom
Рет қаралды 664 М.
ноутбуки от 7.900 в тг laptopshoptop
0:14
Ноутбуковая лавка
Рет қаралды 4,2 МЛН
ПС 110/10. Кто то подключил "левак" 110000 вольт!?
0:34
Советы электрика
Рет қаралды 1,3 МЛН