Is there a way to comment M code / comment out lines or blocks of code?
            Asked
            
        
        
            Active
            
        
            Viewed 3.4k times
        
    1 Answers
56
            M supports two different types of comments:
- Single line comments can be started with //
- You can comment out multiple lines or comment out text in the middle of a line using /* */ (e.g. = 1 + /* some comment */ 2)
Comments might seem to disappear in the formula bar if they are at the end of the line, but they are still there. You can verify this by looking at your code in the Advanced Editor.
 
    
    
        rocky
        
- 7,506
- 3
- 33
- 48
 
    
    
        Alejandro Lopez-Lago - MSFT
        
- 4,014
- 20
- 25
 
    