/docs/_posts/2017-08-31-Code-Search.md

https://github.com/facebook/nuclide · Markdown · 25 lines · 19 code · 6 blank · 0 comment · 0 complexity · edd611aa117208a334fdc06f8d03dd5f MD5 · raw file

  1. ---
  2. layout: post
  3. title: "Code Search"
  4. author: a20012251
  5. ---
  6. One of the missing features in the [Quick Open](/docs/features/quick-open) pane is searching for
  7. code in your current projects. Internally at Facebook, we have a plugin that provides this
  8. functionality but we never offered a similar tool for the open source world. And we've just published this missing feature!!
  9. Now you can use Quick Open (*command + T* on Mac and *control + T* on Windows and Linux) and type any
  10. code you want to look for. You can also explore the *Code Search* tab.
  11. <img src="/static/images/blog/2017-08-31/quick-open.png" width="700" alt="Quick Open" />
  12. Code Search supports [ripgrep](https://github.com/BurntSushi/ripgrep) (rg),
  13. [silversearcher](https://github.com/ggreer/the_silver_searcher) (ag) and
  14. [ack](https://beyondgrep.com/). We recommend ripgrep and ag because they are blazing fast. Sadly,
  15. only ripgrep works properly on Windows. You can configure which tool to use in the Nuclide package
  16. settings under the *nuclide-code-search* tab.
  17. If you don't specifically select a tool, Nuclide will try to use any available one. On Windows, it
  18. will only try rg.
  19. <img src="/static/images/blog/2017-08-31/settings.png" width="700" alt="Settings" />