Template Navigation

The Go To Definition, Navigation bar, View Code features makes navigating around your template quick and easy.

Navigation bar

The Navigation bar is located at the top of the template document and displays the types and members in the current template. Types are always shown in the left drop down menu and members are always shown in the right drop down menu.

When you select a type from the drop down, the caret is placed on the first line of the type. The same is also true when you select a member. The drop down boxes are immediately updated to reflect the current location of the caret.

Go To Definition

This feature will allow you to right click on any identifier (E.G., Classes, Methods, Properties and Variables) in your template and quickly navigate to where they were defined. This eliminates the need to use Find or scrolling around your template to navigate to find a property or method you were looking for.

To use Go To Definition, just right click on an identifier or press F12.

View Code

This feature allows you to open a code behind or partial class that is defined via a CodeTemplates Src attribute. You can quickly navigate to the code behind or partial class without opening up Template Explorer or cluttering the Template Editor.

To use View Code, just right click anywhere in the template document or press F7.

Go To Line

This feature will allow you to jump to any line in the template document. This is very useful when you are debugging an error and you know the exact line number you wish to navigate to.

To use Go To Line, select Go To from the Edit menu or press Ctrl+G.