Visual Studio 2010 - Make comment out of selection


  1. Posts : 43
    7
       #1

    Visual Studio 2010 - Make comment out of selection


    in dreamweaver there are buttons for dealing with line or text selection for making it commented or not.
    i lack completely on how to this in visual studio.

    is there a toolbar or a button for such?
    what i mean is simply surrounding a text selection without having typing that every time - and also reverse that simply.

    example:
    XmlDocument LoginXMLDocument = new XmlDocument();
    LoginXMLDocument.Load(xmlPath);

    should become:
    /*
    XmlDocument LoginXMLDocument = new XmlDocument();
    LoginXMLDocument.Load(xmlPath);
    */

    thanks for any feedback!

    after some research i found out that there are two commands and i added them to my new comment toolbar.
    Last edited by deskareas; 13 May 2011 at 14:39.
      My Computer


  2. Posts : 2,528
    Windows 7 x64 Ultimate
       #2

    Er yes, it should already be a button on the tool bar as well. Mouse over the buttons till you see one called "Comment out the selected lines" or something similar. If you don't find it, right click the tool bar and make sure the "Edit" tool bar is shwing first. If not, enable it and look there. If you still cant find it, right click and "Customize" and look through the buttons on the "edit" group of buttons for "Selection Comment" and "Selection Uncomment" and add them to your tool bar.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 08:13.
Find Us