Back to Devexpress

Comment/Uncomment Selection

coderushforroslyn-120205-coding-assistance-selection-tools-comment-uncomment-selection.md

latest921 B
Original Source

Comment/Uncomment Selection

  • Dec 15, 2021

CodeRush allows you to comment out a selected code or delete comment delimeters with a single keystroke:

  1. Select the code block to comment out or uncomment.
  2. Press Slash ( / ) in C#, JavaScript, TypeScript, F#, XAML, XML, and CSS code.

The following screencast shows how to comment/uncomment a code block in C#:

Note

Standard shortcuts can be different in foreign language keyboard layouts. For example, the Swedish keyboard layout treats the “/“ key as Shift+7.
To change shortcuts that run CodeRush features: use the CodeRush | Shortcuts… menu item to access shortcuts configuration options, find the required shortcut by its command or keys, and modify the “First shortcut” field.