Community
Participate
Working Groups
Two suggestions that would probably save a massive amount of time for many java developers! S1. When using // in front of a line that denotes a block of java code automatically change the commenting to block commenting and surround the code. The change would happen instantly when I type the second /. S2. When deleting a top block comment remove the bottom one automatically. The auto-removal of the / and */ would happen instantly when removing the * in /*. See examples below. I guess this feature would fit fine under Preferences->Java->Editor->Typing -- When commenting --- [] Line to block comments on multiline code structures [] Automatic block comment removal Thanks Thomas Example 1 (S1): -Source for( int i = 0; i < 10; i++ ) { ... some code ... } -Before // for( int i = 0; i < 10; i++ ) { ... some code ... } -After /* for( int i = 0; i < 10; i++ ) { ... some code ... } */ Example 2 (S1): -Source canvas.getCamera().setFrustumPerspective( 45.0f, aspect, 1, 10000 ); -Before // canvas.getCamera().setFrustumPerspective( 45.0f, aspect, 1, 10000 ); -After /* canvas.getCamera().setFrustumPerspective( 45.0f, aspect, 1, 10000 ); */ Example 3 (S2): -Source /* for( int i = 0; i < 10; i++ ) { ... some code ... } */ -Before / for( int i = 0; i < 10; i++ ) { ... some code ... } */ -After for( int i = 0; i < 10; i++ ) { ... some code ... }
I like suggestion 2 but not suggestion 1. If you want to use /* to (un-) comment a block simply use Source > Add/Remove Block Comment. I adjusted the summary.