limit declaration contextual menu options to source directory?

I often have build and pub directories with nearly identical copies of my source files.

When I right click on a variable/function/etc in intellij 12, it brings up a contextual menu with links to where that variable/function/etc was declared.

Because of the duplicates, these contextual menus are littered with links to files not in the source directory.

How do I limit this menu to only my source files?

1 comment


  1. What language do you use (java, js, something else)?
  2. Are that build and pub directories marked as source roots?
  3. Please provide a screenshot of that context menu;



Please sign in to leave a comment.