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

enter image description here

i think it's not hard create netbeans addon button .

and rectangular selection tool can helpful times if area rectangle

example

enter image description here


Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

jquery - javascript onscroll fade same class but with different div -