![](https://static.wixstatic.com/media/6d8832_4621656d1cf64202a703bffc935585f5~mv2.jpg/v1/fill/w_980,h_653,al_c,q_85,usm_0.66_1.00_0.01,enc_avif,quality_auto/building.jpg)
5 Key Steps for Getting Started With Coding On C#
Mar 23, 2024
2 min read
2
36
Coding is an intricate and complicated topic. It can be daunting for those who are interested in coding but are quite sure how exactly to get started. Today I'm going to give you some steps to getting started Coding. Below we will cover how to instill everything you need, along with the basic syntax.
Installing Microsoft Visual Studio/Visual Code: To get started we want to download an app that will allow to type and run code. For this we will be using Microsoft's Visual Studio/Visual Code. Visual Studio and Visual Code are very similar, and I recommend that MAC iOS users use Visual Code, and that Windows users to Visual Studio. Both of these apps are absolutely free, so you want to have to worry about paying for a thing. Below is a link where you can install Visual Studio or Visual Code. If you are going with Visual Studio, make sure to choose the "Community" option.
2. Installing C#: The next thing we want to do install the coding language we are going to use. We are going to be downloading C#. C# is a powerful language that is similar to other important coding languages like Java and C++. To install C#, click the link below and hit the "Download .NET" button in the top right. Then click "8" when you are prompted for the version of .NET.
C# docs - get started, tutorials, reference. | Microsoft Learn
3. How to Open a Folder: Now that we have everything installed, we can start coding! Open of your Visual Studio/Code and go up to the "File" button in the top left corner. Navigate down to where it says, "Open Folder" and click on it. Your file explorer should open. Now create a folder anywhere you'd like on your computer. This folder will hold all of the files that go into one coding project. Once you've made the project click on the "Select Folder" and Visual Studio/Code will create your new coding template.
4. Creating your C# File: Don't worry we are almost ready to code, just one last step. We need to create our C# File so we can code. To do this Go to the little 3 dots at the top then click on "Terminal" then "New Terminal". Now that your terminal is created go to it and type the command prompt below "dotnet new console --use-program-main". Once you've done that, your C# file will be created, and we can finally start coding!
5. Basic C# Syntax: Now that we finally are finally ready to code, I am going to leave with some basic C# syntax for getting started. If you have other questions or need help getting some help coding, I recommend using an AI such as Chat GPT. Remember to make sure you understand your code if you use AI to write it.
Int | An integer holds whole numbers such as 1 to 1,000,000 |
Double | A double hold fractional numbers such as 1.28 to -7.3933 |
Bool | A bool stores true and false values |
String | A string holds a sequence of character and in enclosed with quotations, example: "A string holds words and characters" |
Console.WriteLine | Console.WriteLine allows to print/show something in the output of you code when it is run |
You now have some of the basic things you need to start coding, Good Luck and happy coding!