- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I have been using .f90i for these in VS2008. After adding .f90i to the IVF options settings for f90 header files they work just fine with syntax colouring.
Now I am moving to VS2010 but, adding the .f90i as before no longer works. I get no syntax colouring.
Is there any consensus on what extension to use for f90 include files?
Another problem is that in VS2008 one could right click on an include statement line and the option to open the file was given. In VS2010 this has gone no matter what the file extension is.
Now I am moving to VS2010 but, adding the .f90i as before no longer works. I get no syntax colouring.
Is there any consensus on what extension to use for f90 include files?
Another problem is that in VS2008 one could right click on an include statement line and the option to open the file was given. In VS2010 this has gone no matter what the file extension is.
Link kopiert
7 Antworten
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I tried adding .f90i as a "header" file type for free-form source in VS2010 and it worked correctly. Once I restarted VS, files with that type got colored as Fortran free-form.
As for the right click on the include statement - I was unaware that was a feature. Oddly, I did see that the first time I tried it, but after that it did not appear. Strange.
As for the right click on the include statement - I was unaware that was a feature. Oddly, I did see that the first time I tried it, but after that it did not appear. Strange.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Yes I saw it the right click open the first time tried in VS2010 too!
I often use it in VS2008 rather than adding all the include files to the project and finding from there.
I did the same procedure as you for .f90i header files, but no luck for me on syntax colouring.
However, if I add the include file to my project, then now I get syntax colouring. VS2008 does not have this limitation.
Another right click thing that would be useful is "Add to project" when viewing a file not in a project. I am not how easy it would be to select which project if you had several open.
I often use it in VS2008 rather than adding all the include files to the project and finding from there.
I did the same procedure as you for .f90i header files, but no luck for me on syntax colouring.
However, if I add the include file to my project, then now I get syntax colouring. VS2008 does not have this limitation.
Another right click thing that would be useful is "Add to project" when viewing a file not in a project. I am not how easy it would be to select which project if you had several open.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I can reproduce the coloring problem in both VS2010 and VS2008. I reported it as issue DPD200172234.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
This has been fixed. I think the fix will be in update 8, but if not, then the one after that.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I am using VS2010 update 8 and I dont see sytax colouring for .f90i files and debugging is not possible. I have added .f90i to the free format header file types and restarted.
If I also add .f90i to the sources file types then I do get syntax colouring. However VS will then try to compile them as standalone sources rather than include files. I can get around this by setting them as excluded from the build.
If I also add .f90i to the sources file types then I do get syntax colouring. However VS will then try to compile them as standalone sources rather than include files. I can get around this by setting them as excluded from the build.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
You would want to add .f90i to the Free Format Extensions: Headers property, not sources.
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
I thought I was clear in saying I did this already. It makes no effect

Antworten
Themen-Optionen
- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite