Search code examples
anylogic

Is there a way to comment out a mulitline of code?


Are there a shortcuts-key combination to comment out a block of code in anylogic?

Here's an example of what I'm trying to achieve:

code line 1
code line 2
code line 3

Into:

//code line 1
//code line 2
//code line 3

Solution

  • There is no "shortcut" but Java allows multi-line commenting:

    some code
    // comment for 1 line
    more code
    
    /*
    multi-line comment
    across several ines
    */
    

    Also, always check the AnyLogic help, it has this covered as well