Git Product home page Git Product logo

vscode-tsquery's Introduction

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

vscode-tsquery's People

Contributors

nirtamir2 avatar ronp001 avatar urish avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

ronp001 nirtamir2

vscode-tsquery's Issues

Enable replacement of the search results given

wouldn't it be great if we could not only search and find results, but also replace them to a different value?
It would enable more accurate search and replace function to the user and prevent mistakes.

Find a better way to display project-wide AST search results

Currently, we simply display a drop down list with all the files and the number of matches:

image

When you select a file, it opens and the cursor points at the first match. There is no way to see the next matches, and if you want to go to a different file, you have to redo the search. This is not very convenient to use.

Adding a side explorer

A nice productive feature could be adding a side AST explorer option, the explorer will help to build the queries.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.