IntelliJ IDEA global search

前端 未结 5 1063
走了就别回头了
走了就别回头了 2020-12-05 22:12

I would like to search across projects for variable usages, or at least for strings. I\'ve got IndexYourFiles which works well for text searches, but I have to re-index eve

相关标签:
5条回答
  • 2020-12-05 22:56

    In the IntelliJ now it is very easy to find the anything through just two clicks and search on the bar.

    Double click on shift and enter the keyword in the search bar.
    I'm using ubuntu which I found the shortcut.

    0 讨论(0)
  • 2020-12-05 23:02

    IntelliJ is project based so you can only search within the open project using Ctrl + Shift + F(Windows) or Cmd + Shift + F(Mac).

    When I need to search across a set of projects I use Agent Ransack

    0 讨论(0)
  • 2020-12-05 23:03

    My workplace eventually set up Atlassian Fisheye which allows us to search for code or specific files across all of our projects, and it's working well.

    0 讨论(0)
  • 2020-12-05 23:04

    IntelliJ 13 (at least) has "Edit/Find/Find in Path...".
    It has the Scope option which can be set to a directory, so if all projects are in the same directory (e.g. IdeaProjects) then it will search all projects.

    0 讨论(0)
  • 2020-12-05 23:06

    Use grep.

    In the terminal, go to the root directory of your project, and type grep -r my_string_here ..

    You can add color to your search with --color (just add alias grep='grep --color' to your.bash_profile, and add-i` to make your search case-insensitive.

    0 讨论(0)
提交回复
热议问题