How to Install Visual Studio Code in 5 Minutes without Errors! [HINDI]
Use This OFFICIAL LINK to Follow Along the Tutorial on Installing Visual Studio Code:
(Source: Microsoft)
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages and runtimes (such as C++, C#, Java, Python, PHP, Go, .NET).
SETUP INSTALLATION
• Download the Visual Studio Code installer for Windows.
• Once it is downloaded, run the installer (VSCodeUserSetup-{version}.exe). This will only take a minute.
• By default, VS Code is installed under C:Users{Username}AppDataLocalProgramsMicrosoft VS Code.
C/C++ for Visual Studio Code
C/C++ support for Visual Studio Code is provided by a Microsoft C/C++ extension to enable cross-platform C and C++ development on Windows, Linux, and macOS. When you create a *.cpp file, the extension adds features such as syntax highlighting (colorization), smart completions and hovers (IntelliSense), and error checking.
INSTALL THE EXTENSION:
• Open VS Code.
• Select the Extensions view icon on the Activity bar or use the keyboard shortcut (Ctrl+Shift+X).
• Search for ‘C++’, Install It
• Search for ‘Coderunner’ , Install It
SET UP YOUR C/C++ ENVIRONMENT:
C++ is a compiled language meaning your program’s source code must be translated (compiled) before it can be run on your computer. The C/C++ extension doesn’t include a C++ compiler or debugger, since VS Code as an editor relies on command-line tools for the development workflow. You need to install these tools.
INSTALL A COMPILER:
Let’s install Mingw-w64 via MSYS2. Mingw-w64 is a popular, free toolset on Windows. It provides up-to-date native builds of GCC, Mingw-w64, and other helpful C++ tools and libraries.
• Download using this direct link to the MinGW installer.
•
• Run the installer and follow the steps of the installation wizard. Note, MSYS2 requires 64 bit Windows 8.1 or newer.
• In the wizard, choose your desired Installation Folder. Record this directory for later. In most cases, the recommended directory is acceptable. The same applies when you get to setting the start menu shortcuts step. When complete, ensure the Run MSYS2 now box is checked and select Finish. A MSYS2 terminal window will then automatically open.
• In this terminal, install the MinGW-w64 toolchain by running the following command:
pacman -S –needed base-devel mingw-w64-ucrt-x86_64-toolchain
• Accept the default number of packages in the toolchain group by pressing Enter.
• Enter Y when prompted whether to proceed with the installation.
• Add the path to your MinGW-w64 bin folder to the Windows PATH environment variable by using the following steps:
• In the Windows search bar, type Settings to open your Windows Settings.
• Search for Edit environment variables for your account.
• In your User variables, select the Path variable and then select Edit.
• Select New and add the MinGW-w64 destination folder you recorded during the installation process to the list. If you selected the default installation steps, the path is: C:msys64ucrt64bin.
• Select OK to save the updated PATH. For the new PATH to be available, reopen your console windows.
• Check that your MinGW-w64 tools are correctly installed and available, open a new Command Prompt and type:
gcc –version (HIT ENTER)
g++ –version (HIT ENTER)
gdb –version (HIT ENTER)
You should see output that states which versions of GCC, g++ and GDB you have installed. If this is not the case, make sure your PATH entry matches the Mingw-w64 binary location where the compiler tools are located or reference the troubleshooting section.
KEYBOARD SHORTCUTS EDITOR
You can open this editor by going to the menu under File – Preferences – Keyboard Shortcuts
WHICH VERSION ARE YOU USING?
On Linux and Windows, choose Help – About.
On macOS, use Code – About Visual Studio Code
HOW CAN I DO A CLEAN ‘UN-INSTALL’ OF VS CODE?
If you want to remove all user data after uninstalling VS Code, you can delete the user data folders Code and .vscode. This will return you to the state before you installed VS Code. This can also be used to reset all settings if you don’t want to uninstall VS Code.
The folder locations will vary depending on your platform:
• Windows – Delete %APPDATA%Code and %USERPROFILE%.vscode.
• macOS – Delete $HOME/Library/Application Support/Code and ~/.vscode.
• Linux – Delete $HOME/.config/Code and ~/.vscode.
THIS VIDEO COVERS TOPICS:
how to install visual studio code step by step
how to install visual studio 64 bit
how to install visual studio for beginners
how to install visual studio code for all users
how to install visual studio for c++
how to install visual studio in windows 10/11
[ad_2]
source