In Visual Studio, editing a C# file, when I type in three slashes in succession, it auto-generates a template for XML code documentation.
Can I get emacs (csharp-mode) to do something similar?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I took a shot at implementing some logic to automatically insert XML comments in csharp-mode. I’ve published it to the EmacsWiki as csharp-mode v0.7.2 I could have done this with yasnippet or some other template package, but I didn’t want to tie csharp-mode to a specific template package.
The behavior is that, if you type three slashes (
///), then you get a template for a summary comment;If you then type three slashes after THAT, then you get a remarks section:
That behavior sort of mimics what you get in Visual Studio 2008, when you type 3 slashes.
Try it out.