How to comment multiple lines on MPLABX

B.Aswinth Raj's picture
Offline
Joined: Aug 16, 2016
How to comment multiple lines on MPLABX
May 11, 2018 - 3:50pm

Hi I am trying to comment multiple lines of code on MPLABX.

I want to select a chunk of code and comment them all and then should also be able to uncomment them later. 

I know how /*......Code......*/ works but I am trying to find an alternative where i can just select the code and comment them off

AISHA's picture
Offline
Joined: Sep 07, 2017
Use Ctrl+Shift+C
May 13, 2018 - 9:20am

Just select the block of code you want to comment and use the hotkey Ctrl+Shift+C. This will comment out the entire block of code you selected.

To un-comment simply select them again and use Ctrl+Shift+C again

B.Aswinth Raj's picture
Offline
Joined: Aug 16, 2016
It works
May 16, 2018 - 6:33pm

Thanks aisha,

This is what I was looking for