Visual Studio Code

Introduction

In this tutorial, we will show how to install the Apache Cassandra Workbench extension in Visual Studio Code and configure a connection.

Install the VS Code extension

In this tutorial, we will show how to install the Apache Cassandra Workbench extension in Visual Studio Code and configure a connection.

Open Visual Studio Code (you can download it from https://code.visualstudio.com for Windows, Mac or Linux) and press Control + P.

VSCode Quick Open

Paste the following command and press enter.

  1. ext install kdcro101.vscode-cassandra

This will install the extension, but you will need to configure the connection details of the clusters, so go to the next step and configure connections.

Create a configuration

Click in cloud icon in the left bar in VSCode to show Cassandra Workbench.

Open Cassandra Workbench

Press Control + Shift + P to open the actions input and type:

  1. Cassandra Workbench: Generate configuration

This will generate .cassandraWorkbench.jsonc configuration file.

Open and configure adding cluster as you need with connections informations: YugabyteDB ContactPoints, Port and Authentication Details (if you using Password Authenticator)

  1. // name must be unique!
  2. [
  3. // AllowAllAuthenticator
  4. {
  5. "name": "Cluster AllowAllAuthenticator",
  6. "contactPoints": ["127.0.0.1"]
  7. },
  8. //PasswordAuthenticator
  9. {
  10. "name": "Cluster PasswordAuthenticator",
  11. "contactPoints": ["127.0.0.1"],
  12. "authProvider": {
  13. "class": "PasswordAuthenticator",
  14. "username": "yourUsername",
  15. "password": "yourPassword"
  16. }
  17. }
  18. ]

Enjoy

Now you are ready to explore YCQL schema and data by simply double-clicking on the connection name.

EDITOR UI

Details in Cassandra Workbench for Visual Studio Code.