C++ in VS Code: A Quick Guide

แชร์
ฝัง

ความคิดเห็น • 80

  • @o.d71
    @o.d71 6 หลายเดือนก่อน +94

    I think it's somewhat ironic that a Microsoft employee uses a Mac, especially while some Windows users here are complaining that this tutorial doesn't work for them. don't you think?

    • @GilbertoAlbino
      @GilbertoAlbino หลายเดือนก่อน +1

      Who can you can cross-platform solutions using only one platform? And because on Windows Microsoft is forcing people to use Visual Studio (not VS Code)?

  • @lilmnm616
    @lilmnm616 8 หลายเดือนก่อน +58

    Why does everyone at microsoft do vscode videos on a mac?

    • @taxevader86
      @taxevader86 5 หลายเดือนก่อน +6

      lol

    • @nuvotion-live
      @nuvotion-live 4 หลายเดือนก่อน +2

      Because they want you to use proprietary Visual Studio if you've already bought their proprietary operating system.

  • @stefanoabrigo
    @stefanoabrigo ปีที่แล้ว +29

    Ok, it would be nice to get a walkthrough on how to include a 3rd party library and create a project of multiple cpp files.

    • @AlexandraKemper
      @AlexandraKemper ปีที่แล้ว +6

      That's a great idea, for our next video we can pick up where we left off from this video and make a slightly bigger project. Is there anything else you would like to see or have explained?

    • @stefanoabrigo
      @stefanoabrigo ปีที่แล้ว +2

      Thank you for the reply, maybe an explanation on how to setup lauch.json for those kind of projects?
      I usually use the Cmake extension and run the projects from that but a basic undertsanding of how to setup launch.json would be nice. If I get some other ideas on what to ask i will do it in the next videos.@@AlexandraKemper

  • @pruthvirajhm
    @pruthvirajhm ปีที่แล้ว +4

    Haa they solved the biggest problem of all time.
    Thanks for coming up with this 🎉

  • @Rich_YTS
    @Rich_YTS 9 หลายเดือนก่อน +17

    i dont have the option to install a compiler. only gcc and g++

    • @HalfBadMC
      @HalfBadMC 7 หลายเดือนก่อน +1

      This happened to me too, on the right there are a few instructions to download one

  • @prasenjitgiri919
    @prasenjitgiri919 ปีที่แล้ว +3

    i have enjoyed the pace at which you speak. I will try to incorporate that in work life.

  • @RutgherPruijm
    @RutgherPruijm 10 หลายเดือนก่อน +3

    When I try to do the 'open walkthrough' part, VS doesn't seem to have this on W11?

    • @shubhanbhasin
      @shubhanbhasin 10 หลายเดือนก่อน

      it does

    • @JasperBerends-r4t
      @JasperBerends-r4t 10 หลายเดือนก่อน +2

      Care to elaborate where we can find this then @SbDaBoy ? because using ctrl+p and typing "open walkthrough" doesnt return any results for me

    • @gregferencko2323
      @gregferencko2323 10 หลายเดือนก่อน

      yes -- I have the same problem @@JasperBerends-r4t

    • @bariemaiii
      @bariemaiii 7 หลายเดือนก่อน +4

      ctrl + shift + p for windows!

    • @voxeledphoton
      @voxeledphoton 6 หลายเดือนก่อน +6

      you may have forgot the >

  • @ziadwael3009
    @ziadwael3009 11 หลายเดือนก่อน +2

    it solved me alot of things , really really thank you❤

  • @charlessam6611
    @charlessam6611 9 หลายเดือนก่อน +14

    Can you do one for vs code on windows please 🙏

  • @SRHMusic012
    @SRHMusic012 9 วันที่ผ่านมา

    On Windows 10, VS Code 1.96.3, a few differences from the Mac tutorial, and still not working with the MSVC compiler in VS Code:
    - Launch VS Code from a Developer Command Prompt in the project directory with "code ." .
    - If you don't see the Welcome: Open Walkthrough, add a ">" (greater-than) after clicking ctrl-p.
    - Hello.cpp won't compile due to missing includes, e.g. float.h is needed for cfloat, but it's apparently not installed with the MSVC installation. (Yes, I've searched the drive for float.h.)
    Other tutorials show the steps for gcc and MYSYS2, not MSVC. Discussions at StackOverflow indicate MSVC works okay in the full Visual Studio.
    Gcc is common with Linux, anyway, so hopefully that works in VS Code. Otherwise there are other IDEs out there.

  • @exploringgodscountry
    @exploringgodscountry 3 หลายเดือนก่อน +1

    I cannot get any of these tutorials to work. I'm following built in steps with the extension as well as your video. Visual Code is not behaving in the same manner as you show. For instance typing "Open" doesn't result in any findings in the command pallet. I have installed a C++ compiler. The cl.exe one which automatically installed when I modified my Visual Code installation per another tutorial you have for visual code. However, I cannot link the compiler to Visual Code. So I have no way to build a project. It seems many of your tutorials are outdated and or incongruent. It's leaving me quite confused...

    • @SirusStarTV
      @SirusStarTV 2 หลายเดือนก่อน

      You need to open "Developer Command Prompt For VS" that was installed with visual studio and run "code ." in terminal from a folder of your c++ project. The Developer Command Prompt sets up PATH environment variable to point to c++ build tools like compilers, linkers etc.

  • @nothingisreal6345
    @nothingisreal6345 ปีที่แล้ว +1

    Theses video are extremly helpful!

  • @beauty_of_islam86
    @beauty_of_islam86 ปีที่แล้ว +2

    Please make an amazing playlist on c++

    • @AlexandraKemper
      @AlexandraKemper ปีที่แล้ว

      We are working on it! Is there anything specific you would like to see in these videos? Helpful C++ features to know about? How to use Copilot for C++?

  • @pranavkeshav20
    @pranavkeshav20 6 หลายเดือนก่อน +1

    I'm running on Mac, everything is fine except one really annoying issue. Every time, I debug/run any cpp file, the mac's privacy and security window pops up and I have to press allow every single time. For example, I have a C++codes folder in my Documents folder and I have sample.cpp in this C++codes folder (along with all the required json files). Every time I debug/run the sample.cpp from VScode app, it pops a message that "sample would like to access files in your Documents folder". I get 2 options - Allow and Don't allow. This message does not come if I compile from terminal though, but I prefer to compile/run from VScode app; that was the whole purpose of installing it. I can also build on VS code and then run on in-built terminal without any permissions message, so I guess it's an issue arising from running debugger perhaps?

  • @allemails6617
    @allemails6617 7 วันที่ผ่านมา

    "Create issue in gituhub repo"... can you expand on this? Thanks

  • @CrusadeVoyager
    @CrusadeVoyager ปีที่แล้ว +2

    Quick setup fr C++, up and running, Nice ❤

    • @meninnik
      @meninnik 6 หลายเดือนก่อน

      какая нахер быстрая

  • @TheUIArchitect
    @TheUIArchitect ปีที่แล้ว +4

    What's the best course to start learning again C++?

    • @pepperpatty2446
      @pepperpatty2446 5 หลายเดือนก่อน

      From what I've seen there aren't any good ones online. Your best bet is on books. The Deitel ones are classics. Also "Computing Concepts with C++ Essencials" and "C++ Primer",

    • @No-0ne-is-Alone
      @No-0ne-is-Alone 3 หลายเดือนก่อน

      learncpp website. I started from scratch with no prior coding experience and I have been having a blast. The site is free and teaches you everything from scratch.

  • @nuvotion-live
    @nuvotion-live 4 หลายเดือนก่อน +5

    This is not a good look, Microsoft. Let me correct this video title for you: "C++ in VS Code on Mac"
    If you're on Microsoft Windows, you have to install MINGW (Minimalist GNU for Windows, implementation of GNU Compiler Collection (GCC)), add it to your system environment variables. May have to restart your computer. Edit your user preferences to change the default shell. So on and so forth.
    You should rename this video and save Microsoft Windows users confusion when setting up their C++ environments. Or is this just meant to funnel people to proprietary Visual Studio?
    This type of stuff is PLATFORM-SPECIFIC!

  • @Amir-gi5fn
    @Amir-gi5fn 11 หลายเดือนก่อน +4

    It just installs multiple apps and downloading 1.5 gig just for a single compiler

  • @Netryon
    @Netryon ปีที่แล้ว

    Can't use special symbols here so it's my only option I wonder why if it's not some web input form. I could say it's is same getting started problem as Docker, which is now in every career requirement and all I want is to run it alone not with a team. This is cruel - half of students won't pass exam and this is a language for games, but don't need it if there is no game jam game/example made with blueprints. There is some tools css javascript processors you only heard about it and need it more than Opengl and Vulcan 3:06. So I think where do I find a terrain and where would I add it's tiled texture and here it's in some hidden terrain paint settings with normal maps which I know everything about. This was new and introduced with latest frameworks 4:07, but learning that again as project specific settings which is only learned by practicing it - I don't what to spend a day figuring out what that line of code does or why that version don't compile.

  • @ngwebdev
    @ngwebdev ปีที่แล้ว +2

    Thank you )

  • @trajectory-g7c
    @trajectory-g7c 3 หลายเดือนก่อน +1

    Watch Out Folks!! 0:53 Windows OS, ( It's not Ctrl+P !!! ) It's Ctrl+Shift+P

    • @SirusStarTV
      @SirusStarTV 2 หลายเดือนก่อน

      The popup menu is the same but with ">" symbol that transforms it into "command pallete", Ctrl+Shift+P just directly opens it.

  • @Alberto_Cavalcante
    @Alberto_Cavalcante ปีที่แล้ว +3

    Can I follow the same steps for Windows?

    • @anonymusplayer3031
      @anonymusplayer3031 ปีที่แล้ว +6

      You think 😂 no you install mingw then you configure path variables and then you use code runner and you should be up and running

    • @JustinShaedo
      @JustinShaedo 10 หลายเดือนก่อน +6

      @@anonymusplayer3031just reinforcing what's said here: this MS made instructions for a MS program won't work in the MS environment. I spent awhile trying to get it working, then just followed another tutorial.

  • @Melonstudios-j7s
    @Melonstudios-j7s หลายเดือนก่อน

    open walk through is not showing after .....pressing ctrl+p

  • @Dmytro_L
    @Dmytro_L 7 หลายเดือนก่อน +1

    If you are responsible for cpp integration, you failed miserably. I had to configure launch.json step by step and it's pain

  • @deliciousfood6991
    @deliciousfood6991 ปีที่แล้ว

    that Didn't work with me! is there no one extension that do all the work to run & compile codes!!!

    • @juanmacias5922
      @juanmacias5922 8 หลายเดือนก่อน

      The Code Runner extension does.

  • @guh9202
    @guh9202 21 วันที่ผ่านมา +1

    Bruv using clang really? Not their own msvc

  • @Ti13wyldcard
    @Ti13wyldcard 5 หลายเดือนก่อน

    are there any equivalent for the c language?

    • @code
      @code  5 หลายเดือนก่อน

      Can you clarify your question? Equivalent what?

    • @SirusStarTV
      @SirusStarTV 2 หลายเดือนก่อน

      The same compiler compiles both C and C++

  • @7_of_9
    @7_of_9 ปีที่แล้ว +1

    Nice! Now let's code for dummies I have zero expectations

  • @JasperBerends-r4t
    @JasperBerends-r4t 10 หลายเดือนก่อน +1

    There is no "Open Walkthrough" option for me

    • @JasperBerends-r4t
      @JasperBerends-r4t 10 หลายเดือนก่อน +2

      On windows it is ctrl+SHIFT+p for the command pallet.

    • @DesiBoy-m8o
      @DesiBoy-m8o 6 หลายเดือนก่อน +2

      You may have forgotten the > at first..

  • @AtulPayashi
    @AtulPayashi 10 หลายเดือนก่อน +1

    Mam please solve the problem of visual studio code when I am pressing and it says every time that n,n is not a command

  • @__hannibaalbarca__
    @__hannibaalbarca__ 4 หลายเดือนก่อน

    I have problem with installing Boost library in macOS with VScode, and final i switch to tmux and NeoVim is better we need more how to configure package, and …

  • @bla4224
    @bla4224 3 หลายเดือนก่อน

    There is no "open walkthrough" - outdated video?

  • @SarthakMahadik-j5m
    @SarthakMahadik-j5m ปีที่แล้ว

    I'm not able to enter my password in terminal

    • @AlexandraKemper
      @AlexandraKemper ปีที่แล้ว

      Are you seeing the same terminal message as in the video? Is it stating that your password is incorrect? Or just that your keyboard is not letting you type?

    • @larafathy9610
      @larafathy9610 10 หลายเดือนก่อน

      my keyboard is not letting me write what should I do?
      @@AlexandraKemper

  • @sonnichjensen
    @sonnichjensen 8 หลายเดือนก่อน

    Why is the text fuzzy?
    I do not get the place to set configuration in my version of VS Studio?
    What is the speed key for toggling breakpoints?

  • @juanmacias5922
    @juanmacias5922 8 หลายเดือนก่อน

    The Code Runner extension compiles with g++ (at least in Linux), and runs C++ without any setup. xD

  • @nelsonberm3910
    @nelsonberm3910 6 หลายเดือนก่อน

    thank you!

  • @etzmannschnappuleck1181
    @etzmannschnappuleck1181 3 หลายเดือนก่อน +1

    Typically MS, doesn't work the way it should!

  • @nhanNguyen-wo8fy
    @nhanNguyen-wo8fy 7 หลายเดือนก่อน

    0:45 Cpp walk through

  • @ale123ksa5
    @ale123ksa5 4 หลายเดือนก่อน

    brate ne radi ti ovo nesto neumete da objasnite

  • @guh9202
    @guh9202 21 วันที่ผ่านมา +1

    using a MACBOOK for this smh....

  • @flipflop1758
    @flipflop1758 5 หลายเดือนก่อน +3

    Omg she is using a white theme.

  • @kennethhawkins5943
    @kennethhawkins5943 4 หลายเดือนก่อน

    This "tutorial" is mostly useless. If you are doing actual development, your project will consist of multiple files and multiple build targets. At the very least you will have a debug build and a release build. How do you set up dependencies, multiple build targets, control obj output, pre-compiled headers, etc.

  • @shimantonahid5398
    @shimantonahid5398 4 หลายเดือนก่อน

    Great help for windows user… nnsns 😑🌵

  • @dennistang6459
    @dennistang6459 4 หลายเดือนก่อน +1

    A perfect Mac is the one installed with a Linux OS.

  • @khatchshah3697
    @khatchshah3697 5 หลายเดือนก่อน

  • @arghjain1949
    @arghjain1949 ปีที่แล้ว +1

    Some one really use light theme in vs code 😅???

    • @AlexandraKemper
      @AlexandraKemper ปีที่แล้ว +2

      It was the recommended video format ... my eyes were almost blinded by the brightness while recording 😆