devxlogo

Code-Commenting Shortcuts

Code-Commenting Shortcuts

Instead of going to the Edit menu to comment out a section of code, you can add the comment command to the shortcut menu you access by right-clicking in a code window. Select View/Toolbars/Customize. On the Toolbars tab of the Customize dialog, click on the “Shortcut Menus” check box. On the toolbar that pops up, click on Code Windows… Code Window. On the Commands tab of the Customize dialog, select “Edit” in the categories list box. Drag and drop “Comment Block” and “Uncomment Block” from the “Commands list” box to the code window menu. Hit the “Close” button on the Customize dialog. Now go to a code window, drag the mouse over a section of code, right-click, and select “Comment code.”

devxblackblue

About Our Editorial Process

At DevX, we’re dedicated to tech entrepreneurship. Our team closely follows industry shifts, new products, AI breakthroughs, technology trends, and funding announcements. Articles undergo thorough editing to ensure accuracy and clarity, reflecting DevX’s style and supporting entrepreneurs in the tech sphere.

See our full editorial policy.

About Our Journalist