locked
3 apostrophes doesn't work in VS 2010 RRS feed

  • Question

  • User-641918402 posted

    Running VS 2010 in Win 7. For some reason 3 apostrophes shortcut doesn't work (to get summary template, etc)... I restared VS and it still doesn't work. Anyone know why?

    Wednesday, February 19, 2014 2:56 PM

Answers

  • User281315223 posted

    Sometimes bizarre things can happen within certain projects (corruption, settings etc.) I'm glad that you were able to still use it outside of that project. Have you tried restarting Visual Studio as well?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 20, 2014 11:30 AM
  • User-1454326058 posted

    Hi Robert,

    Please try to create a new project and check the result.

    If you can’t reproduce that scene, you could share your project to us.

    About share the file in the OneDrive, please refer to:

    http://windows.microsoft.com/en-us/onedrive/share-file-folder

    Thanks

    Best Regards  

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 20, 2014 10:36 PM

All replies

  • User281315223 posted

    Are you using C# or Visual Basic?

    If you are C#, you might want to consider using it's comment symbol '/' repeated three times :

    /// <summary>
    /// 
    /// </summary>
    public void ExampleMethod()
    {
    
    }

    You may want to ensure that you are typing either your "'''" or "///" on the line just above where a method or function is declared to ensure that it triggers properly.

    Wednesday, February 19, 2014 3:26 PM
  • User-641918402 posted

    Using VB.net.

    Wednesday, February 19, 2014 3:30 PM
  • User281315223 posted

    I don't have Visual Studio 2010 installed locally so I can't really test it within that environment.

    I gave it a try in VS2012 and VS2013 and it worked without any issues (you just have to ensure that you do it on the line directly above an existing property, function or method) : 

    ''' <summary>
    ''' 
    ''' </summary>
    ''' <returns></returns>
    ''' <remarks></remarks>
    Function Index() As ActionResult
    
    End Function

    Have you recently made any changes within your Settings or Preferences within Visual Studio that might have affected this?

    Wednesday, February 19, 2014 3:45 PM
  • User-1454326058 posted

    Hi Robert,

    My VS setting is for C#, so please refer to these steps below check your VS for VB.

    For C#:

    1. Tools=>Options
    2. Text Editor=>C#=>Advanced
    3. Checked the Generate XML documentation comments for ///

    Thanks

    Best Regards  

    Thursday, February 20, 2014 4:50 AM
  • User-641918402 posted

    Thanks. The weird thing is that it works for one VB.NET project but not another. :(

    Thursday, February 20, 2014 10:33 AM
  • User281315223 posted

    Sometimes bizarre things can happen within certain projects (corruption, settings etc.) I'm glad that you were able to still use it outside of that project. Have you tried restarting Visual Studio as well?

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 20, 2014 11:30 AM
  • User-1454326058 posted

    Hi Robert,

    Please try to create a new project and check the result.

    If you can’t reproduce that scene, you could share your project to us.

    About share the file in the OneDrive, please refer to:

    http://windows.microsoft.com/en-us/onedrive/share-file-folder

    Thanks

    Best Regards  

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, February 20, 2014 10:36 PM