mirror of
https://github.com/JetBrains/intellij-sdk-code-samples.git
synced 2025-07-30 02:07:50 +08:00
[md] screen shots fixed
This commit is contained in:
parent
bf9cdff1f3
commit
ae2ea5ad2d
@ -23,7 +23,7 @@ You can check out the code either by using IntelliJ IDEA or from the command lin
|
||||
|
||||
* In the **Git Repository URL** field, enter ```git://git.jetbrains.org/idea/community.git```
|
||||
|
||||

|
||||

|
||||
|
||||
**Checking out from the command line**
|
||||
|
||||
@ -89,30 +89,30 @@ or
|
||||
[Groovy plugin](https://plugins.jetbrains.com/plugin/1524)
|
||||
enabled by going to **Settings \| Plugins** and enabling **Groovy** plugin checkbox.
|
||||
|
||||

|
||||

|
||||
|
||||
Parts of IntelliJ IDEA are written in Groovy, and you will get compilation errors if you don't have the plugin enabled
|
||||
|
||||
* Make sure you have the UI Designer plugin enabled.
|
||||
Most of IntelliJ IDEA's UI is built using the UI Designer, and the version you build will not run correctly if you don't have the plugin enabled
|
||||
|
||||

|
||||

|
||||
|
||||
* Open the directory with the source code as a directory-based project
|
||||
|
||||
* Configure a Java SDK named *IDEA jdk* (case sensitive), pointing to an installation of JDK 1.8
|
||||
|
||||

|
||||

|
||||
|
||||
* Add **lib\\tools.jar** from the JDK installation directory to the classpath of IDEA JDK
|
||||
|
||||

|
||||

|
||||
|
||||
* Use **Build \| Make Project** to build the code
|
||||
|
||||
* To run the code, use the provided shared run configuration *IDEA*
|
||||
|
||||

|
||||

|
||||
|
||||
## Building and Running from the Command Line
|
||||
To build the distribution archive of *IntelliJ IDEA Community Edition*, execute
|
||||
@ -120,7 +120,7 @@ To build the distribution archive of *IntelliJ IDEA Community Edition*, execute
|
||||
|
||||
Ant build script in the root directory of the source code.
|
||||
|
||||

|
||||

|
||||
|
||||
|
||||
The results of the build execution can be found at *out/artifacts*.
|
@ -14,7 +14,7 @@ For more information, refer to
|
||||
* On the main menu, choose **File \| New \| Project**. The *New Project*
|
||||
wizard starts.
|
||||
|
||||

|
||||

|
||||
|
||||
* Set *IntelliJ Platform Plugin* project type
|
||||
|
||||
|
@ -255,7 +255,7 @@ is also used to search for TODO items.
|
||||
|
||||
In order to better understand the process of building a PSI tree for a simple expression, you can refer to the following diagram:
|
||||
|
||||

|
||||

|
||||
|
||||
In general, there is no single right way to implement a PSI for a custom language, and the plugin author can choose the PSI structure and set of methods which are the most convenient for the code which uses the PSI (error analysis, refactorings and so on).
|
||||
However, there is one base interface which needs to be used by a custom language PSI implementation in order to support features like rename and find usages.
|
||||
|
@ -35,7 +35,7 @@ tab : \u0009
|
||||
The easiest way to get the expected PSI structure for any file is to use PSI Viewer.
|
||||
Run the project and call ```Tools``` → ```View PSI Structure```.
|
||||
|
||||

|
||||

|
||||
|
||||
Use ```Copy PSI``` button to copy the expected PSI structure to the clipboard.
|
||||
|
||||
|
@ -11,13 +11,13 @@ In order to set up the plugin development environment, you should follow these s
|
||||
|
||||
* Create a new *IntelliJ IDEA SDK*
|
||||
|
||||

|
||||

|
||||
|
||||
* Set *IDEA jdk* created in
|
||||
[Check Out And Build Community Edition](checkout_and_build_community.html)
|
||||
as a default Java SDK
|
||||
|
||||

|
||||

|
||||
|
||||
* Specify your installation of *IntelliJ IDEA Community Edition* as the home path
|
||||
|
||||
@ -26,17 +26,17 @@ In order to set up the plugin development environment, you should follow these s
|
||||
|
||||
* In the Sourcepath tab of the SDK settings, press ```Add``` button
|
||||
|
||||

|
||||

|
||||
|
||||
* Specify the directory into which you have checked out the sources of the *Community Edition*
|
||||
|
||||

|
||||

|
||||
|
||||
* Go to **File \| New \| Module**
|
||||
|
||||
* Choose *IntelliJ Platform Plugin* module type
|
||||
|
||||

|
||||

|
||||
|
||||
* Set desired plugin name
|
||||
|
||||
@ -44,4 +44,4 @@ In order to set up the plugin development environment, you should follow these s
|
||||
|
||||
* Select the newly created *IntelliJ Platform SDK* as a default SDK for the plugin module
|
||||
|
||||

|
||||

|
||||
|
Loading…
x
Reference in New Issue
Block a user