Friday, June 12, 2020

Suggession Course for High school students: Coding Multiple programming languages in visual studio code

Lets start coding C#, Java and Python in Visual Studio Code...

Visual Studio Code
Download& Install Visual studio code: https://code.visualstudio.com/

C#
Download& Install .NET Core: https://dotnet.microsoft.com/

Java
Download& Install Java: https://www.oracle.com/java/ , open jdk: https://jdk.java.net/

Python
Download& Install Python: https://www.python.org/

Lets Go..

1- Go to specific driver location in your computer and create folder and rename it “ThreeLang”
2- Open folder and in address bar type cmd and Click Enter

3- in cmd window Type code . and Click Enter, the visual studio code opening

4-Go to Extension and type in search bar c#, select and install (see picture)

5- type in search bar java, select and install (see picture)

6-type in search bar python, select and install (see picture)

7-Now we install the three languages extensions, Go to Explorer
8-Create three folders under “ThreeLang” folder and name it Csharp,Java,Python

9-Open terminal (Ctrl + `) and Type cd Csharp, this enter inside Csharp folder

10- Create C# project by Type in terminal (dotnet new console)
11-Open Command Palette by Click (Ctrl+shift+p) and Type (Reload window)

12-This set required configuration to build and debug , Click yes (See picture)

13-in program.cs file write your c# program
14-in terminal type (dotnet build) to build then (dotnet run) to run project

15-in Terminal Type (cd ..),(cd Java) , this enter inside Java folder
16-Create java file (Program.java) and write your java program

17- in Terminal Type (java program.java) to run java program

18- in Terminal Type (cd ..),(cd Python) , this enter inside Python folder
19- Create Python file (Program.py) and write your python program
20- in Terminal Type (python program.py) to run python program