Visual Studio 2008 code snippets for another language

Is there a way to define code snippets for a language other than the standard ones (C #, VB ...) in VS 2008? I use the Intel fortran compiler with Visual Studio, and its integration into it is pretty complete, except for some code snippets. I thought I read somewhere in msdn that you cannot define new ones for other languages.

Thus, I would be very happy if someone could prove to me otherwise.

Any help was appreciated.

+6
fortran visual-studio-2008 visual-studio
source share
2 answers

Support for code snippets for a language is determined by the language service. Intel Fortran does not support code fragments, and it cannot be added by anyone else (via an optional or third-party package).

The registry key that controls code snippet support is HKEY_LOCAL_MACHINE \ SOFTWARE \ Microsoft \ VisualStudio \ 9.0 \ Languages ​​\ CodeExpansions. You will notice that under this key there are subsections for Basic, CSharp, and XML (and possibly more if you have other language services that support code snippets), but not a division for Fortran.

The only thing you can do is query Intel's features, and maybe they will add code snippet support in a few years.

+1
source share

Check out this article about VS and code snippets. It was written for VS2005, but the same for VS2008.

code snippets

You should be able to use this with fortran as you specify the code language in the XML file that is used for the fragments.

+1
source share

All Articles