rmoff / vsc-ksql

KSQL Syntax Highlighting for VSCode
16 stars 4 forks source link

KSQL VSCode Syntax Highlighting

This provides language support for KSQL - the streaming SQL engine for Apache Kafka.

Screenshot

screencam of KSQL syntax highlighting in action

How to install

From VSCode, go to Extensions (View->Extensions) and search for KSQL. Click on Install :)

You can also download the vsix file from the Marketplace directly to install it locally.

How to use it

Any file with the extension .ksql will be automagically detected.

To apply it to any other file, switch the language mode to KSQL. You can do this one of two ways:

  1. from the bottom-right of the screen in the status bar, click on the current language name, and change it
  2. by going to the command palette (Shift-Cmd-P on the Mac) and entering 'Change Language Mode' (or a subset of it; it will auto-complete), select the match, and then type KSQL.

The second option is verbose to explain but much faster if you're a keyboard-warrior 😎

When you install the extension you get a Kafka icon in the activity bar, and you can see the topics, streams and tables in your connected instance. You can refresh the Explorer with Ctrl+Shift+P and choose the Refresh KSQL Explorer command.

Example of KSQL Explorer showing Topics, Streams, and Tables

The extension assumes that your KSQL server is at localhost:8088. If it is not change the endpoint URL in the workspace config.

Using Workspace Config to change the KSQL endpoint

Get up and start developing straight away

TODO

PRs very welcome!

Changelog

See CHANGELOG.md

Authors