IntelliJ code completition "template" - intellij-idea

When I invoke code completion like this :
And press enter I am left with :
String.valueOf()
But I would like for IntelliJ to insert the "template" of the selected option for the completion. From the example screenshot it would be :
String.valueOf(data, offset, count)
End allow me to move with the tab between data, offset and count. Can it be done? Btw, I am on OSX 10.5+ shortcuts.

Pressing Ctrl+P in Windows will give an overlay, stating the same info you saw before pressing enter. Command+P with OS X keybindings. It's called parameter info.
Not tabbable, but at least you get the possible signatures while writing.

Related

IntelliJ IDEA terminal exiting process command (control + c) doesn't work

When working with the built in terminal in IntelliJ IDEA 2016.2.3 on OSX El Capitan the process exiting command (control-c) doesn't work. It only writes c in the console and nothing happens.
Control+C and then ENTER works in 2018.3 (in Windows).
According to your settings it should be Meta + C. Normally it is the same key combination used to 'copy' purpose.
Anyway you can check and use as follows,
Go to Settings -> Keymap
On the top-right corner type 'copy' and press Enter.
The first key pair (here Meta + C ) should be the one you needed.
You can also change the keymap you are using from the 'keymap' drop down menu appearing here, and switch to a different one, if you are not comfortable with your settings. 'Mac OS X 10.5 + would be a good one for you.
Problem solved automatically with installing a newer version of IntelliJ IDEA.
You can close the terminal session by clicking the red X on the left of the the terminal tool window, and this should also kill any processes created by the terminal. If you want to run another command, just open the terminal back up.
Keymapping works if one got a few dime of time in their hands. For me, just pressing "q" and hitting enter comes out of existing command in the terminal.
Note: you wont see anything that you may type, so just go with the flow!!!
For me is ctrl+F2 to terminate the process.
For me it was ctrl shift w. But it closes terminal window.
Just right click to see context menu, you'll see.

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.

Keyboard shortcut to display error in IntelliJ

I like to use my mouse as little as possible for health reasons. Almost all the common tasks in IntelliJ I can do via keyboard shortcuts, except for displaying the message of an error. How can I have a keyboard shortcut that will show the tooltip of the highlighted error?
For example, I have an error such as:
Then I hit [magic-keyboard-command] and I get:
In Eclipse this is possible by pressing F2. Is there an equivalent in IntelliJ?
The standard Error Description shortcut for JetBrains tools is Ctrl+F1 (Cmd+F1 on Mac).
I use F2 on the mac, it cycles round all the errors in a single file and displays the error information for each.
In addition, to find all project errors what I do is this:
cmd+2 - go to error list (this might be different for diff languages)
press enter key
make change to fix bug
back to step 1 (sometimes escape key will help also)

Remove all breakpoints in 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

Xcode question: Quickly jump to a particular selector/class/symbol?

What is the quickest way to jump to a particular symbol/selector/class in Xcode? (I'm looking for keyboard shortcuts preferably).
Right now, I know two ways of doing this:
“Open Quickly” > Click on the Symbols dropdown menu at the top of the editor > Select the selector to jump to it.
Click on “Project Symbols” in the “Groups and Files” section on the left sidebar, and type in a name in the Search text field in the top right of the XCode window.
Is there a quicker way of doing this? (If I could even assign a shortcut to jump to the “Project Symbols”, that would suffice for me. Alternatively, if I can find a keyboard shortcut to jump to the symbol dropdown above an editor that would do it to).
For experienced Xcode programmers, what do you use to jump to a symbol?
In Xcode 3.2, the "Open Quickly" command (Shift-Control-D) lets you type in selectors and class names as well as file names. This would at least get you close to what you wanted.
Your idea about using the "Symbols" drop-down also works. You can use the keystroke Control-2 to bring up the Symbols drop-down menu, and then use the arrow keys, or start typing the name of the method that you want to reach.
Edit: In Xcode 4, the "Symbols" drop-down appears when pressing Control-6. You can change this in the Xcode settings by changing the key binding for "Standart Editor > Show Document Items".
If you're looking at the symbol in a source file and want to jump to its definition, ⌘-click it.
(command + double click) on your symbol/selector/class in any place of your implementation to jump to them
(option + double click) on framework classes/selectors to jump to their reference in help->documentation
One (arguably crude) way to do it seems to be as follows:
This is based on the fact that the Search field at the top right of the Xcode window seems to change behavior depending on what is selected in the Groups & Files sidebar.
Select “Project Symbols” in the “Groups & Files” sidebar
Press ⌥⌘F (That is Command+Option+F) to jump to the Search field
Enter the symbol to jump to, and an outline will quickly show up
(this will remain in effect until you click on something else in the Groups & Files sidebar)