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.
Related
I would like to know if I can somehow compile c++ code in visual studio express 2010 with a 2019/2022 compiler. I only want to use express 2010 as an editor. I get no results on google regarding this topic.
Edit: I can change from platform toolset V100 to V90 but I'd like V143 like VS 2022. Is it possible though?
It is possible, but why on earth would you want to continue using Visual Studio Express 2010 as your IDE? VS2022 is so full of goodies and the community edition is free to use.
That being said: The VS2019/VS2022 compilers are just cl.exe, link.exe etc... You can use these compilers instead of the VS2010 cl.exe, link.exe etc... The VS2010 integrated build system will not automatically find them, so you'll either have to fiddle around with paths, get in to trouble with compiler switches etc...
You could switch to makefiles (or CMake) to use the compilers and keep the IDE. VS2010 is then no more than a fancy editor.
Tip: Try compiling your code from the command line (cmd.exe) to get started. Or download VS2022 community edition.
I've noticed that in VS 2010 Professional(in university) you can step into stl and stdlib functions and debug the actual insides, tried to do the same in VS 2017 Community but it didn't work, it even refuses to disassemble them, same goes for VS 2013 Ultimate(i assumed it's a professional version feature).
Now i'm wondering if there is a way to make this work in 2017 community or 2013 ultimate, am i doing anything wrong? I know you can probably find all the source codes on the internet, but i want to make it work in visual studio, so that i can actually debug it.
I have a weak computer and the interface of modern Visual Studios (2015/2017) works extremely slowly on it. I'm satisfied with the speed and functionality of the interface of Visual Studio 2010, but I want to use the latest features of C++.
How can I connect the compiler and debugger of VS2017 toolset to the VS2010 IDE?
I'm not sure you can do that. You can try changing the toolset directories. But I highly doubt that will work.
But I can suggest other approaches:
- switch off intellisence and other features of VS
- uninstall VS packages you do not need
- Try Visual Studio Code instead. If you are not tied to Windows, get a Linux OS and use it with Visual Studio Code.
- Otherwise use another editor to code in (like notepad++) and use only the command line to build projects (you cant use the debugger in that case)
What is the difference between visual c++ and visual studio.
Also codes written in visual c++ do affect the portability and functionality of the code??
Visual C++ is one of the languages that is supported in the Visual Studio IDE. I'm not aware of a separate Visual C++ IDE, and relevant searches return information about working in Visual Studio.
These are all part of Microsoft's development platform, and as such they most easily target Windows platforms and .NET. Beyond that I'm not sure I understand your question about portability.
I remember seeing Visual C++ awhile back but Microsoft has moved to making Visual Studio their single IDE.
Check out this wiki link for more information. It says that Visual C++ has migrated into Visual Studio. However, it seems there might be some compatibility issues if you are using an older VS. I see you tagged VS2010 so you may want to read up on it depending on what functions you're using. Looks like VS2015 update 3 is the latest release that captures those functions.
https://en.wikipedia.org/wiki/Visual_C%2B%2B
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.