The current source code selection will be converted to comments by pressing control+- (control dash). Similarly, comment lines are converted back to regular code by the same key sequence. Alternatively, the transformation can be achieved using the contextual menu invoked by right-clicking in the source file and selecting Toggle Comment
After invoking the command the selected lines are commented, as the following figure shows.