Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Globally disabling finding Non-code usages in Intellij Idea

I recently upgraded to Intellij IDEA 13.1.2 and the Find Usages command has started including Non-code usages which is very annoying/slow when searching for common words. I realize you can open up the Find Usages Settings (Ctrl + Alt + Shift + 7) to disable this, but it's only on a per-search basis. I want to disable it for all searches.

like image 576
Andrew Avatar asked May 02 '14 17:05

Andrew


People also ask

How do I get rid of IntelliJ usage?

Press Ctrl+Alt+S to open the IDE settings and select Editor | Code Editing. Clear the Usages of element at caret checkbox in the Highlight on Caret Movement section.

How do I search globally in IntelliJ?

Search everywhereFrom the main menu, select Navigate | Search Everywhere or press Shift twice to open the search window. By default, IntelliJ IDEA displays the list of recent files.


2 Answers

Unfortunately, the ability to "permanently" set find usage options was changed. The "Find Usage Settings" now resets each time. :( I recommend you vote for and comment on these issue reports:

  • http://youtrack.jetbrains.com/issue/IDEA-120751
  • http://youtrack.jetbrains.com/issue/IDEA-124711
like image 103
Javaru Avatar answered Oct 25 '22 00:10

Javaru


This isn't a global setting, but will help address the slowness: in the "Project" panel, identify directories in your project that contain large non-code files, right-click select "Mark Directory as>Excluded" from the menu.

Myself my project directory contained a 'log' directory, plus other directories containing many generated files, and a reports directory containing Junit and checkstyle reports etc. After marking these all as excluded, the Find Usages function was much faster yay.

like image 21
user3199137 Avatar answered Oct 25 '22 01:10

user3199137