IntelliJ - print my keymap - intellij-idea

Is there a way to print my keymap (IntelliJ IDEA)?
Maybe a plugin?
I couldn't find a way and I don't want to type all shortcuts manually.

This plugin will export your keymap to a .PDF file, which you can then print.

In /Applications/IntelliJ IDEA.app/Contents/lib/resources.jar all the keymaps are in directory keymaps as XML-File. So someone could create a stylesheet for this to print them out. However, if you modify them, in $HOME/Library/Preferences/IntelliJIdea2017.1/keymaps/ there are the modifications, however they refer to the basic keymaps as parent.

Here's the Keymap Reference from their site - this is the default mapkey. You will also find the mapkey for Linux and OSX in there.
Unfortunately, there is no such plug-ins. You can try to change the PDF file default hot-keys, it will be faster than creating it yourself.

Related

IntelliJ IDEA plugin to fold .conf files?

I have a Scala app built with Lift framework. It has a few .conf files. When I open those .conf files in my IntelliJ IDEA Ultimate Fancy Pants Edition, I do not see any buttons to fold those curly braces in those files. Hotkeys do not do it either. Browsed for plugins, none applicable found. Is there any solution to enable code folding in .conf files?
Update:
Here is an illustration of what would be lovely. Those "-" and "+" icons do not appear in .conf files:
The relevant plugin is the HOCON plugin.
To install, click the Get button from the above JetBrains Marketplace link. Or, from within IntelliJ, go to Settings/Preferences (Ctrl+Alt+S for Windows; ⌘+Comma for Mac) and select Plugins, then click Marketplace to search for the plugin and install it. Restart IntelliJ to enable it.
To confirm, go back to Settings/Preferences and select Editor > File Types. You should now see HOCON (Human-Optimized Config Object Notation) file types among those listed as "Recognized File Types". Click HOCON and you should see *.conf under "File name patterns".
All your .conf files should now appear in IntelliJ with syntax highlighting and code folding.
Edited Oct 2020 to remove Scala plugin reference, as it no longer seems to support HOCON files.
Those .conf files are of HOCON type ("Human-Optimized Config Object Notation"). To enable folding them, you have to force the editor treat them as such. In IntelliJ settings, configure it as illustrated:
Preferences->Editor->File Types, and there add filename patterns to HOCON filetype.
2020+
The best option is to install HOCON plugin separately. For now, HOCON file type is not bundled with Scala plugin anymore.
P.S. All credits to ghik's comment. Decided to put this into separate answer because I was not able to find the tip at first time.

Can't add .icls theme file to IntelliJ

I'm using IntelliJ ultimate edition, and I'm on a mac. I'm trying to install this theme. My folder structure looks as follows:
~Library/Preferences/IntelliJ/colors/Dracula.icls
the IntelliJ folder wasn't there so I created that myself. I also tried IntelliJVersionNumber and that also didn't work. IntelliJ doesn't seem to be recognizing this theme. When I go to change the theme in preferences it only shows the default ones (which ironically one of the default ones is also called Dracula)
~/Library/Preferences is not the same as /Library/Preferences. ~ stands for your user home folder, so it's actually /Users/<username>/Library/Preferences.
See the FAQ.

JetBrains Products: Create a file that includes all shortcut keys

I want to customize shortcut-keys in one JetBrains product, and I want to save these customizations in a file, and use it in all JetBrains products (so I won't be able to customize it again). DO you know whether it's possible?
Your keymap changes are already stored in the .xml file under config directory, keymaps subdirectory.
You can copy this file manually, use File | Export Settings / Import Settings or use the Settings Repository to share it between the IDEs.

.vimrc for IntelliJ Idea's vim plugin

I am using the vim plugin for IntelliJ Idea.
Where should I place the .vimrc for that plugin.
Using Windows XP
The latest version of the plugin will read settings from a file named .ideavimrc in the home directory.
On *nix, the home directory can be accessed at ~.
On Windows, you can use the %HOMEPATH% environment variable. (Normally, "C:\Users\<User Name>" or "C:\Documents and Settings\<User Name>", depending on your Windows version.)
If you rename your .vimrc to _ideavimrc in your ~ directory (/Users/ in windows)
Underscore is used instead of the . in windows for vim apparently
IntelliJ will honour it
Was tearing my hair out for a while getting this to work.
On my mac i simply ran ln -s "$HOME/.vimrc" "$HOME/.ideavimrc" to create a symlink so IntelliJ would use the same .vimrc as my standard vim.
My .vimrc is very simple. However, if there is config that is incompatible between IntelliJ and vim then you might have issues with this approach.
echo %homepath%
gives me my "home directory" on Windows XP,
where I need to put my .vimrc.
Unfortunately, the vim plugin for JetBrains doesn't effectively support the full functionality of a .vimrc. The file that the plugin uses is called .ideavimrc. This is what you should use and it should be placed in your home directory (see this other answer for details, particularly for Windows).
I have a very comprehensive .vimrc that I use. Unfortunately, I had to pare that down quite a bit to work as .ideavimrc. You can look at the gists to see the differences. For what it's worth, it's still provides nice functionality, including buffer switching across tabs and splits.
.ideavimrc
.vimrc
So why not just use the same file (i.e., .vimrc) for both? Well, for one thing, you need some settings in .ideavimrc that give precedence to the vim plugin for certain keyboard shortcuts that conflict with the IDE. See the top of my .ideavimrc for my settings (for example, sethandler <C-B> a:vim). The other thing is that it seemed that when my more complicated .vimrc couldn't be processed, other settings (such as just set noerrorbells) also wouldn't take effect.

How do I install a color theme for IntelliJ IDEA 7.0.x

I prefer dark backgrounds for coding, and I've downloaded a jar file containing an IntelliJ IDEA color theme that has a dark background. How do I tell IntelliJ about it?
Go to File->Import Settings... and select the jar settings file
Update as of IntelliJ 2020:
Go to File -> Manage IDE Settings -> Import Settings...
Step 1: Do File -> Import Settings... and select the settings jar file
Step 2: Go to Settings -> Editor -> Colors and Fonts to choose the theme you just installed.
Take a look here: Third Party Add-ons
You may have to extract the jar using a zip application. Hopefully inside you'll find a collection of XML files.
IntelliJ IDEA Plugins
Go to Settings => Plugins => Search Plugins in Marketplace
Search by material theme and download and restart it. it is a good theme.
In the market place, you can also search by theme and it will list all the themes and you can download any themes. You no need to find themes and download and import it. You can also remove the theme very easily. thanks
If you just have the xml file of the color scheme you can:
Go to Preferences -> Editor -> Color and Fonts and use the Import button.
Themes downloaded from IntelliJ can be installed as a Plugin.
Follow these steps:
Preferences -> Plugins -> GearIcon -> Install Plugin from disk -> Reset your IDE -> Preferences -> Appearance -> Theme -> Select your theme.
Interesting I never spent too much time adjusting the colours in IntelliJ although tried once.
See link below with an already defined colour scheme you can import.
Where can I download IntelliJ IDEA 10 Color Schemes?
http://devnet.jetbrains.net/docs/DOC-1154
Download the jar file, file import the jar where you will see a what to import ;)
Like nearly everyone else said, go to file -> Import Settings.
But if you don't see the "Import Settings" option under the file menu, you need to disable 2 plugins : IDE Settings Sync and Settings Repository
Find the .jar theme file in your disk. Drag the file into PhpStorm window and voila !