Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.

Line Numbers

reneeculver
Beginner
581 Views
Is there any way to get line numbers in the editor of VS. Error messages give line number but there is nothing to refer them to.....

Renee
0 Kudos
2 Replies
IanH
Honored Contributor III
581 Views
Depending on your Visual Studio version, try something like menu path Tools > Options, then in the left hand pane of the resulting dialog expand and select Text editor > Fortran* > General, then on the right hand side under Display select Line numbers.

* If you want line numbers for all types of source file, then select All Languages instead of Fortran.

Note that if you double click on an error message in the output window or the error list window then the cursor (usually) gets positioned on the location of the error.
0 Kudos
Steven_L_Intel1
Employee
581 Views
What I usually do is go to the "All Languages" option, click on the checkbox for Line Numbers to clear it and then click on it again to enable it for all languages.
0 Kudos
Reply