Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this introduction to the Visual Studio code editor, you’ll add code to a file and explore how Visual Studio helps make writing, navigating, and understanding code easier.
This article assumes you're already familiar with a programming language. If you aren't, we suggest you look at one of the programming quickstarts first, such as create a web app with Python or C#, or create a console app with Visual Basic or C++.
Create a new code file
Create a new file and add some code to it.
Use code snippets
Visual Studio provides useful code snippets that you can use to quickly generate commonly used code blocks. Code snippets are available for several programming languages, including C#, Visual Basic, and C++.
Now add the C# void Main snippet to your file.
The list includes snippets for creating a class, a constructor, a for loop, an if or switch statement, and more.