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

Intel FORTRAN Composer 2013 & MS Visual Studio Integration

Enrique_Benedicto
789 Views

Greetings,

I used to have Intel FORTRAN Compiler 9.1 with MS VS2005 integration back then.  A couple of years ago, we upgraded everything to Intel Fortran Composer 2013 & MS Visual Studio 2012 (or 2010).

I noticed since a few editor behavior changes that really bug me and I'm wondering if there are settings anywhere to change those behaviors, to be more like the previous MS VS integration.  In some cases, the new behavior is also NOT consistent with the behavior when editing "C" files.

The most annoying one is when selecting text and using the "Comment out the selected lines (Ctrl+K, Ctrl+C)" command.

If I recall properly, the column location for the first "!" used to be based on how you selected the text.  So, if I selected text from column 1, the "!" would be in column 1.

Now, when I select and comment text, the column location of the "!" is based on the position of the left-most character of the selected text, which is really annoying!  We still work in FORTRAN Fixed Format here, so my commented lines often end up in the 7th column, instead of column 1, as I'd like them to be.  What's worse, if I have a continuation character in column 6 prior to commenting the lines, then the "!" ends up in column 6 and the file fails to compile!!

I can't imagine this is by design and this is not how the editor behaves for "C" files.

I have other annoyances on how the editor "feels" compared to the previous version. Sadly, however, I haven't written those ones down and can't think of them right now.  Oh well... so much on relaying on my memory...

Can the above behavior be changed (or fixed, cause I don't think it should behave like this)?

Thanks.

 

0 Kudos
4 Replies
Enrique_Benedicto
789 Views

I've got another annoyance...

If I want to insert new lines before a given Comment line (which starts at column 1, for instance)... if my cursor is at column 1 OF that Commented line... then pressing ENTER (to add new lines) will "Tab" my commented line, to line up with the code above.  That is, if I have something like this:

        X = 1

C      some comment

If I placed my cursor at column 1 of the "C      some comment" and pressed ENTER to add a new line, my code would now look like this:

        X = 1

        C      some comment

Really annoying!  Seems the editor shouldn't mess around with the format of existing code, unless specifically told to do so with the Ctrl+K, Ctrl+F (Format) command).

This behavior is also different than the normal editor behavior in Studio.

 

0 Kudos
Steven_L_Intel1
Employee
789 Views

I can reproduce the issues with block commenting in fixed-form, and with the reformatting. I will report those to the developers.

I can also reproduce the change in behavior for free-form, though this could be more a matter of taste. I will ask the developers about it.

0 Kudos
Enrique_Benedicto
789 Views

Thanks Steve...

BTW... are you the ONLY guy that works there?  Every. Single. Time. I see something under the Forums, it's from you...

Hope they pay you well :)

0 Kudos
Enrique_Benedicto
789 Views

As for the Free-Form case...

IMHO, I think the "feel" of the editor should match the behavior of the editor for other languages, in general.  Or at least, give the options through some settings.  Otherwise, people get confused when switching from one language to another.

But thanks again for looking into it.

0 Kudos
Reply