Search for commented-out code across files in Eclipse

前端 未结 6 766
难免孤独
难免孤独 2021-02-08 13:23

Is there a quick way to find all the commented-out code across Java files in Eclipse? Any option in Search, perhaps, or any add-on that can do this?

It should be able to

6条回答
  •  难免孤独
    2021-02-08 14:04

    You can do a search in Eclipse.

    All you need to search for is /* and //

    However, you will only find the files which contain that expression, and not the actual content which I believe you are after.

    However, if you are using Linux you can easily get all the comments with a one liner.

提交回复
热议问题