Visual Studio 2010 - Make comment out of selection

deskareas

New member
Member
Local time
12:46 AM
Messages
43
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:

My Computer My Computer

At a glance

7
OS
7
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 My Computer

At a glance

Windows 7 x64 Ultimatei7 96012 Gig Corsair DominatorNvidia 480
Computer Manufacturer/Model Number
Scratch built
OS
Windows 7 x64 Ultimate
CPU
i7 960
Motherboard
Asus P6X58D
Memory
12 Gig Corsair Dominator
Graphics Card(s)
Nvidia 480
Sound Card
Maudio Delta 44 + breakout box
Monitor(s) Displays
Dell UltraSharp U2410 24in and Samsung 21 dual monitors
Screen Resolution
1920x1200 and 1280x1024
Hard Drives
Primary: Intel X-25M G2 160G SSD
Secondary: Segate baracuda 1.0 TB
HDs in AHCI mode.
PSU
Corasair TX850
Case
Cooler Master HAF
Cooling
Corsair H50
Keyboard
Logitech G15 + N52 game pad
Mouse
Logitech MX518
Internet Speed
15kbs down 4.5kbps up
Other Info
WEI 7.6
CPU & RAM 7.6
Graphics 7.9
Hard disk 7.7
Back
Top