Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 3/31/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Use Source Editor Enhancements in Microsoft Visual Studio*

A number of Fortran source editor enhancements are available in Microsoft Visual Studio*.

Modules and Procedures Navigation Bar

A two-part navigation bar, located above the source editor pane, lets you navigate to a specific module (left part) and procedure (right part). To enable the navigation bar, choose Navigation Bar in Tools > Options > Text Editor > Fortran > General.

Source Editor Pane

Smart indenting: Smart indenting automatically indents block constructs (such as IF and DO) and left justifies the corresponding end statement. To enable smart indenting, select it in Tools > Options > Text Editor > Fortran > Tabs.

Code snippet insertion: Code snippet insertion lets you insert a prototype construct (such as DO, WHILE, or MODULE) from a list. Use the right-click context menu Snippet > Insert Snippet... option to display the list and insert a snippet.

Delimiter matching: Delimiter (brace) matching lets you jump to a matching statement in a block construct (IF...THEN...END IF, DO...END DO). Use Ctrl] to jump. To enable delimiter matching, use Automatic delimiter highlighting in Tools > Options > Text Editor > General.

Call/Callers graph: Call/Caller information can be collected and shown visually in a graph that indicates the call stacks that lead to a unit of code. To enable Call/Callers graph information, change Collect Call/Callers graph information to True in Tools > Options > Text Editor > Fortran > Advanced > Browsing/Navigation.

Fortran Editor Options Page

Use Tools > Options > Text Editor > Fortran > Advanced to view the Fortran Advanced Options page.

Browsing/Navigation Section

Collect Object Browser information: Choose this option to enable the display of procedures in your project in a hierarchical tree. Once enabled, you can use View > Object Browser to display your procedures.

NOTE:
If the procedures in your project do not show when browsing in My Solution, you can right-click the message (No information. Try browsing a different component set.) and select View Containers as a possible solution.

Disable Database: Choose this option to disable creation of the code browsing database. This may help increase performance on slow machines. If you disable the database, all features that rely on code browsing information will not work.

Enable Find all References: Choose this option to enable display of the location(s) in your code where a symbol is referenced. When this option is enabled, you can use the right-click context menu Find All References option to display a list of references to the selected symbol. Double-click a reference to find that reference.

Enable Go To Definition: Choose this option to enable quick navigation to an object definition. When this option is enabled, you can use the right-click context menu Go to Definition option to locate where the selected object was declared, opening the associated source file if required. (If you have also enabled Scan system includes, any objects declared in system modules such as IFWINTY cause the associated source for that module to be opened.)

Scan system includes: Choose this option to scan system include files. This option is used with one or more of the following options: Collect Object Browser Information, Enable Find All References, Enable Go To Definition.

Intrinsics Section

Enable Intrinsic Parameter Info: Choose this option to enable the display of intrinsic function and subroutine parameter information. When this option is enabled, you can type a name of an intrinsic procedure, followed by an open parenthesis, and information about the procedure and its arguments appears.

Enable Intrinsic Quick Info: Choose this option to enable the display of additional information when the cursor is moved over an intrinsic function or subroutine name.

Miscellaneous Section

Enumerate Comment Tasks: Choose this option to enable the display of a list of tasks consisting of source files containing comments. Comments take the form of the ! character, followed by a token such as TO DO. Valid tokens are listed in Tools > Options > Environment > Task List. When this option is enabled, you can select Comments from the task list using View > Task List. Double-click a comment in the list to jump to its location.

Highlight Matching Tokens: Choose this option to allow identifier highlighting and block delimiter matching. When enabled, this option highlights all references to the identifier under the cursor.

Outlining Section

Enable Outlining: Choose this option to allow the collapsing of whole program units. When this option is enabled, you can click the minus (-) or plus (+) symbols for PROGRAM, SUBROUTINE, FUNCTION, MODULE, and BLOCK DATA statements.

Outline Statement Blocks: Choose this option to allow collapsing of block constructs such as IF and DO. You must also choose Enable Outlining.