A quick way to delete a line in netBeans

For Mac command it is command+e.


Press Ctrl + x, or Ctrl + e while your cursor on the line to be deleted.

The command will delete the line and place the cursor to the starting of next line.


Does Ctrl-E not work for you? This is the default short-cut in NetBeans on a Windows machine.

If you click on Help you can get the keyboard shortcuts card, print it out, it's pretty handy and has saved me quite a bit of time hunting for easier ways to do things.