In IntelliJ IDEA, open the Settings dialog. Press (Ctrl+Alt+S) or choose (File | Settings...) from the main menu.
Click the Plugin button under IDE Settings to invoke the plugin dialog.
On the Plugin dialog, click the Available tab to view a list of available plugins.
Scroll down and highlight the JetBrains TeamCity Plugin, click the button, and click OK.
Restart IntelliJ IDEA.
tip
Users of IntelliJ IDEA 8.0 should take the plugin from the page Diana-compatible plugin for TeamCity 3.1.x.
tip
Please note that the plugin repository plugin version corresponds to TeamCity 3.0 version. If you have later TeamCity server version, please navigate to TeamCity menu in the IntelliJ IDEA and invoke Update command to install the plugin version matching the server version.
Manually Installing the Plugin
The plugin for IntelliJ IDEA can be downloaded from the TeamCity Tool area on the My Settings & Tools page.
To install the TeamCity plugin for IntelliJ IDEA:
Navigate to the My Settings & Tools page. Under the IntelliJ IDEA Plugin section in the TeamCity Tools area, click the download link, and save the archive.
Make sure that IntelliJ IDEA is not running and unzip the archive into the IntelliJ IDEA user plugins directory at:
Windows: C:\Documents and Settings\<username>\.IntelliJIdea70\config\plugins
OS X: $HOME/Library/Application Support/IntelliJIDEA70
Linux/Unix: $HOME/.IntelliJIdea70/config/plugins
tip
After you have installed a newer version of the plugin, you cannot rollback to its previous version.
Additional information on how to work with TeamCity plugin is available in IntelliJ IDEA Help System (shipped with IntelliJ IDEA).