Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>tsqueryNew to Visual Studio Code? Get it now.
tsquery

tsquery

Uri Shaked

|
345 installs
| (1) | Free
Search for TypeScript code using AST queries across the project
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

TSQuery for VSCode

TSQuery enables powerful source code search in TypeScript and JavaScript projects.

Features

You can use TSQuery to search your source code using an AST query. AST queries are similar to CSS selectors - they let you drill down the hierarchy of code declarations and match the specific language elements that you are looking for.

For instance, the following demo shows how to search for a parameter of a class constructors in the current file:

AST Query

Tip: You can find out which selector matches a certain part of your source code by simply hovering it and looking for "AST Selector" inside the tooltip.

This extension is still in development - we are looking for ideas to improve the searching experience. You are invited to contribute.

Release Notes

0.1.1

Fix GIF animation

0.1.0

Initial release of TSQuery

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft