Home » Support » Tutorials/Power Tips » UltraEdit » Comment and Uncomment Selected Text
IDM Power Tips

Comment and Uncomment Selected Text

How many times per day do you comment out a block of code? Do you ever get tired of manually typing your open and close comments?

As of v16.00, simply highlight your code, click a button, and move on. It's that easy...


Block Comment/Uncomment Selection

Block commenting a selection is as easy as it sounds. To comment your selection, simply highlight the block of code that you wish to comment.

Comment Selection

Now, go to the Edit menu and select Comment Selection.

Comment Selection

As you can see, the block comment characters - in this case /* and */ - have been added to our highlighted/selected block of code.

Comment Selection

To uncomment the selection, simply select the entire block of code (including the block comment characters) and go to the Edit menu and click on Uncomment Selection.

Comment Selection

As you can see, the block comment characters have been removed.

Comment Selection


Line Comment/Uncomment Selection

Not only does UltraEdit/UEStudio allow you to block comment selected text, but you can also insert line comments.

To add line comments, go to the Edit menu and select Comment Add.

Comment Selection

As you can see, the line comment characters - in this case // - have been added to our highlighted/selected block of code.

Comment Selection

To uncomment the selection, simply select the entire block of code (including the line comment characters) and go to the Edit menu and click on Comment Remove.

Comment Selection

As you can see, the line comment characters have been removed.

Comment Selection

Back to power tips index

Cnet/Download.com
"We won't mince words:
UltraEdit is outstanding..."

Corporate Licensing

It's easy to purchase corporate licensing from us!

  • Bulk/quantity discounts
  • Enterprise/plant/site licensing
  • Purchase with PO or invoice

The new UltraSuite

The only fully integrated solution of its kind!

Four powerful applications: UltraEdit, UltraCompare, UltraFinder, and UltraSentry!

Save over 33% when you bundle with the UltraSuite!

Power of Portable

Now supporting PortableApps!

UE/UC Mobile

Unleash the power of the total file management solution on your flash drive!