Remove all breakpoints in IntelliJ IDEA - intellij-idea

Is there a possibility to remove all breakpoints in the module (might be using a shortcut) in IntelliJ IDEA IDE? Thanks.

Ctrl+Shift+F8
is using for removing all breakpoints.
Select upper breakpoint -> Ctrl+Shift+End -> Remove
On Mac Os use this:
Cmd + Shift + (Fn) + F8 on Mac OS

To remove all breakpoints in IntelliJ Idea press following sequence of shortcuts:
Ctrl+Shift+F8 (open Breakpoints dialog)
Ctrl+A (select all breakpoint)
Alt+Delete (remove selected breakpoints)
Enter (confirm)
If you press Ctrl+Shift+F8 and your cursor is at code line with breakpoint, instead of Breakpoint dialog you get bubble with properties of a single breakpoint.
To get the Breakpoints dialog press Ctrl+Shift+F8 again.
Tested in IntelliJ Idea 14 Community Edition.
In case of Mac, follow below steps:
cmd+Shift+F8 (open Breakpoints dialog)
cmd+A (select all breakpoint)
cmd+Delete (remove selected breakpoints)
Enter (confirm)
Unlike Alt+Delete in windows, It's cmd+Delete in Mac

As an alternative, instead of removing all breakpoints, you can just mute them. This will help in the case that you want to stop breaking on all of them. They will still exist, so you can toggle this setting again to start breaking on them.
The mute breakpoints button can be found in the Debug view (view can be toggled using View -> Tool Windows -> Debug), in the left-hand side button menu. I attached a screenshot below.

As mentioned in this answer the shortcut works.
But we tend to forget the combination of keys (I do).
There exists another way to access breakpoints window.
Clicking on this button will open breakpoints window.

Here is one of my trick to remove all breakpoints of a page:
Ctrl+A : select all code
Ctrl+X : cut all codes
Ctrl+V : paste all code
this trick removes all breakpoints at one go and it takes less than a second.

On a Mac you need Shift + Comand + F8

press ctrl+shift+f8 and select check box of which you want to remove and then press minus button in left upper corner in android studio 2.2

Related

Intellij Idea: what is shortcut for main window

Imaging the situation when you writing some code and then you wish to continue your work in the terminal. Alt + F12 and you are in the terminal. After 1 sec you wish to continue to work under your code. So you need some shortcut that allows you return back to the code window (I would like to avoid using the mouse). What should I press for this case?
Terminal has an option to override IDE shortcuts which is enabled by default, this is done so that you can use common shortcuts in the terminal applications.
If you disable this option, you can use Esc to get the focus back to the editor, otherwise it will be intercepted and can be used in the apps running in the terminal tool window.
Shift+Esc will hide the Terminal tool window and move the focus back to the editor no matter if the option mentioned above is enabled or not.
For all the other cases Esc will work fine as mentioned in my other answer.

How to add a Stop icon to NetBeans 8.2

On mac in NetBeans 8.2 I have a panel with a run button.
It's a bit strange to me after Visual Studio that there is no Stop button there. Is there a simple way to add it?
It should do the same as Shift+command+fn+delete or Stop Build/Run
It's a bit tricky to restart it every time to test my changes.
I don't think it is possible to easily do what you want.
The only place the Stop icon/button appears in NetBeans is in the Output window, and that is not available for reuse elsewhere, so NetBean's View > Toolbars > Customize functionality won't be of any use.
However....it is trivial to specify a shortcut key for the action associated with the Run > Stop Build/Run menu entry:
In NetBeans select Tools > Options
Click the Keymap icon. All the actions will be listed, along with their shortcuts.
Type Stop in the Search field to locate the Stop Build/Run action.
For the listed action named Stop Build/Run click the ellipsis and select Edit... from the popup menu.
The cursor will move to the Shortcut field. You can now select any available shortcut. For example, in the screen shot below I pressed the ALT key, and then selected ALT+T from the drop menu of available shortcuts.
Then, you can just submit ALT-T from the keyboard to terminate a running application, instead clicking the Stop button in the Output window, or selecting Run > Stop Build / Run.
I know that you were asking for a toolbar solution, but in the absence of one perhaps a keyboard shortcut is a viable alternative.

Cycle through autocomplete suggestions without arrows

I'm really impressed with the autocomplete feature of the IntelliJ IDE so far.
What I'd like to do, is cycle through the autocomplete suggestions I get when hitting Ctrl + Space without using the arrow keys (↑, ↓).
The reason for this is that I prefer to keep my fingers on the home row (I'm using IntelliJ's Vim emulator additionally).
For example, how would I select sortThis instead of sorted without using the arrow keys or the mouse?
Peter Gromov's answer brought me to a satisfying solution:
In IntelliJ's settings, for Keymap → Editor Actions → Down I set a custom shortcut: Ctrl + J.
This way I can cycle forward through the suggestions.
Setting a shortcut for Down with Selection or Scroll Line Down in the IdeaVim-specific shortcuts did not affect the selection of autocomplete suggestions though.
The answer here: https://stackoverflow.com/a/9713306/2370679 led me to discover that Ctrl+n & Ctrl+p allow navigation of the auto-complete options without having to modify any settings
For macOS the IDE will give a hint that "^↑ and ^↓ will move caret up and down in the editor". These clearly do not work.
There are a few extra steps that are needed after following #matthias-braun's solution.
Here is the full list of step that I use:
Go to Preferences -> Keymap
Expand Editor Actions (not Plug-ins -> IdeaVim)
Select Down
Click the pencil icon or right-click
Select Add Keyboard Shortcut
Press the shortcut (I use ^N)*
Repeat for 3-6 for Up (I use ^P)
Click Ok**
Go to Preferences -> Other Settings -> Vim Emulation
In the drop-down under the Handler column for the row containing Down, select Vim***
Do the same thing for Up
* If you are warned about the key binding already existing then remove it. You can always reset back to the defaults by clicking the little cog icon up the very top to the right of the drop-down menu.
** The Vim Emulation doesn't seem to be populated correctly until you reopen the Preferences.
*** I'm not sure why the Handler should be Vim. This seems backwards to me but it works.
If you're able to scroll up/down in editor with some IdeaVIM-specific shortcuts, they should also work in the completion list.
In this particular case, I'd just type another "t" so that "sortThis" becomes selected (and the only) variant.
I have done the same thing with mapping the arrows but in a more logical way:
I mapped them that when I press 'Alt' 'J' is left, 'L' is right, 'I' is up, and 'k' is down. that way I can have easy access to the arrows while my fingers are on the home row and I don't need to move them nearly as much...
I'm posting it just so people who search it on google can have that idea.

Intellij - what is this strange selection, and how do I turn it off?

See the screenshot below to see what I mean. Basically, Intellij only highlights the box I draw with the cursor, but leaves the rest of the editor untouched. I have no idea why it happens, and the only way to resolve it for now is to close and reopen the editor. I have observed the same behavior on a Linux box and a MacBook, both when editing Java and PHP files, so I am not sure it's a bug.
The desired behaviour is standard row selection, i.e. highlight all rows which I drag the cursor over.
I think you have enabled 'column selection'.
Option can be toggled via these methods:
Menu Bar -> Edit -> Column selection mode
Document Body -> Right Click -> Column selection mode
Keyboard Shortcut -> ALT + SHIFT + INSERT
The column select mode is enabled, use Alt+Shift+Insert to enable or disable this mode.
Shift-command-8 to toggle it back and forth on OSX.

Is there a console scroll lock in IntelliJ?

I've recently moved from Eclipse to IntelliJ and one feature I'm missing (or maybe just can't find) is the console scroll lock i.e. stop refocusing on the latest console entry.
Is this possible in IntelliJ? I'm using v9 Ultimate edition.
It depends where your cursor is. Just click on the part you want to be scroll locked.
To unlock the scrollbar, click on the last line (should be blank) of the console.
Just adding to this for google reasons - clicking at the bottom is hard when the console is still scrolling, it's a bit of a race - but control-end (or cmd-end on mac) also did it!
To unlock the scrolling just press "Enter" key inside of console window.
To Unlock the scroll lock on intelliJ 14 (probably earlier as well) on OSX its
fn + cmd + right cursor.
In PyCharm 2017, there is a "Scroll to the end" button in the "Console" tab of the Debug window.
Disabling it stops the auto scroll on output.