Syntax highlighting

Cake extension adds a syntax highlighting feature to Visual Studio. This is a common feature of IDEs, where source code are presented in different formats, colors, and fonts. The source code highlighting is done based on defined groups, categories, and sections.

After the installation of the extension, any file with the .cake extension can be opened in Visual Studio with complete task and syntax highlighting. There is currently no IntelliSense support for the .cake script files in Visual Studio; this feature is expected to come later.

The following screenshot shows the syntax highlighting of a build.cake file in Visual Studio:

Get C# and .NET Core Test Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.