Use the RemovePostComments.bas add-in to remove all user comments from the NC code.
This enables you to document all the M codes in the CNC file as comments to explain what they are used for, then easily turn the comments off when you do not need them.
To use the Remove Post Comments add-in:
The Post Comment Characters dialog is displayed.
If the comment runs until the end of the line, select Go to end of line.