Edit, run, and chart Kusto queries (KQL) right from VS Code. Explore databases and results, and use Copilot to help author and diagnose your queries. Works on Windows, macOS, and Linux.
- Query editor — IntelliSense, formatting, go-to-definition, find references, code actions and quick fixes
- Results panel — browse tabular results, copy cells, drag-and-drop as
datatableexpressions - Charts — create and customize charts from query results; copy as image or save as
.kqrfiles - Database explorer — browse clusters, databases, tables, functions and more
- Copilot integration — ask Copilot to help create, run and diagnose your queries
- Scratch pads — jot down queries without creating files
- Query history — revisit previously executed queries and results
Install from the VS Code Marketplace →
Or search for "Kusto Explorer" in the VS Code Extensions view (Ctrl+Shift+X).
Alternatively, download the .vsix from GitHub Releases and install manually:
code --install-extension <vsix-file>For a full walkthrough of the extension's features, see the User Guide.
- Select the Kusto Explorer icon in the VS Code Activity Bar
- Use an existing scratch pad (already open) or create a
.kqlfile - Connect the query document to a Kusto cluster and database (while the document has focus):
- Add a cluster connection in the Connections sidebar (if it doesn't exist yet)
- Select a database to set the active cluster and database for the focused document
- Write a Kusto query (or ask Copilot for help)
- Press F5 to execute the query and view results in the Results panel
- Use the chart button to visualize your results — customize chart type, axes, legend, and more
- Revisit prior queries and results in the History sidebar
This project welcomes contributions and suggestions. For development setup, debugging, and build instructions, see CONTRIBUTING.md.
This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.
If you believe you have found a security vulnerability in this repository, please report it to us through coordinated disclosure.
Please do not report security vulnerabilities through public GitHub issues.
Instead, please report them to the Microsoft Security Response Center (MSRC) at https://msrc.microsoft.com/create-report.
For more information, see SECURITY.md or visit Microsoft's Security Policy.
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow Microsoft's Trademark & Brand Guidelines. Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party's policies.
This project is licensed under the MIT License - see the LICENSE file for details.