- 点击node跳转到对应的method
- 点击relationship跳转到对应的对应点
- 手动删除实际不能调用的边
- 手动删除解析错误的边
从releases下载,然后通过通过磁盘上安装插件的方式安装。兼容性只在2023.2
测过,建议更新IDEA版本到2023.2
及以上
This plugin adds support for graph databases to the IntelliJ IDEA platform. At the moment, the only supported database is Neo4j.
The plugin provides useful developer features for working with graph databases, such as:
- syntax highlighting and autocompletion for the Cypher query language
- connecting to and querying local and remote graph databases.
This plugin is maintained and developed in my free time as a personal project, for no commercial reasons. Contributions and donations are welcome! Please see the Getting involved section for more information on how to contribute to this project.
This plugin is based on the Graph Database Support plugin, originally developed by Neueda Technologies. The original plugin has not been updated for a long time and does not work with recent versions of IntelliJ and Neo4j.
The plugin can be installed directly within an IntelliJ IDEA-based IDE.
- Go to
Preferences
->Plugins
->Marketplace
- Search for
Graph Database
. - Install plugin and restart the IDE.
Alternatively, you can navigate to the plugin homepage on the JetBrains marketplace and click on the 'Install' button.
After the plugin is installed, you should configure a data source. In order to do that, expand the "Graph Database" tab on the right-hand side of the IDE, then click on the "+" symbol. Fill in the fields, and test that the connection works.
The plugin activates syntax highlighting for Cypher for files with extensions .cyp
, .cypher
, or .cql
.
It is also possible to add syntax highlighting to Java Strings containing Cypher queries via language injection. Simply add the following comment right before a Cypher String:
// language=Cypher
The plugin depends on JDK17 and the latest release of IntelliJ. Please make sure you have those installed on your machine.
Integration tests depend on Docker, because they run Neo4j server in a Testcontainer. Please ensure you have Docker up and running if you'd like to run integration tests.
If you plan on making changes to a grammar or lexer files, you may find it useful to install the Grammar-Kit IntelliJ plugin. This is not required but nice to have.
The plugin can be built with the following Gradle command:
./gradlew :graph-database-plugin:buildPlugin
Before a release, the plugin should also be tested and verified with the following commands:
./gradlew test
./gradlew :graph-database-plugin:runPluginVerifier
The plugin can also be manually tested on a sandboxed instance of IntelliJ with the command:
./gradlew :graph-database-plugin:runIde
Please feel free to report any bugs by creating a new issue on GitHub.
Please feel free to contribute code by opening pull requests!
Alternatively, if you find this plugin useful, please feel free to buy me a coffee.
Any other comments or words of encouragement? Please get in touch via email at aventurini AT gmail DOT com.