Neo4j for VS CodeGetting startedAfter installing the extension from the VS Code Marketplace, open a file with a Feature HighlightsOur extension provides a rich set of features for working with Cypher, the query language for Neo4j databases, including:
It also provides syntax highlighting embedded in other languages, namely Markdown, Java, Python, Javascriopt, .NET and Go. This is possible having a multiline string that starts with Inside those languages you can also select a Cypher snippet and either create a Examples for the syntax highligting: Markdown
Java
Javascript / Typescript
Managing connectionsTo add a new instance connection, you can launch the connection pane from the Neo4j icon in the Activity Bar (either on the Clicking on an instance will automatically connect to it. You can also manage a connection by right clicking on it, to connect, disconnect or edit it.
Once a connection is added, and a connection to your Neo4j instance is established, you will be able to use database aware features of the extension. You can change the database you want to run queries against by clicking or right clicking ( You can store connections to different Neo4j instances. Managing parametersTo add a new parameter, you can use the You will be prompted for the name and value you want to use for that parameter. The type will be automatically recognized from the value. Some examples:
Any Parameters can be accessed from in a query prepending them with a dollar sign Parameters can be edited / deleted hovering over them. Executing a Cypher fileOnce you've written your desired query (for example
Version tailored lintingOur aim is to provide an experience that suits the different neo4j versions you could be connected to. When connecting to a database, a linter that matches that version of the database will be automatically downloaded.
We can match a neo4j version from 5.23 onwards. If connected to an older database, the 5.23 version will be used. If the version cannot be resolved from your neo4j instance for any reason, the The linter can be manually adjusted either on the bottom menu or using the
Extension settingsThe following settings are available in VS Code once the plugin is installed, which can be set either through the Debug
ContributingWe welcome your suggestions, ideas, bug reports and contributions on our github. To build the project locally, see the CONTRIBUTING.md file at the root of the git repository. |