
Not only does it provide all the integrated tools and wizards for creating C# applications, but it also includes productivity features such as IntelliSense and Dynamic Help. NET environment, you should use Visual Studio.NET.

Obviously, if you want the maximum in productivity in the.
VISUAL STUDIO FOR MAC C SHARP CODE
Figure 3-1 shows what your C# code will look like once you've followed these steps.įigure 3-1 One advantage of using an editor that provides syntax highlighting like the one in Visual Studio 6 is immediate feedback as to whether a keyword is valid. Therefore, when you make a change to this file, you must restart Visual Studio to see your changes. When Visual Studio starts up, it will load this file. This is an ASCII text file that contains all the keywords that should be highlighted-place one keyword on each line. To do this, you create and place in the same folder as the msdev.exe file a file named usertype.dat. Next you need to tell Visual Studio which files are keywords in C#. cs extension, Visual Studio will recognize it as a supported file. Now, when you open a file in Visual Studio 6 with a. (Note that an ending semicolon is optional.) The new Registry value would look like this: - cpp cxx c h hxx hpp inl tlh tli rc rc2 cs The value will contain a string like the following: - cpp cxx c h hxx hpp inl tlh tli rc rc2Īdd the. Text Editor\Tabs/Language Settings\C/C++\FileExtensions

Locate the following key in your Registry by using Regedit.exe or another Registry editor: - HKEY_CURRENT_USER\Software\Microsoft\DevStudio\6.0\ The first step is to change a Visual Studio Registry key. However, because Visual Studio 6 was released a couple of years before C# and was designed to develop Visual C++ applications, you'll need to do a little tweaking for Visual Studio 6 to highlight C# code correctly. One of the biggest advantages of using a programmer's editor is syntax highlighting.
