From the course: Visual Studio 2019 Essential Training

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Set your format rules for a language

Set your format rules for a language - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

Set your format rules for a language

- [Instructor] To review the basics of code formatting, each code editor has a set of rules that it follows when you invoke the format document commands. Some of these rules are configurable, and that's what we'll look at in this video. You'll find these rules sit in the tools options dialogue in the text editor section. And each language that supports code formatting has its own rules section. For example, in basic you'll find them in the code style portion. We're looking at c sharp today. So I'll open up the code style. I'll be looking, in this video, in the formatting section. In other videos, I'll look at the general and the naming portion of code styles. Let's start by looking at general. These are all on by default, and what this means is that visual studio will try to format your c sharp code as you're typing. So for example, when you type in the end curly brace, on a block of code, all the code that's within those two curly braces will be reformatted. When you're working on a…

Contents