Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Shortcut to stop execution of program in netbeans

Tags:

I am using netbeans to code java and i was wondering if there is an option to have a program stopped by pressing a shortcut. I can press F6 to execute program, but I have to use mouse to stop program, which I find a little annoying.

many thanks alfred

like image 915
Alfred Avatar asked Mar 03 '10 21:03

Alfred


People also ask

How do I stop a Java program execution?

In Java exit() method is in java. This System. exit() method terminates the current JVM running on the system which results in termination of code being executed currently. This method takes status code as an argument.

How do I collapse code in NetBeans?

As shown in the servlet example and as described in Custom Code Folding in NetBeans, one can add custom code folding in NetBeans simply be enclosing the code to be folded within // <editor-fold> and // </editor-fold> comments.

How do I close all open files in NetBeans?

The NetBeans makes it easy: the “close button” of each NetBeans window has a handy tooltip that informs you of available shortcuts. The NetBeans tooltip for the window close button. By pressing the Alt key as I am clicking this close button, I isolate the associated file, closing all other files that are open.


1 Answers

You can use Ctrl+Shift+DEL.

It is defined in Tools > Options > Keymap as System > Cancel Process.

like image 185
Peter Lang Avatar answered Sep 20 '22 11:09

Peter Lang