Intellij provides "Switcher" which not only switches between recent files but also tool windows.
Some tool windows are not being assigned to a shortcut which forces you to open it every time going trough Switcher dialog instead of just doing a simple shortcut.
For example here gradle does not have a shortcut
Although it is shown as tool window under number 5
How do we manage these shortcuts?
Go to Settings -> Keymap -> Other and find Gradle, assign shortcut as you wish (i.e. Alt + 2). It will work. Note that a hint on button (in this example 2:Gradle) will appear after restarting.
Is there a way to completely turn off all intentions light bulbs in Intellij 2016.1, so that none ever appear? In older versions, you could apparently edit options/editor.xml, but no such file exists in 2016.1.
I just answered that in hide Intellij Idea yellow light bulb
TL;DR:
Preferences > Appearance > Show intention bulb
Update:
In GoLand 2020.1 (and possibly all InteliJ 2020.1 products) this setting can be found here:
Editor > General > Appearance > Show intention bulb
If that doesn't work for you, type "bulb" in the search field in the Settings. I hope that helps.
Maybe this could help you
https://www.jetbrains.com/help/idea/2016.1/configuring-intention-actions.html?origin=old_help
To configure intention settings using the Settings dialog
By default, all available intention actions that ship with IntelliJ IDEA, are enabled. By changing the Intention Settings, you can disable the actions that are not required for your current working environment.
Open the Settings / Preferences Dialog by choosing File | Settings for Windows and Linux or IntelliJ IDEA | Preferences for OS X, and click Intentions under Editor.
In the Intentions page, clear the check boxes of the intention actions or action categories that you do not currently need.
Selecting or clearing a category affects all intention actions in this category.
Apply changes and close the dialog.
Is there any shortcut for distraction-free mode in IntelliJ? Or can I create one somehow? I don't want to go to view tab every time.
There is none assigned by default, but you can assign one yourself.
Go to Settings > Keymap and type distraction in the filter field (or expand the Main menu > View > Toggle Distraction Free mode tree). Right click the item and select Add Keyboard Shortcut.
Ctrl + ~ + 4 + 2
Ctrl + ~ + 4 allows you to exit/enter presentation mode, distraction mode, full screen
If you're using the default Mac shortcuts, you can use Ctrl+` 4 2.
Explanation:
Press and hold Ctrl, press `, release all; this brings up the Switch... menu. Press and release 4; this enters the View Mode menu. Press and release 2; this toggles Enter Distraction Free Mode/Exit Distraction Free Mode.
As I use both Distraction Free and Full Screen mode very often, I've made the following shortcuts consisting of two keystrokes:
Ctrl+Shift+S D for distraction free mode
Ctrl+Shift+S F for full screen mode
You can do this in Settings > KeyMap (search for "distraction").
To add a shortcut:
go to preferences
go to keymap and search for the function that you want
assign the shortcut that you want(mine is z followed by n)
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:
How can I permanently enable line numbers in IntelliJ IDEA?
IntelliJ 14.X Onwards
From version 14.0 onwards, the path to the setting dialog is slightly different, a General submenu has been added between Editor and Appearance as shown below
IntelliJ 8.1.2 - 13.X
From IntelliJ 8.1.2 onwards, this option is in File | Settings1. Within the IDE Settings section of that dialog, you'll find it under Editor | Appearance.
On a Mac, these are named IntelliJ IDEA | Preferences...
The question is obviously well answered already, but since IJ 13 you can enable line numbers in 2 seconds flat:
Press shift twice
Type "line number"
The option shows in the menu and press enter to enable/disable.
Et voila ;)
NOT a solution, rather a TEMPORARY solution which only works only for the current editor and current session:
Simply right click on the place where the line-numbers should be, and there you'll see a small menu.
then, mark the "Show Line Numbers" option.
Please note that this only works on a per-file basis, however. Enjoy.
In Intellij 13 the layout has changed, the Settings button can only be found in File -> Settings and not in the toolbars, and from there you follow the same steps: Editor -> Appearance -> Show line numbers, or search for Line numbers in the Settings search input.
Android Studio 1.3.2 and on, IntelliJ 15 and on
Global configuration
File -> Settings -> Editor -> General -> Appearance -> Show line numbers
Current editor configuration
First way: View -> Active Editor -> Show Line Numbers (this option will only be available if you previously have clicked into a file of the active editor)
Second way: Right click on the small area between the project's structure and the active editor (that is, the one that you can set breakpoints) -> Show Line Numbers.
For InteliJ IDEA 11.0 and above
Goto File --> Settings in the Settings window Editor --> Appearance
and tick Show line numbers check box.
IntelliJ 14 (Ubuntu):
See: how-do-i-turn-on-line-numbers-permanently-in-intellij-14
Permanently:
File > Settings > Editor > General > Appearance > show line numbers
For current Editor:
View > Active Editor > Show Line Numbers
IntelliJ IDEA 15
5 approaches
Global change
File > Settings... > Editor > General > Appearance > Show line numbers
Hit Shift twice > write "line numbers" > Show Line Numbers (that one that has the toggle) > change the toggle to ON
Change for the Active Editor
Right click on the left side bar > Show Line Numbers
Hit Shift twice > write "line" > Show Line Numbers (the line doesn't have the toggle)
Ctrl + Shift + A > write "Show line" > Active Editor: Show Line Numbers > change the toggle to ON
Ok in intelliJ 14 Ultimate using the Mac version this is it.
IntelliJ Idea > Preferences > Editor > General > Appearance > Show Line Numbers
On IntelliJ 12 on MAC OSX, I had a hard time finding it. The search wouldn't show me the way for some reason. Go to Preferences and under IDE Settings, Editor, Appearance and select 'Show line numbers'
Android Studio
Go to Android Studio => Preferences => Editor => General => Appearance => set Checked "Show line numbers"
I just hit this with IdeaVim plugin installed, where even if I set Show Line Numbers, it continued to revert to hiding them.
The (forehead-slapping-worthy) solution was:
:set nu
I add this response for IntelliJ IDEA 2018.2 - Ultimate.
Using menu
IntelliJ Idea > Preferences > Editor > General > Appearance > Show Line Numbers
Using Shortcuts - First way
For Windows : Ctrl+Shift+a
For Mac : Cmd+shift+a
Using Shortcuts - Seconde way
Touch Shift twice
These three methods exist since the last 4 versions of Intellij and I think they remain valid for a long time.
1st way: Go to View => Active Editor => show line numbers
2nd way Go to Android Studio => Preferences => Editor=> Appearance => set Checked "Show Line Numbers"
For 9.0.4
File > Settings
In the tree view group
------------IDE Settings ---------
Click the Editor [+]
Select Appearance... Its there.
On Mac Intellij 12.1.2 there is no File-Settings:
There is an application-name menu item to the left of "File" with a "preferences" menu item:
and within that is the "Settings" dialog shown by the Windows Intellij.
In IntelliJ 14 it has moved again somewhat down the menu.
Now we have it unter Editor -> General -> Appearance
Just an update for Android Studio 1.5.1 on Windows:
Go to File -> Settings -> follow picture
On IntelliJ IDEA 2016.1.2
Go to Settings > Editor > General > Appearance
then check the Show Line number option
IntelliJ 2019 community edition has line number by default. If you want to show or hide line numbers, go to the following settings to change the appearance.
go to → File → Setting → Editor → General → Appearance → [Check] Show line numbers
For IntelliJ 20.1 or above, on Mac OSX:
IntelliJ IDEA -> Editor -> General -> Appearance -> Show line numbers
Point to be noted: Always look for Editor
For shortcut:
⌘ + ⇧ + A (command + shift + A)
type
and click on the pop up to turn on Show line numbers and you are good to go.