Visual Studio 2010 Supported Code Models - visual-studio-2010

I'm developing an addon for Visual Studio 2010, and for some features I need access to the events provided by the FileCodeModel associated to a project item. So far, this have been tested and works well in C#, VB.Net, and C++ (although each model has its gotchas).
I tried to reuse the same code for F# projects, but it seems there is no support for F# in the code model mechanism. Stepping through the debugger I see that the FileCodeModel property of the corresponding ProjectItem is null.
so my question is, what are the languages with support for the CodeModel mechanism in Visual Studio 2010? does it work with F#? what about Javascript?
Thanks

The CodeModel.Language property is documented here. It has code examples in C#, C++, F#, JScript, and VB.NET.
Some members of the CodeModel object are not supported in every language in Visual Studio.

Related

GUI for C++ program in visual studio 2005

I am a beginner programmer in C++. I just created a product configurator in C++ now i want to develop a GUI for that in Visual studio 2005. I have never worked in Visual studio before. can someone give some hints that how to start, links for some basic lessons would be a great help.
Visual Studio supporting many language for GUI creation like C#, MFC(C++), Visual F#.
As you said C++ you can go with MFC projects.
You can select/create projects by going into file->new projects->Visual C++->Mfc Application
And for every language you need some guidance.
please follow the below link for more detail.
msdn link for creating GUI in visual stuudio

Convert Visual C++ console project to Forms Project (Visual Studio 2010)

In Visual Studio 2010, I have a CLR C++ console project that I would like to change into a Forms project, so that I can add a form and use the designer and whatnot. Is there a good way to do this?
Compare the old project templates then make necessary changes like adding references to winforms and changing the entry point function from winmain back to main.
See http://jiangsheng.net/2012/12/17/how-to-migrating-a-clr-console-visual-c-project-to-windows-forms/ for details. This article is written for 2012 but should work in 2010.

IntelliSense suggestions for F# in Visual Studio Express 2012 for Web

In Visual C# 2010 Express, if I type using S suggestions automatically popup:
In Visual Studio Express 2012 for Web using F#, if I type 'open S' nothing happens. I have to key ctrl-j in order to trigger suggestions:
Is there any way to get the former behavior in 2012? I.e. not have to type ctrj-j for suggestions, but have them come up automatically?
The C# and F# Intellisense implementations are written by different teams and have different goals. In general the F# experience is more minimal than the C# one. For items like open they won't automatically popup an experience and you must manually invoke it. There is no way to change this behavior.

Default language in Visual Studio 2010

I am discovering currently Visual Studio 2010. I have no experience whatsoever with Visual Basic. I see that Visual Studio supports several languages, that C# is easier than C++ for newbies, but I still don't know what is the default language in that program.
In my first test application, I can insert buttons and many other things on a form. Looking at the code gives something like that:
Private Sub Beenden_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Beenden.Click
End Sub
This looks to me like VBA, but I never decided what language I want to use. Is that Visual Basic? Or VB.NET then?
Thanks for clarifying all this!
The language is most probabaly VB.NET.
Visual Studio does not have a "default language".
What language you use depends on the project you have created - there are templates for C#, VB.NET and C++ in the default installation, but you can add many other templates and languages.
The above applies to the non-free versions of Visual Studio (Pro, Ultimate etc...).
The Express Editions are language specific (you can download and run these side-by-side).

Difference between Addin and VSPackage in Visual Studio extensibility?

What's diff in term of functionality are there between addins and Visual Studio Packages ?
This article is a good place to start: http://msdn.microsoft.com/en-us/library/bb330853.aspx
VSPackages are the 'first class citizens' in the IDE. Much of the core IDE functionality is actually supplied via packages. This is how Microsoft itself adds functionality to Visual Studio (i.e. new tools, languages, etc...).
Addins are limited in what they can do. Generally, they are restricted to using only the DTE automation object model to accomplish their tasks. The advantage is that it's usually simpler to do what you need this way, and the templates are included "in the box".
In general, we recommend that folks extend the IDE via VSPackages for new projects. You'll need to download the Visual Studio SDK to get started.

Resources