Custom schema for XML comments in Visual Studio for C# - visual-studio

When I type "///" in the editor, Visual Studio creates an empty comment body with the < summary > and other tags. I can then type the "<" and VS suggests a list of recommended tags.
How can I make the IntelliSense to suggest my custom tags here?
Ideally, I would like to have my own XML documentation template expanded when I type "///"

Have a look at this.
It is primarily targeted at VS2005 en 2008, but it's probably still valid for 2010 with minor differences.
Documenting Your Code With XML Comments

Related

Is there a way to extract comments from code files with DTE (Visual Studio Automation)?

I want to extract comments from code files in a Visual Studio extension. Is there a way to do it using Visual Studio Automation without having to parse code text myself?
PS: Roslyn is not a choice, because I'm not restricted to C# and VB.NET only.
Various code elements like CodeClass and CodeFunction have the Comment property that return the header comment, accessible using Visual Studio code model.
And if a document is opened in VS editor, you can check SnapshotSpan classifications for PredefinedClassificationTypeNames.Comment.

Visual studio data-bind attribute highlighting [knockout.js]

In previous versions of Visual Studio I've had knockout.js syntax highlighting.
Since moving to Visual Studio 2017 Community building in Razor however, the syntax highlighting is gone and I found no way to enable it.
Interesting is however, that when I put the very same code into project built on Webforms, the highlighting seems to work at least to some degree
Is there anything I can do to enable syntax hightlighting for Razor? And/Or is there a way how to make custom syntax highlighting rules? [e.g. highlight specific data attribute, or so]
Try this. Also Read the overview.
https://marketplace.visualstudio.com/items?itemName=ms-madsk.RazorLanguageServices
Yes, in our Project we added the file reference on the _references.js file:
/// <reference path="knockout-3.4.0.debug.js" />
This make Visual Studio Intellisense to get the sintax hightlighting on the .cshtml files.
Reference Directives
A reference directive enables Visual Studio to establish a relationship between the script you are currently editing and other scripts. The reference directive lets you include a script file in the scripting context of the current script file. This enables IntelliSense to reference externally defined functions, types, and fields as you code.
Sources:
MSDN - JavaScript IntelliSense
C# Corner - Use of _references.js File
Mads Kristensen - The history behind _references.js

How to get Visual Studio to support Doxygen style comments like XML doc?

Visual Studio will recognize XML documentation and helpfully display tooltips in the editor based on it. Is there any way (I'm thinking an extension or similar) to get this same functionality from the Doxygen comments?
There is far too much code to move over to XML documentation.

Why are user types not highlighted in Visual C++?

I would like to have Visual Studio highlight the names of my own classes in the text editor.
I have selected a color under User Types in Options > Fonts & Colors -- but strangely, this only works for Visual C# but not Visual C++.
Any ideas what's going on?
EDIT: I received some great tips regarding 3rd party tools in response to my previous question, but no answer as to why Visual Studio wouldn't provide this capability, or how to properly set it up.
Have you looked at Tools > Options > Environment > Fonts and Colors?
There's the following "Display items:"
User Keywords
User Types
User Types (Delegates)
User Types (Enums)
User Types (Interfaces)
User Types (Value Types)
This MSDN page details how to define the keywords. Basically create a file called usertype.dat with each keyword on a separate line, place it in the same directory as devenv.exe then restart Visual Studio.
Disclaimer: I haven't tried this in the latest versions of Visual Studio myself.
I gather that the answer is that Visual Studio simply doesn't provide comprehensive syntax highlighting for C++. Pity.

Automatically adding specified text at beginning of files in VS 2008

Is there a way to have Visual Studio 2008 automatically add heading information to files? For example, "Copyright 2008" or something along those lines. I've been digging through the options, but nothing seems to be jumping out at me.
I assume you'd like to modify the class file templates. They're in:
%ProgramFiles%\Microsoft Visual Studio 9.0\Common7\IDE\ItemTemplates\CSharp\Code\1033
More specific details here
I found a better solution than modifying the template file directly. This utility allows you to create and save header/footer templates and apply them to entire source trees.
C# Header Designer from MSDN Code Gallery

Resources