Remove source file comments using IntelliJ?

后端 未结 6 1222
醉话见心
醉话见心 2020-11-29 16:47

Is there a plugin or tool in IntelliJ that will strip all comments out of your source .java files? I\'ve read about an ANT task that can do this.. was looking to do the sa

6条回答
  •  挽巷
    挽巷 (楼主)
    2020-11-29 17:44

    Press ctrl + r and in first textbox type //.*\n and then press replace all button. Then reformat the file by ctrl + alt + l.

提交回复
热议问题