skip to Main Content

I know, its not a good practice, but is there a way in Android Studio to suppress warning "Commented out code (n lines)"?

2

Answers


  1. Adding noinspection to the first line of the comment works for me:

    /* noinspection
     multiline 
     comment
     goes
     here
    */
    
    Login or Signup to reply.
  2. Use this way, this works for me in both Android Studio and Intellij Idea:

    /*/ first line
      second line 
      ...
      n line */
    
    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search