Intel® Fortran Compiler
Build applications that can scale for the future with optimized code designed for Intel® Xeon® and compatible processors.
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

Visual Studio 2013 Integration

goetti
Beginner
483 Views

Hi,

I've a minor problem with Intel Fortran Composer integration and Visual Studio 2013.

As far as I can see it is not possible to access the text properties from Fortan document using Visual Studio automation. I fact I want to change indent size from between 2 and 4 chars. Useful for me, because I have to handle old ugly F95 code which uses 2 chars indent and new one which uses 4 chars indent like C++.

In order to change the indent setting at the text editor options (and for a lot of other stuff), I've added a private Add-In to Visual Studio 2013. The Add-Inn works very well but here is one annoying issue: I cannot access the text editor properties of a Fortran document.

This works fine for "C/C++":

Dim props As Properties = DTE2.Properties("TextEditor", "C/C++" )
GetIdentSize = CType(props.Item("IndentSize").Value(), Integer)

This does not work for Fortran:

Dim props As Properties = DTE2.Properties("TextEditor", "Fortran" )
GetIdentSize = CType(props.Item("IndentSize").Value(), Integer)

As I could figure out, the "Fortran" property is not available. It should be there, because all other supported languages "C#", "VB", … expose their properties there. Only when I try to get the Fortran Text Editor properties, an exception is thrown.

This is not a problem from Visual Studio 2013, it is a problem from the Intel Fortran integration. Maybe only the name "Fortran" is wrong, but according to Microsoft Guidelines, application have to use the name which is shown at the options dialog box too.

Product version: Intel® Parallel Studio XE 2015 Composer Edition for Fortran Windows* Update 1 Integration for Microsoft Visual Studio* 2013, Version 15.0.0115.12

Thanks in advance for all comments.

 

0 Kudos
1 Reply
Steven_L_Intel1
Employee
483 Views

The Fortran integration we supply is not structured the same way as Microsoft's. I'll ask the developers if there's a way to do what you want.

0 Kudos
Reply