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.

How the proper editor window is loaded

How the proper editor window is loaded - Visual Studio Tutorial

From the course: Visual Studio 2019 Essential Training

Start my 1-month free trial

How the proper editor window is loaded

- [Instructor] There are dozens of code editors available in Visual Studio. Each code language and markup language has a dedicated editor. This way each editor knows how to represent the text shown and which keywords are part of the language. Then the editor can apply the formatting rules that define the appearance of the text. I'll start by opening this ExamplesHere.cs file. When I double-click on it it opens it in an editor, and it knows that it's a C# file because of the file extension .cs. There's somebody that works at Microsoft that wrote the editor rules for this, and so the rules are things like public, void, new, and var, these are keywords and those should be colorized blue. Strings are colorized as red. Comments are created in a C# file by putting these characters at the beginning of a line of text. So that comments out that line, and in this case it get colorized green. Other languages have different sets of rules so they have different editors. The person that wrote the…

Contents