Skip to content

ariful305/cplus-setup-vscode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 

Repository files navigation

C++ setup in vscode/vscodium

This guide will walk you through the process of setting up a C++ development environment in Visual Studio Code or VSCodium. Both are powerful, open-source code editors that provide excellent support for various programming languages, including C++.

setup process

  • Download vscode this link and install

    or download vscodium this link and install

  • Once you have installed vscode or vscodium, now its time to install some extensions.

  • Download MinGW this link and install

  • Now open 'This PC' and open 'local Disk C' you should see mingw file and click on bin folder. Now you have to copy the folder destination.

  • Now search View advance system setting in windows setting and open it and goto Environment Variables . Now click on the path in system variable and click on edit and now click on new and paste the bin path that we have copied in the previous step and then click Ok.Now click ok till there are no pop ups left.

  • Let's check if MinGW has been successfully installed or not. open command prompt and run

  g++ --version
  • if you see the g++ version , you did it.
  • Now open vscode and make a file with a extension of .cpp. lets type our first code. You can copy and paste the code that I have provided below
  #include<iostream>
  using namespace std;
  int main()
  {
      cout<<"hello world";
  }
  • Right click and click on run or press keyboard shortcut 'Ctrl+Alt+N'.

  • You can also run input and output test case use Competitive Programming Helper (cph) .

  • You can import custom snippets .To access this setting, you can either click on the settings icon on the sidebar and then click on user snippets create a new snippets and copy the cpp.json on this repository and paste it to your file and save it.

About

This extension provides a collection of handy snippets for C++ programming in Visual Studio Code.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published