WEBINAR: On-demand webcast
How to Boost Database Development Productivity on Linux, Docker, and Kubernetes with Microsoft SQL Server 2017 REGISTER >
This tip was proposed by Sairama Jamalapuram. Syntax coloring for user-defined keywords is used for C++ files only.
Here are the steps you need to take to enable syntax coloring for user-defined keywords. The steps are taken from the online help.
- In the same directory as msdev.exe (for Visual Studio .Net search for ...\Microsoft Visual Studio.NET\Common7\IDE\devenv.exe), use the Text editor or Windows Notepad to create a text-only file named usertype.dat.
- Add your keywords to usertype.dat, one keyword per line. Note: The usertype.dat file is read during initialization. It cannot be renamed, nor can it be reloaded during an editing session. The syntax coloring mechanism checks the usertype.dat file last. Thus, all previously defined color settings take precedence over the user-defined keywords.
- Save the file as a text-only file, exit, and then restart Visual Studio.
- From the Tools menu, choose Options.
- Select the Format tab.
- In the Colors box, select User Defined Keywords.
- Set the font, font size, foreground color, and background color to your preferences.
- Click OK.
- Restart DevStudio.
Download keyword file. This file is 181 Kb zipped and expands to 638 Kb.
Date Last Updated: August 11, 2003 ISO C99: 7.18 Integer types