How To Run Linux Code on Windows with WSL 2 & VS Code

  Рет қаралды 143,350

TypeScript TV with Benny

TypeScript TV with Benny

Күн бұрын

Пікірлер: 138
@TypeScriptTV
@TypeScriptTV Жыл бұрын
If you have problems activating hardware-assisted virtualization (required for WSL2), this guide will help you: typescript.tv/hands-on/docker-desktop-hardware-assisted-virtualization/ 📖
@thomasfsr
@thomasfsr 8 ай бұрын
You promised nothing and delivered everything! Thank you bro
@TypeScriptTV
@TypeScriptTV 8 ай бұрын
Thank you!! I really like working with WSL2. 🙂
@srinivasmekala1189
@srinivasmekala1189 2 жыл бұрын
Thank U for posting this video.... I installed WSL recently and stopped using coz I can't see the files I created through ubuntu in my file explorer. You helped me a lot. Thank you very much.
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
My pleasure. On Windows 11 the WSL 2 even supports Linux GUI apps. Wishing you lots of fun using it! Benny
@pkn8707
@pkn8707 2 жыл бұрын
Thanks Benny! The way you have structured the topics , it is really easy for a beginner to grasp it in one go. If a beginner can understand then anyone can do it.
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
It's very nice of you to tell me that. Wishing you a lot of fun using the Windows Subsystem for Linux! 👍 Best, Benny
@domnicdodeva3290
@domnicdodeva3290 10 ай бұрын
This video helped a lot to understand how visual studio code, wsl works. Thank you for helping out
@Salah-YT
@Salah-YT 2 жыл бұрын
thank u so much bro because u did help me a lot I did SUB + LIKE for u thank so much
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
That's great! Happy to hear. 🙂🙂🙂
@aamnakamran6078
@aamnakamran6078 5 күн бұрын
TYSM, it workedddd
@jimmyolano929
@jimmyolano929 2 жыл бұрын
2:29 wsl --status
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
You can use "wsl --status" to check your currently installed WSL version. If no version is found, you can install one using "wsl --install". I added these commands to the description of this tutorial. Best, Benny
@duartebrs
@duartebrs Жыл бұрын
THANKS A LOT JESUS I LOVE YOU
@gregmasters7420
@gregmasters7420 Жыл бұрын
What a great video. Thank you for taking the time to help a novice like me to get this running!
@TypeScriptTV
@TypeScriptTV Жыл бұрын
You are very welcome! We were all beginners and will be beginners again with the next evolution of software. 💫 Best, Benny
@hazard9064
@hazard9064 10 ай бұрын
thank you so much
@brunosoltoo
@brunosoltoo Жыл бұрын
that's awesome! I thought It would be necessary to install vscode in the wsl distro too.
@Capitan_Mega
@Capitan_Mega 2 жыл бұрын
OK but I can't even download anything on my Microsoft store for 1 entire month... Nothing can fix it bruh NOTHING I SEEN 20 VIDEOS of how to fix my Microsoft store and NOTHING
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
That's sad to hear but I just found a guide on how to install WSL2 and a Linux distribution without using the Microsoft Store: stackoverflow.com/a/64872285/451634 - Hope it works for you! 🍀🍀
@BilalKas
@BilalKas 2 жыл бұрын
Danke, brauche fork und pipes für die Uni und mit WSL klappt das mega, wollte keine VPN oder eine richtige VM nutzen..
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Freut mich, wenn dir das Video helfen konnte! Das WSL ist eine gute Alternative zu Cygwin, MinGW-w64 und anderen Tools. 🙂 Gruß, Benny
@runforfun8416
@runforfun8416 2 ай бұрын
thanks,appreciate it
@devij230
@devij230 2 жыл бұрын
Great
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Thank you! 👍
@kevincrowe7832
@kevincrowe7832 7 ай бұрын
Really appreciate this video. the "rm -rf" command was specifically the problem I was having and I'm happy you brought it up within the first minute or so of the video.
@aomo5293
@aomo5293 Жыл бұрын
Thank you Bro, you helped me fixing one issue; may ALLAH gives you the best;
@DanielSchmidt-le4og
@DanielSchmidt-le4og 2 жыл бұрын
Great video, thanks Benny! Your tutorial video helped me a lot 🙌
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Happy to help! Windows 11 Build 22000 or higher even supports running Linux GUI apps: docs.microsoft.com/windows/wsl/tutorials/gui-apps
@AnasthassiaMurillo
@AnasthassiaMurillo Жыл бұрын
@@TypeScriptTV do you recommend to update to Windows 11? I recently bought a Huawei laptop with Ryzen 5 5600 CPU and I've heard Windows 11 doesn't work so well with Ryzen processors and that makes me hesitant about updating to Windows 11.
@TypeScriptTV
@TypeScriptTV Жыл бұрын
@@AnasthassiaMurillo I have upgraded to Windows 11 a while ago and it's working well for me. 🙂 My desktop PC has an AMD Ryzen 7 3700X processor.
@AnasthassiaMurillo
@AnasthassiaMurillo Жыл бұрын
@@TypeScriptTV thank you for your quick reply!}
@cocogoat1029
@cocogoat1029 7 ай бұрын
I'm trying to learn assembly as a complete beginner to low level programming and every content creator is using some fancy CLI program while using Linux system calls on their program on their tutorials. I would've been more of a nightmare without AI tools.
@lapracity884
@lapracity884 11 ай бұрын
Super helpful! why are u so close to the camera tho
@TypeScriptTV
@TypeScriptTV 10 ай бұрын
I only had a fixed focal length lens available back at that time. 🫥
@supernova-4420
@supernova-4420 7 ай бұрын
anybody know how to make .code-workspace files open a wsl workspace?
@SreesaSarma
@SreesaSarma 10 ай бұрын
Amazing video !! Thanks a lot!
@matiasrisso5917
@matiasrisso5917 Жыл бұрын
Amazing, detailed but easy to follow and understand!
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Thank you! What a great feedback. ⭐ Best, Benny
@kritikjain3617
@kritikjain3617 Жыл бұрын
Thanks man!
@es7729
@es7729 Жыл бұрын
Thank you!!!
@BrazilianDev
@BrazilianDev 2 жыл бұрын
Very useful.
@mohamedmagdy2816
@mohamedmagdy2816 Жыл бұрын
Good explanation, i really needed this video since i would start in kubernates project.
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Happy to hear! Are you working on an Open Source project? :)
@LibraryOfTheOligarchs
@LibraryOfTheOligarchs 7 ай бұрын
extremely helpful! Appreciate you!
@WalterJohnson-b2f
@WalterJohnson-b2f 22 күн бұрын
Harris Donna Walker Lisa Lewis Helen
@Александр-й8ы6и
@Александр-й8ы6и 9 күн бұрын
Great tutorial, thank you!
@dianaawino
@dianaawino 2 жыл бұрын
Thanks alot....some really insightful info for beginners like myself👏👏👏👏👏
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Happy to hear that this was helpful for you. Are you also programming with TypeScript?
@dianaawino
@dianaawino 2 жыл бұрын
@@TypeScriptTV yes...i'm quite new to the whole typescript experience.... and so excited🤓🤓 about this programming journey
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
@@dianaawino that's nice to hear! I am currently releasing one tutorial per week. Tomorrow I will upload a video which explains generic functions. If you like, you can subscribe to this channel to be informed about it. Best, Benny
@dianaawino
@dianaawino 2 жыл бұрын
@@TypeScriptTV sure thing..thanks
@DheerajGudipati
@DheerajGudipati 9 күн бұрын
Amazing! Thanks benny
@kingkiller4630
@kingkiller4630 8 ай бұрын
almost lost em at the free halo infinite im glad you pulled through and kept on with the tutorial
@TypeScriptTV
@TypeScriptTV 8 ай бұрын
😂
@ІванКобизський-й8ч
@ІванКобизський-й8ч 9 ай бұрын
👍
@guidoperezmoro8331
@guidoperezmoro8331 2 ай бұрын
You're awesome dude
@TypeScriptTV
@TypeScriptTV 2 ай бұрын
Haha, thank you! But what about my video? 😅
@Jay2Ops
@Jay2Ops Жыл бұрын
Thanks for the video. I had toiled for hours.
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Thank you for your comment. Producing this video becomes totally worth it when we can save precious hours in a developer's life. 😀 Best, Benny
@abraund
@abraund 11 ай бұрын
Win+v, well that one has evaded me for a long time. Great guide, cannot believe how easy it is.
@TypeScriptTV
@TypeScriptTV 11 ай бұрын
Happy that it helped you! 👍 Please share my channel if you would like to support it. 😃
@abraund
@abraund 11 ай бұрын
@@TypeScriptTV and yet does anyone messing around with Linux on a Saturday afternoon have a social media following 🤔 good luck either way!
@BlancheNuit
@BlancheNuit Жыл бұрын
thank you this is very useful. I was getting depressed (big word) writing code on virtualbox(because needed linux environment) because the lagg was getting to my nerves. This is going to make my life so much happier
@TypeScriptTV
@TypeScriptTV Жыл бұрын
VirtualBox lag getting you down? No worries, my friend... armed with WSL, you're about to get lightning-fast speeds! 🚀 Best, Benny
@BlancheNuit
@BlancheNuit Жыл бұрын
@@TypeScriptTV I just got WSL (+ ubuntu) and its extension on VSCode and it's amazing !!
@Calypso694
@Calypso694 7 ай бұрын
can you use man pages with this and other terminal commands like make,cd,ls, etc etc etc.
@TypeScriptTV
@TypeScriptTV 7 ай бұрын
Yes, you will get a complete Ubuntu terminal environment: apps.microsoft.com/detail/9pdxgncfsczv
@vitaminsee
@vitaminsee Жыл бұрын
thank you, this was very informative and easy to follow.
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Thank you so much for your kind words. All the best for your coding journey!
@joemarcardio525
@joemarcardio525 Жыл бұрын
Thank you sir!
@TypeScriptTV
@TypeScriptTV Жыл бұрын
My pleasure! 🙂 Greetings from Berlin.
@YouAreTheRaidBoss
@YouAreTheRaidBoss 2 жыл бұрын
Stark Bruder!
@johnkrumpotick8659
@johnkrumpotick8659 2 жыл бұрын
You answered my questions, thank you.
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Cool. Thanks for letting me know. 😊
@rishiaman2288
@rishiaman2288 8 ай бұрын
9:58 i dont have an .ssh directory
@Zydres_Impaler
@Zydres_Impaler 4 ай бұрын
Thanks a lot bro
@lucareneambos3438
@lucareneambos3438 2 жыл бұрын
Great Video!!! 🔥🔥🔥 Love the German accent! ♥
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
I cannot hide my roots. 😂 Happy that you liked the video. 😊 Benny
@M_SHEHU
@M_SHEHU 4 ай бұрын
Thanks man
@TypeScriptTV
@TypeScriptTV 4 ай бұрын
You are very welcome! 😊
@quachbinh0503
@quachbinh0503 Жыл бұрын
Exactly what I needed. Thank you so much.
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Happy to help and thanks for leaving a comment. 👍 Best, Benny
@forexmeter3900
@forexmeter3900 Жыл бұрын
Very well explained, thank you!
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Thank you! Always happy to help. ☺ Best, Benny
@_indrid_cold_
@_indrid_cold_ 8 ай бұрын
Brilliant explanations!
@TypeScriptTV
@TypeScriptTV 8 ай бұрын
Thank you very much! ☺ Comments like yours are the currency I crave. 😁
@앤드류-d7c
@앤드류-d7c Жыл бұрын
Thanks Benny! Great Video!
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Happy to help! All the best from Berlin. 🙌
@capthat8901
@capthat8901 8 ай бұрын
Thank you!
@jefersonlima3524
@jefersonlima3524 2 жыл бұрын
Great video. Helped me a lot configuring my environment. A question for you: How you got that smooth fonts on Windows? They look a lot like Linux font rendering, not ClearType.
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Hey, happy that you like my video. I actually have "ClearType" turned on and I am using a 150% (sometimes 175%) scaling in my "Display" settings. Hope this answers your question! Best, Benny
@jefersonlima3524
@jefersonlima3524 2 жыл бұрын
@@TypeScriptTV Thanks. It's answered.😁
@TechIdeasbd
@TechIdeasbd 2 жыл бұрын
Good job mate.
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Thank you very much! I hope my tutorial saves some people from hours of debugging. :D Best, Benny
@IT__Amber
@IT__Amber Жыл бұрын
helpful late at night👍
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Happy to hear. Wishing you a great coding session! 🦉⌨
@jinxinglim1855
@jinxinglim1855 2 жыл бұрын
Really great video. thank you!
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Thanks for taking the time and posting a comment! 😊
@garimasingh8530
@garimasingh8530 5 ай бұрын
Thanks a million
@rishiaman2288
@rishiaman2288 8 ай бұрын
11:28 i dont have nph
@lator1941
@lator1941 2 ай бұрын
Thanks man
@adefrawy
@adefrawy 2 жыл бұрын
Great video, exactly what I needed. Thanks
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Happy to help! Let's rock Linux together! 🚀
@xyz-123
@xyz-123 Жыл бұрын
after installing it is power limiting the cpu while running the codes on windows when iam unplugged to power in my laptop. For this reason my vs code in windows is running at restricted wattage to the cpu hence slowly. What can I do now? Note that there no problem when Iam plugged in.
@kirteek5334
@kirteek5334 2 жыл бұрын
I watched this video just after I was done installing Ubuntu os 🥲 ... Is WSL will fulfill the requirements that one Linux based project requires.. coz setting up an whole environment in Ubuntu as well. For coding and stuf is again an hectic work I see...
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
WSL is a great option to get up and running with Linux projects on Windows. With Windows 11 you can even run GUI applications. 😲
@tur8008
@tur8008 2 жыл бұрын
That's coool! Thank you!
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Glad you like it! Fist bump! 🤜🤛
@muazulislam398
@muazulislam398 Жыл бұрын
I am getting access denied, check permission when I try to open ubuntu/home/username directory
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Yikes! On which version of Windows are you running? 🪟
@miture0502
@miture0502 2 жыл бұрын
Hi, is it possible to reopen in container when using vscode plus WSL? When reopening in container, vscode automatically returns to the local machine rather in the Linux environment.
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Good question, does this extension matches your use case? marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
@chacquito1862
@chacquito1862 2 жыл бұрын
This was super helpful and clear! Very appreciated, thank you!
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
Thank you for your kind words. 🙇 Best, Benny
@ninjanape
@ninjanape Жыл бұрын
I would be able to hear better if the camera was a bit closer to your face
@ninjanape
@ninjanape Жыл бұрын
great video though, thanks :D :D
@TypeScriptTV
@TypeScriptTV Жыл бұрын
@@ninjanape haha, I hope my close-up didn't startle you. I'm using a Sigma 30mm fixed focal length lens, so zooming is a bit limited. Nevertheless, I'm glad you enjoyed the video! 😀
@dips_07
@dips_07 Жыл бұрын
Great video 🤟...one concern is how to auto complete once i type on tab key in wsl terminal..for example want to go to "Home" folder once i type "H" and then click on "tab key" it should be auto complete to "Home"... please help with this
@TypeScriptTV
@TypeScriptTV Жыл бұрын
I'm afraid that this behavior is only functional in Windows' File Explorer and does not work in a Shell environment. 🤔
@dips_07
@dips_07 Жыл бұрын
Okay 👍
@sorcererstone3303
@sorcererstone3303 Жыл бұрын
@5:14, Benny created a folder within the benny's directory for demonstration purpose. Can someone tell me where (which directory/folder) most people likely to place their development project in (and can be access through windows explorer and visual studio code)? I can create any new directory under Ubuntu directory (@ 4:37). Do I have to place all my project folders within one of the pre-existing folders/directories as shown in 4:37?
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Accessing files with WSL/Ubuntu from your Windows drive (example: /mnt/c) will be very slow. When you wish to access files from WSL in VS Code, then I suggest doing that inside your Ubuntu home directory (example: \\wsl.localhost\Ubuntu\home\bennycode\dev). Best, Benny
@sorcererstone3303
@sorcererstone3303 Жыл бұрын
@@TypeScriptTV Thank you for the tips. When I read MS's docker desktop doc, it too emphasis not to use windows drive for development when using WSL2 for performance issues that you just mentioned. So, I am going to place all my projects in this dev directory you suggested. There are going to be a lot of such folders inside this dev directories!!
@TypeScriptTV
@TypeScriptTV Жыл бұрын
@@sorcererstone3303 great! Do you have a link to the Docker docs to share?
@shiroclown6131
@shiroclown6131 2 жыл бұрын
Why is vscode shared, but nodejs is not shared?
@TypeScriptTV
@TypeScriptTV 8 ай бұрын
It’s because VS Code is build by Microsoft and they put effort into sharing it with the WSL. Node.js is separate and only lives within the Ubuntu installation.
@shiroclown6131
@shiroclown6131 8 ай бұрын
@@TypeScriptTV wow that is not an expected answer. Thanks.
@xyz-123
@xyz-123 Жыл бұрын
is it WSL 1 or WSL 2
@TypeScriptTV
@TypeScriptTV Жыл бұрын
WSL 2 ✌
@aiinstinct
@aiinstinct 2 жыл бұрын
great! thank you
@TypeScriptTV
@TypeScriptTV 2 жыл бұрын
You are welcome. Happy to help. 🙂 Have a great day! Best, Benny
@MJLee-wl6kt
@MJLee-wl6kt Жыл бұрын
Is "Remote WSL" now rename to "WSL" ? I can't see "remote WSL" anymore.
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Probably. Have you tried just using "WSL"?
@bluebull399
@bluebull399 Жыл бұрын
I still struggle to understand what docker desktop actually is or why it's needed. I use docker compose on WSL Ubuntu which I use to spin up demons of my app in Ubuntu. Can docker desktop do this? I run multiple instances of the app and am always spinning up and down those. A point and click interface would be a lot nicer than typing out Linux commands.
@TypeScriptTV
@TypeScriptTV Жыл бұрын
Docker Desktop is just a GUI on top of Docker. It will allow you to manage your volumes and images. If you're already comfortable using Docker Compose in WSL Ubuntu, it might be more efficient to continue using it though.
@bulbousdude
@bulbousdude Жыл бұрын
Excellent video! This is exactly what I was looking for. Thank you!
@TypeScriptTV
@TypeScriptTV Жыл бұрын
I was looking for a good tutorial on WSL 2 myself for a very long time. Happy I could support you with this one! Best, Benny
VS Code WSL (C++) - Create Project, Compile, Run
10:02
Brian Fraser
Рет қаралды 37 М.
Linux on Windows......Windows on Linux
23:54
NetworkChuck
Рет қаралды 432 М.
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 67 МЛН
GIANT Gummy Worm Pt.6 #shorts
00:46
Mr DegrEE
Рет қаралды 99 МЛН
Every parent is like this ❤️💚💚💜💙
00:10
Like Asiya
Рет қаралды 16 МЛН
100+ Linux Things you Need to Know
12:23
Fireship
Рет қаралды 1,1 МЛН
Developing on Windows with WSL2 (Subsystem for Linux) and PHP
22:15
Beachcasts Programming Videos
Рет қаралды 27 М.
Windows & macOS can't do this, but Linux can!
15:55
The Linux Experiment
Рет қаралды 887 М.
How A Steam Bug Deleted Someone’s Entire PC
11:49
Kevin Fang
Рет қаралды 1 МЛН
WSL2 Ubuntu GUI
13:51
David Bombal
Рет қаралды 592 М.
Windows development setup with WSL2, ZSH, VSCode, and more
12:02
Christian Lempa
Рет қаралды 227 М.
My Favorite Way To Handle Dev Environments | VS Code Devcontainers
30:05
you NEED to use VS Code RIGHT NOW!!
12:48
NetworkChuck
Рет қаралды 570 М.
Windows Subsystem for Linux setup WSL2 Systemd, Ansible, and Kubernetes
20:50
when you have plan B 😂
00:11
Andrey Grechka
Рет қаралды 67 МЛН