- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Can I change the Fortran template program on Visual Studio?
I found a directory "C:\Program Files (x86)\Microsoft Visual Studio 8\Intel Fortran\Templates", but this is not the place.
I want to use my own template.
I found a directory "C:\Program Files (x86)\Microsoft Visual Studio 8\Intel Fortran\Templates", but this is not the place.
I want to use my own template.
[cpp]! associate.f90 ! ! FUNCTIONS: ! associate - Entry point of console application. ! !**************************************************************************** ! ! PROGRAM: associate ! ! PURPOSE: Entry point for the console application. ! !**************************************************************************** program associate implicit none ! Variables ! Body of associate print *, 'Hello World' end program associate [/cpp]
Link Copied
2 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Look under C:Program FilesMicrosoft Visual Studio 8Common7IDEProjectTemplatesIntelFortran There you'll find subfolders for the different project types. Under each of those is a "0" folder. In there is one or more ZIP files corresponding to the selections you can make (empty or sample).
Editing these is not supported, and if you update versions your changes will be replaced, but feel free to experiment. I don't know if you can simply add your own project type or you have to edit an existing one. Let us know how it works out.
Editing these is not supported, and if you update versions your changes will be replaced, but feel free to experiment. I don't know if you can simply add your own project type or you have to edit an existing one. Let us know how it works out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Quoting - Steve Lionel (Intel)
Look under C:Program FilesMicrosoft Visual Studio 8Common7IDEProjectTemplatesIntelFortran There you'll find subfolders for the different project types. Under each of those is a "0" folder. In there is one or more ZIP files corresponding to the selections you can make (empty or sample).
Editing these is not supported, and if you update versions your changes will be replaced, but feel free to experiment. I don't know if you can simply add your own project type or you have to edit an existing one. Let us know how it works out.
Editing these is not supported, and if you update versions your changes will be replaced, but feel free to experiment. I don't know if you can simply add your own project type or you have to edit an existing one. Let us know how it works out.
Steve,
Thank you!
It worked by changing "Program.f90" file under ProjectTemplatesCache. (The Zipped files might be expanded here.) This solution is enough for me.
Full path to the file is "C:Program Files (x86)Microsoft Visual Studio 8Common7IDEProjectTemplatesCacheIntelFortranConsole Application1041ConsoleApplicationSample.zipProgram.f90".
Thank you again!
Template: Program.f90
[cpp]MODULE m_$safeprojectname$ IMPLICIT NONE CONTAINS !--------------------------------------- !--------------------------------------- END MODULE m_$safeprojectname$ !========================================= PROGRAM $safeprojectname$ USE m_$safeprojectname$ IMPLICIT NONE STOP END PROGRAM $safeprojectname$ [/cpp]Generted File:
[cpp]MODULE m_Console8 IMPLICIT NONE CONTAINS !--------------------------------------- !--------------------------------------- END MODULE m_Console8 !========================================= PROGRAM Console8 USE m_Console8 IMPLICIT NONE STOP END PROGRAM Console8 [/cpp]

Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page