C/C++ in Visual Studio Code for Beginners

Поделиться
HTML-код
  • Опубликовано: 27 июн 2020
  • In this video I go over adding C/C++ support to Visual Studio Code and showing how you can have intellisense support for C/C++ as well as that you can easily debug C/C++ applications directly in VS Code.
    ***********************************************************
    Follow Me on Social Media!
    Twitter: / gotta_be_geek
    Instagram: / gottabegeek
    Video Gear I'm using: kit.co/gottabegeek/video-gear
    My Desk Setup: kit.co/gottabegeek/my-setup
    Links from the Video
    code.visualstudio.com/docs/cp...
    #VSCode #VisualStudioCode #QuarantineContent
    Disclaimer: Please see the link for the disclaimer policy for all of the videos on the Gotta Be Geek RUclips channel. www.gottabegeek.com/youtube-d...
  • НаукаНаука

Комментарии • 87

  • @math3ng339
    @math3ng339 3 года назад +63

    Never stop making these videos..... even though with a small fan base it's really informative to new students like me.... Ps; We all start somewhere

    • @GottaBeGeek
      @GottaBeGeek  3 года назад +7

      That’s really nice to say. I’m definitely slow getting these videos out sometimes - which is definitely something I need to get better at. But I have no intention of stopping. :) I’m glad the videos are helping you.

    • @benwyse
      @benwyse 2 года назад

      @@GottaBeGeek! If you drop a video of your 27"+ screen view on RUclips, you are either egotistic (want show off you big monitor) or unable to plan (foresee that your video might be watch on a tablet).
      I don't often use my 27" monitor, and when I am using it, I almost never give a single application the full screen, because I want to open several windows from different apps. Which means that you 21"+ screen view video is basically unwatchable. I can't see most of text because they are so tiny. And there is not hope to be able to watch your video on 15" or less screen view device.
      So, your video is basically useless. I don't even waste my time to watch these kind of videos. I always tell myself that if the guy who shot the video is not even smart enough to consider many viewers' devices and zoom in the content, what help there for me to learn anything from him/her. So, I pass those videos. Lol
      I am sorry that I have to be a bit rude. It is the first time that I address the issue publicly. I am tired of these videos popping up in my search, wasting my time trying to figure how to watch or even if I should. Now I just move pass them.

    • @benwyse
      @benwyse 2 года назад +1

      @@GottaBeGeek! If you want to grow your fan base, take in account many more viewers. Try to watch your own videos from a 10" tablet. You will realize how many folks you leave out. When one is on the road for example, he doesn't carry around a 27" monitor. He would probably have in his backpack a 10 to 15 inch laptop/convertible.

    • @GottaBeGeek
      @GottaBeGeek  2 года назад +5

      Thanks for the feedback. I’m getting ready to move and in a few weeks I’m hoping to get back into making more videos. I’ll definitely take that into consideration.

    • @benwyse
      @benwyse 2 года назад +1

      @@GottaBeGeek! You have the seed of a successful man. You know how to take criticism positively. I just subscribed to your channel. I hope to see what you will bring next. Good luck in your endeavor!!!

  • @trevorseestedt
    @trevorseestedt Год назад +2

    In 2022 this still works amazing. Thank you so much it took my hours to try and find out how to install G++ and GBD!

  • @SodiPopMedia
    @SodiPopMedia 4 года назад +5

    Oh, I'm digging this beginner's series!

  • @f3punchout
    @f3punchout 3 года назад +8

    I was trying to get this set up for several hours, watching other videos, before finding yours. I first watched your overview of VS Code vs VS 2019. I was about to give up and just use VS 2019 because the setup was automagic. But I really like VS Code, and decided to look in your uploads specifically for this tutorial and here it was! BTW, I tried the MS tutorial and was caught by some of the gotchas you mentioned. -- Thank you also for the quick explanations of the tutorial semantics, and how it differs from the actual syntax needed. -- Very grateful and yes I already subscribed!

    • @GottaBeGeek
      @GottaBeGeek  3 года назад +1

      I’m glad you’re finding value with my videos!

  • @Brymarlina
    @Brymarlina 4 года назад +4

    Keep up the great videos

  • @skywalker9181
    @skywalker9181 2 года назад +1

    You is a heros. Great tuto. Thank for this.

  • @creatinechris
    @creatinechris 4 года назад +47

    You might give yourself a C or C++ for this video but i give you an A+

  • @katherineallen796
    @katherineallen796 Год назад

    This definitely helped me!

  • @siphozuma2494
    @siphozuma2494 Год назад

    Thank you so much, It helped me a lot

  • @nielspaulin2647
    @nielspaulin2647 Год назад

    YOU ARE FANTASTIC. Save me a LOT of time !

  • @TomBrooks-hj7pq
    @TomBrooks-hj7pq Год назад

    Thanks for the help man those json files were confusing at first.

  • @chanuthis.1511
    @chanuthis.1511 Год назад +4

    why is it so hard to set things up holy shit

  • @Funrollercoaster606
    @Funrollercoaster606 Год назад +2

    Finally! A video that doesn't copy and paste stuff and scrolls faster than light.
    edit: Also, im having a issue where everything is red and its always showing me the entire script has errors.

  • @Carriersounds
    @Carriersounds Год назад

    when I paste the hello world file in the explorer like you did at 10:16, the highlight colors for 'vector', and the 'cout' don't appear and just remain white. I've tried looking into color themes and other things, but it just doesn't happen. Any idea why this may be?

  • @user-sg1id8rk4k
    @user-sg1id8rk4k 6 месяцев назад

    It's almost 2024 and this vid still helps people

  • @vahabkhademi2142
    @vahabkhademi2142 3 года назад +1

    Thanks for your clear instruction. I was able to configure VS Code using MiniGW. One thing I can't get done is to find the input terminal, for example when you use the cin >> command and ask for the user input. VS Code says the program is running and waiting for input. But I don't see any panel for input. So I force stop the program. Can you help with this? Thanks!

  • @WhipReviews
    @WhipReviews 2 года назад +2

    g++ --version isn't working for me. PLZ HELP.

  • @nishanthg769
    @nishanthg769 4 года назад +8

    can you do one for python please : )
    ps: i am the 80th subscriber, this is an underrated channel keep doingthegood work and soon many more will follow you, thanks
    : )

    • @GottaBeGeek
      @GottaBeGeek  4 года назад +2

      I’ll add it to the list.

  • @jasoncooper5265
    @jasoncooper5265 4 года назад +4

    So there I was, wondering when I'd see another great video from you. Then BOOM, there is was, a notification 🔔 hit me up!
    Super glad I subscribed and hit the 🔔 icon.

  • @kayloko1
    @kayloko1 3 года назад

    hello, i have trouble linking .h files qith .cpp files because when running the code i get the error winmain not found, i only can include .cpp file instead of .h files .. and it works on codeblocks , but not on vs code, help please

  • @tankieag1117
    @tankieag1117 2 года назад

    THANK YOUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUUU

  • @nickdavid2434
    @nickdavid2434 Год назад

    goat

  • @ashvanths3214
    @ashvanths3214 2 года назад

    i saw certain people using code runner after installing the c/c++ installion whats the difference between this and that

  • @bfskills9942
    @bfskills9942 2 года назад +1

    why it's showing me an error at
    #include
    #include
    #include
    those lines where Im including librarys

  • @nathanhowells9893
    @nathanhowells9893 Год назад

    I am very new at programming (built simple websites years ago) and for some reason started with this but seems really complicated to just start building an app. Guessing a lot of these steps will need to be taken when developing a new project (referencing the .Jason files ect) how would you even start knowing exactly the information in these .Jason files or is it something you don’t learn you just do (as in copy and paste). Sorry hope this makes sense

  • @master_coder8628
    @master_coder8628 3 года назад

    It is saying build finished successfully. My. Exe file has been created successfully. But on running it is saying it is not compatible with the version of the Windows. Pls tell me how to solve this issue

  • @SuryaSarav_
    @SuryaSarav_ Год назад

    This was the first video wherein I got the hang of it.

  • @steveavecillas1114
    @steveavecillas1114 5 месяцев назад

    How do run c11 standard on visual code or c++ 20

  • @jeffreyhymas6803
    @jeffreyhymas6803 Год назад

    I'm late to the party here but I ran into this issue with environment variables and VScode yesterday. If you're opening workspaces or folders from the windows start screen, where it lists recent workspaces/folders, it won't load new environment variables. You have to open the folder or workspace directly from the file explorer or PowerShell. I was being lazy and it bit me in the ass. Took me longer then I care to admit to figure that out.
    Also, great vid dude. Excellent tutorial.

  • @-_-_dano
    @-_-_dano 5 месяцев назад

    Could you show me a course for using a c++ in vscode? please

  • @onielcole8488
    @onielcole8488 2 года назад +1

    Great video. Does it work for C?

  • @Robbinsffxi
    @Robbinsffxi 3 года назад +4

    I don't understand why it's made so unintuitive. How about a button saying: "Enable C++".

    • @GottaBeGeek
      @GottaBeGeek  3 года назад

      I agree. It’s disappointing the amount of steps it still takes to get everything working in a smooth manner for some languages.

  • @SenselessTalk
    @SenselessTalk 2 года назад +1

    Play in x2 speed as this guy wants to be a tutorial channel and vlogger at the same time lol.

  • @astrahcat1212
    @astrahcat1212 9 месяцев назад

    If I just don't make the launch it works, but otherwise it says the exe couldn't be found even though the path is eactly to the built exe. 🤔🤔

  • @vwij1736
    @vwij1736 3 года назад +1

    I am a newbie. I followed your video. Explanation was clear. But for some reason it did not work. I am wondering if there is any way that you can have a look at the stuff and give me a lead. Thanks

  • @tekobodongmo4434
    @tekobodongmo4434 2 года назад

    whenever I press the c key in VS it opens a new file what do I do

  • @jonashart5196
    @jonashart5196 Год назад

    When I hit Run, C++ doesnt show up as a debugger option

  • @danielpicado5292
    @danielpicado5292 9 месяцев назад

    does anyone know how to do this on Mac M1 chip?

  • @KG-ww1nf
    @KG-ww1nf 2 года назад

    Downloaded the Mingw-64 download from sourceforge, and there is no "bin" folder to add. Can I just add the entire folder? I'm new to coding and setting this up is beginning to be a headache.

    • @DarioMarken
      @DarioMarken 2 года назад

      Bro you should NOT learn C++ as a beginner haha, learn javascript or python THEN c++

  • @Pg_Tobby
    @Pg_Tobby 7 месяцев назад

    Hello am stuck with the terminal lart

  • @marshallsweatherhiking1820
    @marshallsweatherhiking1820 Год назад +1

    I'm not new at all to c+/c++ coding, but I find Visual Studio Code so aggravating. I want to edit the tasks.json file to build a multifile project the way I want but there is absolutely no documentation. I read the side it constantly says "use IntelliSense to learn more". WTF! HOW? Hovering over shit tells me next to nothing about anything. The documentation just rattles on about everything except what I want to know.

  • @ommahajan1
    @ommahajan1 3 года назад

    Can I use any other cpp compilers with VS Code.
    I tries MSVC, it did work but you need to open Developer Command prompt every time you need to compile something. Is there any way I can use MSVC and modify task.json and use MSVC directly from VS Code terminal without opening the Developer cmd everytime?

    • @GottaBeGeek
      @GottaBeGeek  3 года назад

      If you open your project in vs code from the developer cmd, then that instance of VS Code will have all the necessary environment variables to use MSVC. Unfortunately, there are still open issues on github around this. I didn't spend too much time looking, so I'm not aware of any ETA on when you can completely remove the need to use the Developer cmd prompt first to get things going. Unless you're attached to MSVC for some particular reason, I'd suggest just moving to MinGW.

    • @ommahajan1
      @ommahajan1 3 года назад

      @@GottaBeGeek Okay. Thank you.😃

  • @jonashart5196
    @jonashart5196 Год назад

    Configure default build task it says "Jake task detection is turned off." What the hell is that

  • @theshark-fg4sq
    @theshark-fg4sq Год назад

    it still didn't work for me pfffff still the red message that says...ntofound.... showing up to me

  • @googleuser9857
    @googleuser9857 3 года назад

    I reached step 3 but the Mingw won't install it says the download is not correct I try to re-download it couple of times but still give me the same message!!? Is there any other site to download this file from??

    • @f3punchout
      @f3punchout 3 года назад +1

      try downloading it to a different location, then copy to your C: drive after that. Or you might need to create a new folder first in your C: drive. then just copy the contents of the download into the folder you created. -- your description is a bit ambiguous but hope that helps!

    • @googleuser9857
      @googleuser9857 3 года назад +1

      I'll try that, thanks

  • @Arman-td3sw
    @Arman-td3sw 3 года назад +2

    why it is so complicated to create and compile a simple cpp app ?

    • @GottaBeGeek
      @GottaBeGeek  3 года назад

      I’m not sure. I agree, the bar for entry to get up and running with a simple C++ app feels much higher than a few of the other popular languages. I still wonder what keeps it so relevant and popular sometimes. I’ll take C#, Javascript/Typescript or Python over C++ any day.

  • @dipendrasingh-rk6gf
    @dipendrasingh-rk6gf Год назад

    sry but my gcc is not responding in my pc

  • @erl2nd
    @erl2nd Год назад

    Can't see a micro screen 😕

  • @Inf4mousKidGames
    @Inf4mousKidGames 8 месяцев назад

    Welp this explained where i went wrong with the task file.
    I didn't use the auto generate/configure option 😂😂😂😂

  • @nikolaykulov4070
    @nikolaykulov4070 Год назад

    I can't start with f5 or ctrl+f5 they are not working! Can anyone help me?

  • @konstantinrebrov675
    @konstantinrebrov675 2 года назад +2

    Remove the music. It is impossible to listen and focus.

  • @nigelpallatt
    @nigelpallatt Год назад +1

    Well, that did not work, so that's now 3 videos trying to explain installation and non of them work, obviously things have changed, so a new up-to-date video is needed.

  • @hansmalm2801
    @hansmalm2801 3 года назад

    It started well, but that background music is not helpful when one is trying to concentrate om what you are saying.

    • @GottaBeGeek
      @GottaBeGeek  3 года назад +3

      I’ve noticed this feedback a couple times now. Thanks for sharing. I’ve started to limit music to the beginning and end.

  • @bolin5757
    @bolin5757 Месяц назад

    Its nice, but pls remove the music....

  • @evann9302
    @evann9302 2 года назад

    ratio t finito

  • @givonzirkind957
    @givonzirkind957 10 месяцев назад

    Loose the music. It's not pleasant and it's distracting.

  • @kampkrieger
    @kampkrieger Год назад

    you messed it all up with that garbage music. Its so sad

  • @temercastle7193
    @temercastle7193 Год назад

    bad

  • @LACHIVA1969
    @LACHIVA1969 2 года назад +2

    This is how it works. Everything else failed: (After installing MIngw-w64 and setting path environtment).
    run or search for MSYS2 MSYS:
    Run this command:
    pacman -Syu
    Press Y when you see"Proceed with installation? [Y/n]"
    Do this again:
    pacman -Syu
    Press Y when you see"Proceed with installation? [Y/n]"
    now run this:
    pacman -S --needed base-devel mingw-w64-x86_64-toolchain
    Press Enter when you see "Enter a selection (default=all):"
    Then run a command prompt window:
    Check this:
    g++ --version
    and check this:
    gdb --version