Skip to content

Latest commit

 

History

History
40 lines (32 loc) · 2.3 KB

color-coding-in-query-editors.md

File metadata and controls

40 lines (32 loc) · 2.3 KB
title description author ms.author ms.date ms.service ms.subservice ms.topic helpviewer_keywords monikerRange
Color Coding in Query Editors
Learn how text categories are color coded to help you more easily find specific text, and how you can configure a custom color scheme.
markingmyname
maghan
03/14/2017
sql
ssms
conceptual
Query Editor [SQL Server Management Studio], color coding
color coding [Query Editor]
>=aps-pdw-2016||=azuresqldb-current||=azure-sqldw-latest||>=sql-server-2016||>=sql-server-linux-2017||=azuresqldb-mi-current

Color Coding in Query Editors

[!INCLUDESQL Server Azure SQL Database Synapse Analytics PDW]

The text entered in the code editors is assigned a category; each category is identified by a color. The colors help you quickly find text in your code. For example, comments stand out in dark green. The following table lists the most common colors. You can view the whole list of colors and their categories, and configure a custom color scheme by using the Tools, Options menu. For more information about how to change the default colors, see Change Font Color, Size, and Style.

Default Code Colors

Color Category
Red SQL string
Dark green Comment
Black on silver background SQLCMD command
Magenta System function
Green System table, view, or table-valued function. Also, the system schemas sys and INFORMATION_SCHEMA.
Blue Keyword
Teal Line numbers or template parameter
Maroon [!INCLUDEssNoVersion] stored procedure
Dark gray Operators

Status Bar

You can configure registered servers or [!INCLUDEssDE] servers in Object Explorer to have different colors in the [!INCLUDEssDE] Query Editor status bar. This helps you identify which server each editor window is connected to when you have many windows open at the same time. For more information about setting status bar colors, see Status Bar (Database Engine Query Editor).

Some types of editors do not display the status bar, or do not support multiple colors.