How do I delete all the comments in all the project from Netbeans? -
i need modify code has many unused comments this:
/* 6: */ import java.util.list; /* 7: */ import org.apache.ibatis.session.sqlsession; /* 8: 7 */ import org.apache.ibatis.session.sqlsessionfactory; /* 9: */ import org.apache.log4j.logmanager; /* 10: */ import org.apache.log4j.logger;
i can give 1 alternative way .i 'm using method.
there option search , replace
in netbeans can enable regex option type regex match comments , replace empty character.go edit
menu , replace
. use regex
/\\*.*?\\*/
to match /*comment*/
style comment
edit > replace
example
i think it's not hard create netbeans
addon
button .
and rectangular selection tool
can helpful times if area rectangle
example
Comments
Post a Comment