Failed to find class name in currently open file

Answered

Just used the shortcut `Ctrl+N` to help find a class name in the current file but it seemed to fail.

Observe:

2 comments
Comment actions Permalink

Hi there,

This screenshot seems to be quite irrelevant -- I see that IDE fails to find "createSort" class ... but I do not see proofs that such class actually exists (I only see "createSortLinks" function definition .. which has nothing to do with class search).

In any case:

  • Try "File | Invalidate Caches..." and restart IDE -- it usually helps in such suddenly appeared "cannot find existing element" cases
  • You can use "Navigate | File Structure" to search trough symbols/elements in current file
  • You should use "Navigate | Symbol..." if you wish to search for methods etc (will search across the project)
0
Comment actions Permalink

LOL..... don't mind me, I'm an idiot. I was looking for a function/method finder within a class but obviously wasn't paying any attention to what the search was supposed to find - thanks!

1

Please sign in to leave a comment.