I have changed the IDE I'm working with form Netbeans to IntelliJ.
My question right now is, why do the shortcuts don't work.
I want to comment out with "crtl+shift+/" but nothing happens. Is there any bug? Can I import the shortcuts form Netbeans?
Thx for your help.
Go to "File" -> "Settings" -> "Keymap" and chose the keymap that you want to use from the "Keymaps" dropdown.
If you do not want to change your keymap or have to work on the machine of somebody else you can use Ctrl+Numpad ÷ and Ctrl+Shift+÷.
In case you have a keyboard without a numpad it might be possible to emulate the numpad on your keyboard (often using the Fn-key).
See also
Related
How to disable auto show hints in IntelliJ IDEA on mouse over?
Edit:
This hint could be very big if you call existing method with incorrect parameters. It's very uncomfortable.
There are the same behaviour in PyCharm:
and WebStorm:
Those popups (or tooltips) has been my worst annoyance in the editor for a while. There is how I fixed it:
On the editor, at the bottom-right of the window, there is a head icon. Click it and uncheck the box "Import popup".
You can have a look at this guide (with images) to help you finding the checkbox:
http://www.jetbrains.com/idea/webhelp/disabling-inspections.html
I hope that can help you
TOTALLY: Open Settings (or Pereferences, if you are OS X user) dialog, choose Editor | Inspections. On the Mange tab (right pane of the dialog) select Copy. Then click the language node. Here you can find the setion that is probably responsible for your tooltips and disable it. Or disable the whole language node, if you like. This way you have all the IDE features working and no tooltips at all. You can return back to Project Default inspections profile when you need it.
PARTIALLY: Try to disable the respected intention action. Press Alt+Enter when you see the tooltip, select the action from the list and press the right arrow key. In the context menu, select "Disable".
From JetBrains Forum.
You probably need to uncheck the Inlay Hints.
For Windows 10 & PyCharm Community 2020.3.3 :
File > Settings > Editor > Inlay Hints
Uncheck Show hints for:
Up until version 10, intellij enabled searching text in the console window. From version 11 this option is not available anymore.
Is there any configuration to enable that? A plugin maybe? This is very useful for me and I miss this function...
-- EDIT --
I'm using the community edition of Intellij
Override the keymap for Ctrl+F to "Find" which was mapped to some other find.
To be more specific, in Settings - Keymap go to Main Menu - Edit - Find - Find... and make sure that a Shortcut is assigned here.
Press Ctrl+F in the console:
Check you key map settings. Like in my case - I have eclipse key mapping and there is CTRL+F set to "edit\Replace" not to "edit\Find", and the "edit\Find" has no key binding at all, that's why it is not working in console.
Go to File -> Settings -> Keymap -> Main menu -> Edit -> Find -> Find... (right click on it) -> add keyboard shortcut.
It's not set by default so you have to set it manually.
CTRL+F is by default for Replace that is not supported in console for IntelliJ.
Click on console and Use CTRL+K it is used for find in intelliJ
I was encountering the same issue while I was using vim in IntelliJ 2018.3.4.
After I disabled the Tools -> Vim Emulator, I could then search in Console using Ctrl+F.
Updated
In macOS, I just could use Command+F without disabling the emulator.
Perhaps that's why developers are using macOS more.
For those who have vim plug-in enabled.
Go to Editor->Vim Emulation and check keymaps. Make sure Ctrl + F is handled by IDE and not by Vim.
After setting that, I am able to search the console by Ctrl + F and keep vim enabled.
I'm using Eclipse key mapping in IntelliJ. The shortcut to search the console is Ctrl + Shift + G. By default it would search the word where the cursor is pointing.
This seems like a bug in IntelliJ 12: Every couple of times when I switch between keyboard layouts (English and Hebrew) IntelliJ get stuck on one of them and ignore the windows selected keyboard layout. This happens only for intelliJ, all other programs respond as usual to the windows selected keyboard layout.
Is there at least a workaround, or a way to reset IntelliJ's keyboard layout? The only thing that seems to work for me so far is restarting my machine...
(My OS is Windows 7 Enterprise 64bit)
This is 100% reproduced when you switch keyboard layout in quick class search (Ctrl+N). Also in intellij idea 13.
Something like:
Open quick search menu when keyboard is not in English layout (Russian e.g.)
Type anything
Switch to English
Congratulations! you stuck in russian layout :) restart your intellij idea!
When I ceased to switch layout in search, I forgot about this problem.
UPD: it's suitable for most part of text inputs (even for search and file creation)
I've just had this problem on PyCharm 2020.2.3
Here's how I've solved it:
Go to Settings -> Keymap
At the bottom of the window, check the option Use national layouts for shortcuts (require restart)
That did the trick
restarting IntelliJ also works.
I wonder how they managed to get such a stupid bug, this is not an easy bug to write, especially in Java.
That was found to be more like a global Microsoft/Oracle bug. Simple workaround from IntelliJ's issue tracker: use Windows' language parameters to assign a hotkey (Ctrl + number) for changing the layout directly to a desired language. This suddenly will affect both Windows And IDEA. It's said that bug was fixed in Win8. A bit more info: here
In 2020 bug is still relevant in the most IDEs based on IntelliJ. For example I observe this in PyCharm now.
There is workaround for Windows:
Go to Language Bar - Settings... - Advanced Key Settings
Set key sequence of To English action to Ctrl + 1
Set key sequence of to other your language to Ctrl + 2
Apply
Go to IntelliJ/PyCharm and switch language by new sequences
After that bug disappears and you can switch language by traditional method
For me the following actions seem to resolve the issue:
Go to Control Panel
Select Clock, Language & Region
Press Region
In the opened window choose English for Format.
Also all my settings except the location are set to English (locale, default keyboard etc.)
This fix worked on my mac, access Preferences -> Editor -> Typing Corrector from the intellij IDEA menu. If you are able to navigate to the same window on your OS, you can try this.
Uncheck Enable keyboard layout correction in the Typing Corrector window
I got the same issue in Ubuntu 16.04. Restarting IDEA doesn't change anything. But Changing the default layout to be the one I want by default ensured ubuntu work well with it.
Go to the search textfield above file editor.
Switch layout.
Type smth.
Click somwhere in the file editor.
Write smth with swithed layout.
I have mapped 'tilde' key (under escape on mac) to autocomplete, I just find it easier that way. At times I instead hit F1 accidentally and the IntellJ help pops up. Is there a way that I can disable F1 from activating help?
Yes. Press Ctrl+Alt+S and go to the Keymap tab in settings. Then find the "Context Help" node in All Actions/Other/Context help, and remove the shortcut.
You can look for other bound shortcuts in the future (by the key used to activate them) using the "filter" icon to the right of the search box.
I know this is a simplistic question; but I've been using IntelliJ for months now, and can't find this simple feature.
Any idea? Thank you.
Idiot me. CMD-F4 or, as mentioned before, CTRL-F4.
Thank you all. I'll just bury myself now :)
hmm you can't because there is no default key binding for that, at least on OSX, however you can go here and define one:
The standard tip if you don't know how to do something in Idea is "Find Action..." (ctrl+shift+A in Windows) then type what you want to do, in this case close.
You will get a lot of different "close" actions and simply "Close" (ctrl+F4 in Windows) will be one of them.
You can also set a custom key combination in the settings menu
Click on File > Settings and select Keymap from the menu on the left, then scroll down to the Other section and set your preferred key combination for Close Active Editor:
When you double-click on Close Active Editor, a menu pops up allowing you to set a key combination, a mouse gesture, or even an abbreviation for the action. If the shortcut is already set somewhere else (as in my case with Ctrl-W) you'll get a notification and won't be able to set the shortcut until you remove the other one.
As with Matt Ball, I don't use IntelliJ but may also be CTRL+F4...
For MAC user, Cmd-W will close the active tab (file).
On Mac, you might like to use CMD + W, as this is the conventional shortcut for closing things e.g. Tabs in Chrome.
But by default this is usually associated with highlighting the current cursor block, so instead I use CTRL + W, rather than re-assigning.
e.g. (bottom right)
Also works for other IntelliJ IDEs, like WebStorm, etc.
IDEA->File->Setting->Search for "Close Active Editor".
Click on 'Add Keyboard Shortcut' -> Change it to "Ctrl+W". (Overwrite).
BOOM! you are universal now!
I'm on version 2020.4 and this has changed to Ctrl+4