How to measure Fortran Code metrics in Visual studio? - visual-studio

How to measure code metrics (Maintainability Index, Cyclomatic Complexity, etc.) of an Intel visual Fortran project ?
We are using Intel Parallel Studio 18 with Visual Studio 2017. The measurement seems possible with other languages.

Related

VS 2022: High RAM and CPU issue with Roslyn Code Analysis

We have a huge solution (ASP.NET MVC, C#) in Visual Studio 2022 (v.17.2.2 64bit).
Roslyn Code Analysis is always using high CPU and RAM.
Is there a way to prevent this issue? A configuration or something else?
In Visual Studio 2022, I've resolved it by disabling these two checks:
after that, Visual Studio works well.
This has apparently been fixed in VS2022 v17.3
https://developercommunity.visualstudio.com/t/vs-2022-high-cpu-use-by-servicehubroslyncodeanalys/1610702

How to use the Fortran compiler in Intel Parallel Studio XE with Visual Studio

I am trying to debug a Fortran code. I have installed Intel Parallel Studio XE which includes the iFort compiler and Microsoft Visual Studio. During the installation of Intel Parallel Studio XE, it showed a message saying it's now integrated with Visual Studio 2019 but when I try to create a new project in Visual Studio, it does not show an option for Intel Fortran Compiler, so I cannot create a Fortran project.
Any ideas on how to use the Intel Fortran compiler with Visual Studio?
Thanks!
I found the solution... posting here so that it can help others who might stumble upon the same problem. You need to install the Desktop development with C++ workload in Visual Studio. Refer to the links below:
https://software.intel.com/en-us/forums/intel-fortran-compiler/topic/843126
https://software.intel.com/en-us/articles/intel-parallel-studio-xe-compilers-required-microsoft-visual-studio

Making Visual Studio 2019 a Fortran IDE (with gfortran)

I would like to know how I can tune Visual Studio 2019 to have a fully featured modern Fortran IDE for gfortran.
This would include:
one click compilation
debuging
auto-completion
If you also known any other interesting feature I would be interested.
Many thanks.

Is multithreading in C++ better supported by Visual Studio compared to GCC?

Is multithreading in C++ better supported by Visual Studio compared to GCC? For example, the code in comment does not produce race conditions when compiled with Visual Studio, but when compiled with GCC, race condition occurs on multiple occasions.

How to do Fortran90 code Auto-Completion in Visual Studio 2008 with Intel Visual Fortran Compiler?

As we all know that Visual Studio provides well support for C# code auto-completion and IntelliSense.
Now I have Intel Visual Fortran Compiler integrated into Visual Studio 2008, and want to make Visual Studio also provides support of Fortran 90 code IntelliSense!
How to deal with it? Thanks!
A bit late, but you might want to check out Fortran Code Nav
It's a (free) addin for Visual Studio (2008, 2010 & 2012) that provides Intellisense for Fortran 90. Additionally it has some 'ReSharper-inspired' jump / search functionality.
I created the tool for some colleagues in my spare time, so it's not production quality, but it should be able to parse most fortran constructs and, as far as I can tell, performs smoothly on larger solutions as well.
It doesn't - see this thread from Intel Software Network. Intel didn't plan on supporting IntelliSense for Fortran then and things haven't changed that much nowadays. Their Fortran editor is even missing basic things like automatic deindentation of end ... statement.
I'm not a Windows Fortran user but I would search for a better IDE. How about Eclipse + Photran? I think it supports Intel Fortran compiler and provides some nice editing features, including some advanced (for a Fortran IDE) refactoring.
Sadly (?) you will look in vain for Intellisense in Fortran. I don't think that the situation has changed since the answers to this question were written.
Me, I use Emacs for all my Fortran writing and editing, Visual Studio mainly for managing Fortran compilations, debugging and the like.

Resources