How to Run C# in Visual Studio Code on Windows 10 2022
Вставка
- Опубліковано 19 чер 2024
- Run csharp and .NET program in visual studio code on windows
Hey, guys in this video I'm going to show you how you can configure visual studio code (#vscode) to run C# program on #Windows10 OS (operating system) visual studio code C# and I'm also gonna show you how you can run two sample user input program on #vscode_csharp dotnet core in vscode
👉 Complete C# Masterclass - rebrand.ly/CsharpProgrammingC...
👉 Free Complete C# Programming Course - pluralsight.pxf.io/CSharp_Fre...
Dotnet Core SDK Download Link - bit.ly/dotnetcoresdk_techdecode
Visual Studio Code Download Link - bit.ly/vscode_techdecode
Command : "cd $dir && dotnet run $fileName"
***[UPDATE]***
For those who get the error "The token '&&' is not a valid statement separator in this version." You can use the semicolon to separate commands.
Command : "cd $dir; dotnet run $fileName"
👉 Complete C# Masterclass - rebrand.ly/CsharpProgrammingC...
👉 Free Complete C# Programming Course - pluralsight.pxf.io/CSharp_Fre...
Learn C# Programming - WPF, Databases, Linq, Collections, Game Development with Unity. More than just the C# basics!
Time Stamp
0:00 - Introduction
0:37 - How to download Dotnet core SDK on windows 10
1:30 - How to install Dotnet core SDK on Windows10
2:08 - How to Check Dotnet core SDK version
2:41 - How to download visual studio code on windows 10
3:30 - How to install visual studio code on windows 10
4:46 - How to setup visual studio code for running C# programs using Code Runner Extension
5:16 - Create your first C# program in visual studio code
6:54 - How to run C# program in vscode using terminal
7:15 - How to run C# program in vscode using coderunner extension
9:01 - Create read input C# program in vscode
9:25 - Run C# program that takes input from the user in visual studio code
9:59 - Subscribe - bit.ly/2OH9Jv5
How to Run Java in Visual Studio Code on Windows 10 : • How to Run JAVA in Vis...
How to Run Python in Visual Studio Code on Windows 10 : • How to Run Python in V...
How to Run C++ in Visual Studio Code on Windows 10 : • How to Run C++ in Visu...
How to Run HTML in Visual Studio Code on Windows 10 : • How to Run HTML in Vis...
How to Run Golang in Visual Studio Code on Windows 10 : • How to Run Go in Visua...
How to install JDK on Windows 10 : • How to Install Java JD...
How to Run C in Visual Studio Code on Windows 10 2021 Best Code Editor : • How to Run C in Visual...
★★★Best Online Programming Courses★★★
👉 Python Programming Course ➡️ bit.ly/BeginnersPythonCourse
👉 Java Programming Course ➡️ bit.ly/JavaProgramCourse
👉 C Programming Course ➡️ rebrand.ly/C_Programming_Mast...
👉 C# Programming Course ➡️ bit.ly/CsharpProgrammingCourse
👉 C++ Programming Course ➡️ bit.ly/CplusplusCourse
👉 JavaScript Programming Course ➡️ rebrand.ly/Javascript_Course
👉 R Programming ➡️ bit.ly/RprogrammingCourse
👉 PHP Programming Course ➡️ bit.ly/PHP_Programming_Course
👉 Android Development Course ➡️ bit.ly/CompleteAndroidCourse
👉 NodeJs Programming Course ➡️ rebrand.ly/Javascript_Course
My name is Yogendra Singh and on this channel @TechDecode , I show you how you can easily download and install any programming language compiler vs interpreter and #programming hub for learning the latest programming language.
Consider subscribing for best ide and coding Bootcamp.
Subscribe: bit.ly/2OH9Jv5
If you found this video useful please give it a thumbs up and subscribe to my channel! and If you have any questions regarding this video, please ask them in the comment section. thanks for watching! :)
Music- Victory by BGMUSIK • BG Musik - Victory
DISCLOSURE: This video and description might contain affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help supports the channel and allows us to continue to make videos like this. Thank you for the support! [Intro Song Credit]
Valence - Infinite [NCS Release]
Video Link - • Valence - Infinite | F... - Навчання та стиль
After spending 3 hours on searching how to run a C# program using the new version of visual studio, this man solve the problem in very few minutes. Thank you so much!
Yea, I struggled to compile C# too and I coudn't. Why is it that hard?
6:05 after writing code and giving a space it didn't open as VSC? Why is that so?
@@diliaaastarlight8691 u have installed VS Studio CODE and not VS Studio? Normaly it works if u type code in cmd.
@@diliaaastarlight8691 same bro, and mine seems to display shorter information that only covers half the screen. Did you find a solution ?
@@diliaaastarlight8691 you have to type code . dont forget the fullstop otherwise it wont work
Tutorials that works on the first time are rare to find. Thank you so much
You have finally ended two weeks of my personal hell!
I haven't been able to test c# scripts or programs without error until you gave me the anwer.
Thank you
Got me up and running in no time, and I learned a lot. Thank you. ( I subscribed && liked! )
Thanks for the sub! 😇
👉 Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
I like this tutorial, much more easier to follow & well explained! You earned a sub keep it up my friend!
Thank you so much for these!
I have struggled with these for weeks.
Keep up the good work.
Happy to help! 😇
Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
Subscribe : rebrand.ly/FreeSubscription
After spending hours and watching more than 5 tutorials about how to fix the scriptcs error, I finally got it fixed applying your tutorial. Thx a lot!!!
Great video, was facing issues when running the c# code in Visual Studio Community 2022, came across your video followed each step and now my code runs smoothly on Visual Studio Code 2022.
Appreciate how you explained each step thoroughly and really liked how you considered these segments in the video, usually people just tell you about the installation process and don't follow through with the next required tasks/steps to have your code running.
best tuto i've seen so far for c#
This Was A Really Helpful Tutorial And It Helped A Lot, Thanks!
Thank you so much ! your step by step explanation is easy to understand even for a beginner like me.Be blessed and please continue you great job !
I have been looking for this video for a long time, thank you!
Thank you so much, I kept getting errors but you just saved me by making this video!
gotta say i was f*cking with trying to run my code in VSCode and then i found this video
respect man, respect
Can always rely on Indian tech UA-camrs.
lol no
@@dotmashrc that thicc accent tho. I love it.
Actually yes! Bcs Russian and Indian IT are the best in the world!
@@noobintheinternet very true
The thicker the accent the more likey its whackn't
OMG, Thank you so much, I have been struggling with my terminal not running my code, thank you so much!
Thanks my guy! I was spending hours to find a solution for my problem and the ocurring error!
thank you. You are literally my saviour, you explain things in such a simple way. Really, thank you.
Thanks for the tips. it is an amazing step-by-step tutorial.
I truly appreciate the effort.
Thanks again
OMG , I spent so much time looking for this and finally find the solution thank you so much
These instructions worked for me running C# in Visual Studio Code for mac. At least I followed the instructions as is and it worked on my M1 Macbook Pro. Thank you very much!
Thank you so much Yogendra, this was tremendously helpful!
bro thank god I found this tutorial cuz its been 3 hours and Idk why it cant run or code anything and after watching this video to realize that the problem was that I installed vs instead of vs code, after I found out the problem, I immediately uninstalled/removed vs and downloaded vs code instead. TYSM
thank you very much I literally quit learning c# last week then I said let me try again and I found your video now I can finally code.
Great video, got me up and running in less than 10 minutes! Cheers!
I've looked everywhere for tutorials to setup C# but none of them worked for me, not even brackey's tutorial! Luckily this one did it for me
Because its an updated tutorial
@@arypandey2298 oh that makes sense
I have searched a lot about how to configure c# and .NET in my system, but nothing found. This one video helped me to configure everything and It is completely working fine, Thankzz bro
Glad it helped
ohh my godd thankyu sooo much, i had been stuck on the scriptcs problem for wayy long and you explained it soo nicelyy
Thank you so much! Only your video helped me solve the problem with setting up VS Code
Thank you SO much Sir, you've honestly helped me a ton! Much appreciated from Andhra Pradesh. I've looked everywhere for tutorials to setup C# but none of them worked for me, not even brackey's tutorial! Luckily this one did it for me. Once again thank you so much.
Happy to help ☺️
@@TechDecode sir by using your step I downloaded and it works fine
Thanks a lot sir for this video
I struggled from last 3 weeks to run c# code in my system
But sir only code is running ,if I put directives or class then it shows error
Pls sir answer me .....
Thank you sir for telling me this matter about
Thank you SO much Sir, you've honestly helped me a ton! Much appreciated from South Africa 🇿🇦
You're welcome! 😇
Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
Subscribe : bit.ly/2OH9Jv
Ngiyabonga nawuncedzekile mntwana wami
hello, pls were you able to download it. I don't know why mine is not installing properly
Holly shit I think I saw your comments on a food channel called Natasha's Kitchen, what a small world !
@@isrealolalere5219 Make sure to install the SDK, not the Runtime, to install it with elevated privileges (right click -> open as administrator) and check if the installation folder is in your PATH environment variables. If not, add it your PATH.
One easy way to check that is to run cmd and type these commands in order:
1) PowerShell
2) whereis dotnet
It should return your installation folder.
Thank you so much I have just spent hours trying to do this but then you helped me!!!
Thankyou..i v been searching this everywhere ..now I came to the real place..
I have been searching for a week for a genuine video for c# in visual studio, this one is 100% working. Thank you
You're welcome 😘
@@TechDecode *SIMP*
@@TechDecode SIMP
This one is 100% working. Thank you 💙
You're welcome!
Thank you so much for this tutorial! Much appreciated!
Thank you so much for such an excellent video. I had recently downloaded VS code and couldn't get it to run. I followed the steps in your video and it works! I will be bookmarking this video.
Really great and easy explaination. Was stuck before this video. Finally its working. Thank you for such amazing video.
You're welcome! 😇
Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
Subscribe : rebrand.ly/FreeSubscription
you just made my day so much easier! Thank you so much!!! greetings from Germany :D
I'm so glad! 😇
👉 Don't forget to enroll in Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
👉 Subscribe : rebrand.ly/FreeSubscription
This man is hero, he solved my problem in 5 minutes. Thanks :)
THANK YOU SO MUCH! THIS IS SO WONDERFUL❣
I'm glad you like it😇
Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
Subscribe : rebrand.ly/FreeSubscription
Thank you so much this channel deserve more subs
I appreciate that! 😇
I've been hunting for this info ... Thanks for this video, Tech Decode Tutorials ...!
Very good tutorial! Detailed, step-by-step and has solutions for problems I have encountered. Easy Like!
I found only one useful video during the whole day of searching. And I'm talking about your video.
thx)
You're welcome! 😇
Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
Subscribe : rebrand.ly/FreeSubscription
Yeah I agree that!
Bruh Thank you so much this is the only accurate video i subscribed
Thanks for the sub!
great. I have been struggling for one month to start this. thank you
Thank you so much. This video make it easy for me to run the program as earlier i was in huge delima .
Thank you sir I really satisfy now by your video
I was searching videos on this for 2 hours and finally got answer bhi you
You're welcome! 😇
👉 Don't forget to enroll in Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
👉 Subscribe : rebrand.ly/FreeSubscription
If you are interested in c# and SQL server complete project with source code you can find that in my channel also
Thanks working👨💻
Welcome 👍
Thank you for providing the way to run the c# code through the run button. I was looking for such a way to run the code in the usual away available on other IDE program apart from using the "dotnet run" command from terminal.
wow, perfect video ! Thank you for helping me get started with my first C# program. I wrote a Python script, but i need a compiled version that will run fast, as I am trying to create a single instance program to prevent users from running it twice at the same time,
Either VS Code is the best code editor or just I'm deeply in love with it. Thank you for the video.
You're welcome! 😇
Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
Subscribe : bit.ly/2OH9Jv
Working 😎👍
Enjoy
I have tried several tutorial from various sources but this is the only one which actually works. You earned a new subscriber 🙌
You're welcome! 😇
Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
Subscribe : bit.ly/2OH9Jv5
You are amazing! Thank you for teaching me how to properly run C# code is VS Code!
For those who didn't get code run to work and get the error "The token '&&' is not a valid statement separator in this version." You can use the semicolon to separate commands. I.E. ""cd $dir; dotnet run $fileName""
First i have a problem like that then i apply your solution then this one happen, “bash: syntax error near unexpected token ‘&&’”
@@mcmarenjacoba9477 This would only work if you're using powershell with vs code, if you're using linux (I assume because of the bash error)I would say the original '&&' would work for that, could you copy and paste the command you used for "csharp"?
@@chris07518712505 i did same thing in the video brother. The error said “expected comma json(514) [7, 5]”
@@mcmarenjacoba9477 for this on I believe you're missing a comma after the command as its expected to be there. So it should look like. ("csharp" :"cd $dir; dotnet run $fileName ",) needs to have that comma there so the next key value pair can be read in the json document. If you keep getting errors post them. Also show us what you actually typed in your json file so we can check for errors.
Thanks :3
👉 Complete C# Masterclass - rebrand.ly/CsharpProgrammingCourse
👉 Free Complete C# Programming Course - pluralsight.pxf.io/CSharp_Free_Course
Dotnet Core SDK Download Link - bit.ly/dotnetcoresdk_techdecode
Visual Studio Code Download Link - bit.ly/vscode_techdecode
Command : "cd $dir && dotnet run $fileName"
[UPDATE] For those who get the error "The token '&&' is not a valid statement separator in this version." You can use the semicolon to separate commands.
Command : "cd $dir; dotnet run $fileName"
Subscribe - bit.ly/2OH9Jv5
If you found this video useful please give it a thumbs up and subscribe to my channel! and If you have any questions regarding this video, please ask them in the comment section. thanks for watching! :)
I love you mister tech decode tutorials!
thank a lot man. i am struggling with this stuff all day
Really helpful and simple. thanks!
Thank you very much, dude.I spent a lot of time just to run my code.thank you
Thank you! Now I'm semi prepared for my Comp Sci class
brooooo I spend literally one whole day but didn't got the solution, but you saved my another day thank you soo so much bro really thank you
The only helpful tutorial I found.
Thank you :)
Much thanks sir very well explained!
it works !
bravo!!!
It worked. Thankyou very much!
Thank you, you are a good teacher you made it soooo simple.
In 2022 you're still on a 3.x version of dotnet. That takes some commitment. Bravo!
I refer back to this tutorial every time I setup a new computer. Thanks for the nth time.
Thanks broo....
I was stuck here for last couple of months
Thank you very much ❤❤
was having a hard time running c# code in VS. thank you so much.
yer I have never struggled this much.....YOU ARE A GENIUS 🤗🤗🤗🤗
The video is awesome and correct helps lot for configuring vscode ,for c#.i searched a lot nothing helped me like this video. Everything worked great after doing these changes.
You're welcome! 😇
Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
Subscribe : bit.ly/2OH9Jv
Excellent video!! This has been so helpful!!! Absolutely wonderful
Glad it was helpful! 😇
👉 Don't forget to enroll in Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
👉 Subscribe : rebrand.ly/FreeSubscription
you're the best i have ever found out, thank a lot dear sir!
Thank you very much my friend, I found your video very useful. You won a subscriber. Greetings from Chile.
Thanks a lot. You explained very well. It solved my problem.
03/2022 still works! I love you, Sir.
i was so stressed out about not being able to even run a simple hello world program. thanks so much! it worked!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Best explanation. Simple and to-the-point.
Thank you very much.
Really thanks full for uploading in this video because i am spending too much time for this purpose,and searching many of them videos once again thanking you
That was immensely helpful. Thanks a lot.
niceeee. it really works, happy to use it in my studies
vai u are great. u don't know how much u relieved me. may GOD bless you.
I was trying to find how to fix this on StackOverflow for the 'unrecognized command of scriptcs'. This helped!
Thanks a lot, I was searching on topic how to run C# code, but always they don't give full information, but you gave us full guide to install C# environment without any errors.
Thank you again
If you want a complete project in visual studio c# and SQL server database then I have a collection of videos for you with source codes.
Thanks dude. This video was very helpful and you've got yourself a new subscriber :)
Great tutorial clear and simple really helpful.
Thank you so much, very helpful 👍🫰
Thank you so much! This is convenient for me to coding on vscode.
the best tutorial, thank u so much!!!!
lovely tutorial , every thing explained perfectly in the video
Thanks a lot sir. Both are working correctly.
Thank you SO much! You are such a great guy!
Happy to help! 😇
👉 Complete C# Masterclass - bit.ly/CsharpProgrammingCourse
👉 Subscribe : rebrand.ly/FreeSubscription
Very well written and very informative. Thank you for your efforts. Please make more videos.
Thank you so much bro for this kind of support and guidance
It worked nicely broo...❤ thank u very much❤❤❤
Thankyou so much its been hard for me to type in terminal
its good thank you ! for sharing the knowledge about the content. ONCE AGAIN THANKYOU SIR!!!
thank you, you saved a lot of my time.