2016-01-14 19:38:06 -08:00

145 lines
6.7 KiB
HTML

<!doctype html>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>1. Prerequisites / IntelliJ Platform SDK DevGuide</title>
<link rel="stylesheet" href="/intellij/sdk/docs/app/css/styles.min.css">
<!-- non-retina iPad pre iOS 7 -->
<link rel="apple-touch-icon" href="/intellij/sdk/docs/apple-touch-icon-72x72.png" sizes="72x72">
<!-- retina iPhone pre iOS 7 -->
<link rel="apple-touch-icon" href="/intellij/sdk/docs/apple-touch-icon-114x114.png" sizes="114x114">
<!-- retina iPad pre iOS 7 -->
<link rel="apple-touch-icon" href="/intellij/sdk/docs/apple-touch-icon-144x144.png" sizes="144x144">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/intellij/sdk/docs/apple-touch-icon-precomposed.png">
<!-- normal favicon -->
<link rel="shortcut icon" type="image/x-icon" href="/intellij/sdk/docs/favicon.ico">
<link rel="icon" type="image/png" href="/intellij/sdk/docs/favicon.png">
<link rel="stylesheet" href="/intellij/sdk/docs/styles/styles.css"></head>
<body data-id="tutorials/custom_language_support/prerequisites">
<div class="wrapper">
<section class="panel _nav">
<header class="panel__header">
<div class="container">
<form class="search-box">
<label for="search-box__input" class="search-box__label">
<input type="text" class="search-box__input" id="search-box__input" placeholder="Search IntelliJ Platform SDK DevGuide">
</label>
<div class="search-box__clear" title="Clear"></div>
</form>
</div>
</header>
<nav class="panel__content">
<div class="container _nav">
<menu class="nav-tree"></menu>
</div>
<div class="container _footer panel__footer">
<p><a href="https://youtrack.jetbrains.com/issues/IJSDK">Send feedback</a></p>
<p>&copy; 2000&ndash;2016 <a href="//www.jetbrains.com">JetBrains</a> s.r.o.<br>
All rights reserved.</p>
</div>
</nav>
</section>
<main class="panel _main" role="main">
<header class="panel__header">
<div class="container">
<h3>IntelliJ Platform SDK DevGuide</h3>
<div class="shortcuts-switcher"><label for="switch-shortcuts">Keymap:</label><select id="switch-shortcuts" class="select _shortcuts" height="1">
<option data-group="primary" value="default" selected>Default</option>
<option data-group="primary" value="default_for_gnome">GNOME</option>
<option data-group="primary" value="default_for_kde">KDE</option>
<option data-group="primary" value="default_for_xwin">XWindow</option>
<option data-group="primary" value="emacs">Emacs</option>
<option data-group="primary" value="jbuilder">JBuilder</option>
<option data-group="primary" value="visual_studio">Visual Studio</option>
<option data-group="primary" value="netbeans_6.5">NetBeans 6.5</option>
<option data-group="primary" value="eclipse">Eclipse</option>
<option data-group="secondary" value="mac_os_x_10.5_">OS X 10.5+</option>
<option data-group="secondary" value="mac_os_x">OS X</option>
<option data-group="secondary" value="eclipse_mac_os_x">OS X Eclipse</option></select>
</div>
<div class="panel-trigger"></div>
</div>
</header>
<section class="panel__content">
<div class="container">
<article class="article" data-shortcut-switcher="false">
<h1>1. Prerequisites</h1>
<a name="download-and-install-intellij-idea" class="elem-anchor"></a>
<h3>1.1. Download and install IntelliJ IDEA<a href="#download-and-install-intellij-idea" class="anchor-link"><span></span></a></h3>
<p>Download and install either IntelliJ IDEA Ultimate or IntelliJ IDEA Community Edition.</p>
<a name="check-out-community-edition-source-files" class="elem-anchor"></a>
<h3>1.2. Check out Community Edition source files<a href="#check-out-community-edition-source-files" class="anchor-link"><span></span></a></h3>
<pre><code class="code-block__wrapper code-block _highlighted lang_text">git clone git://git.jetbrains.org/idea/community.git idea
</code></pre>
<a name="install-required-plugins" class="elem-anchor"></a>
<h3>1.3. Install required plugins<a href="#install-required-plugins" class="anchor-link"><span></span></a></h3>
<p>Make sure that the bundled Plugin DevKit plugin is enabled.
Install and enable
<a href="http://plugins.intellij.net/plugin?pluginId=6606" data-bypass="yes" target="_blank"><span>Grammar-Kit</span></a>
and
<a href="http://plugins.intellij.net/plugin/?pluginId=227" data-bypass="yes" target="_blank"><span>PsiViewer</span></a>
plugins.</p>
<a name="configure-sdk-and-source-files" class="elem-anchor"></a>
<h3>1.4. Configure SDK and source files<a href="#configure-sdk-and-source-files" class="anchor-link"><span></span></a></h3>
<p>Configure a common JDK and an IntelliJ Platform SDK.
For the IntelliJ Platform SDK you may need to specify the directory containing the installed version IntelliJ IDEA.
By default it should offer the directory of the currently running version of IntelliJ IDEA.</p>
<p>To attach the Community Edition source files to the SDK, open the Sourcepath tab in the SDK configuration dialog, press the Add button and select the directory with the Community Edition source checkout.
IntelliJ IDEA will scan the directory for roots and offer the list of roots to add, with everything checked by default.
Accept the list of roots by pressing OK.</p>
<p><img src="img/project_sdk.png" alt="Project SDK" /></p>
<p><img src="img/plugins.png" alt="Plugins" /></p>
<a name="create-a-project" class="elem-anchor"></a>
<h3>1.5. Create a project<a href="#create-a-project" class="anchor-link"><span></span></a></h3>
<p>Create an IntelliJ Platform Plugin project and specify IntelliJ Platform SDK.</p>
<p><img src="img/new_project.png" alt="New Project" /></p>
<p><a href="/intellij/sdk/docs/tutorials/custom_language_support_tutorial.html"><span>Top</span></a>
<a href="language_and_filetype.html"><span>Next</span></a></p>
<div class="last-modified">
Last modified: 30 November 2015
</div>
</article>
<section class="disqus">
<div id="disqus_thread"></div>
</section>
</div>
</section>
</main>
</div>
<script data-main="/intellij/sdk/docs/app/js/main.build" data-baseurl="/intellij/sdk/docs/" src="/intellij/sdk/docs/app/js/vendor/requirejs/require.js"></script>
</body>
</html>