cometbill
cometbill

Reputation: 1619

CodeRush - Commenting out whole sections of code

Is there a way to comment out a chunk of code quickly using CodeRush ?

        'For narCounter = 0 To UBound(arPDFFiles)
        '    'Add the PDF File Names to the Data Table.
        '    rowPDF = dtPDF.NewRow
        '    rowPDF("PDFDocument") = arPDFFiles(narCounter)
        '    dtPDF.Rows.Add(rowPDF)
        'Next

Upvotes: 2

Views: 288

Answers (4)

John Batdorf
John Batdorf

Reputation: 2542

Ctrl K + C in VS does this too.

Upvotes: 0

DevExpress Team
DevExpress Team

Reputation: 11376

Yes, this can be done using CodeRush. Select a code and press the ' button.

Upvotes: 2

Nils Magne Lunde
Nils Magne Lunde

Reputation: 1824

You can use Ctr+E, C which is already built into Visual Studio

Upvotes: 1

Alex Skorkin
Alex Skorkin

Reputation: 4274

Yes, the CodeRush Pro has the Selection Comment feature. This feature adds the capability to quickly comment or uncomment a multi-line block of code (or any text in the code editor) via a single shortcut. In Visual Basic, it is (‘)(Apostrophe) and in CSharp (or C++), it is (/) (Slash). Note that if you are using CodeRush Xpress, it doesn't have this feature. Here is some more info on this.

Upvotes: 4

Related Questions