FileCodeModel belongs to a file (EnvDTE.ProjectItem) and it allows you to examine the code elements of a file. CodeModel belongs to a project (EnvDTE.Project) and it allows you to examine all the code elements of your project. Depending on the needs of your add-in, you may want to use one or the other... for example, to populate the comboboxes on top of the code editor window you would use FileCodeModel, but to populate the Class View toolwindow you would use CodeModel. MZ-Tools: Productivity add-ins for Visual Studio: http://www.mztools.com.
My blog about VS extensibility: http://msmvps.com/blogs/carlosq/- Proposed As Answer byCarlos Quintero - MVPMVP, Moderator1 hour 28 minutes ago
-
|