Friday, March 27, 2020

C++ TUTORIALS : SETTING UP THE PROJECT ENVIRONMENT.



Welcome to journey of C++. I will be showing you how to develop C++ using Visual Studio Code along with the C++ and Easy C++ Projects extensions. So get started

Downloading Visual Studio Code

First we will need a code editor or IDE, we will use Visual Studio Code because it is lightweight like Sublime, but has some extra features specially Intellisense. You can download Visual Studio Code here, you will land on a page like this:

After downloading VSC simply run it and install it
Make sure to check all the boxes .After installing simply launch it


Setting up VSC for C++ development

The first time you open VSC you will see a welcome window. VSC has a very simple layout: a bar on the left with 5 buttons (File explorer, Find, Git integration, Debug, Extensions), a status bar on the bottom and a window with tabs for the editors. Click the last button to open Extensions:

And search there for c++ extension provided by Microsoft , install the extension

Next search for Easy C++ Projects, install it.


Now we are ready to run our first cpp projects.




    Creating a C++ project

    Press F1, a little window will appear with lots of different commands, search for "c++" and click "Create new C++ project":


    Now we will be asked what compiler we want to use, look the Easy C++ extension page for information on how to setup a compiler for your operating system. I will use Windows Subsystem for Linux.          

    Code

    Now that we finished the creation step, VSC will generate the project structure for us, and open main.cpp with some example code:


    If you face problems on coding on vscode you can download
    DEV c++ ide from here . Its not that dynamic but much more easy to use use on the go


    so it's for today ,stay connected and please do share this course among your friends ....




    Share on Whatsapp

    No comments:

    Post a Comment