Is there a way to tell codeinsight to use "contains" instead of "starts with" to filter the list of options?

StackOverflow https://stackoverflow.com/questions/22179941

  •  05-06-2023
  •  | 
  •  

Question

I am used to intellij idea where the equivalent of the delphi codeinsight is using a sort of "starts with" on sub-words of the method/member/class/variable names (these sub-words of method/member/class/variable names begin an with an upper case letter)

If I type for, it will show functions that contain the word For:

  • checkForComments
  • checkForSingleLineComments
  • ....

It is very useful because sometimes you don't know the exact name of a function, you know that it contains a certain word, let's say date, intellij would show you all the identifiers that contain the word date rather than those that start with date.

I realize that identifiers in Pascal are not case sensitive but nevertheless the method names use mixed case so this could work.

Was it helpful?

Solution

Is there a way to tell Code Insight to use "contains" instead of "starts with" to filter the list of options?

No there is not. There may be third party IDE extensions that give you this functionality, but the built-in Code Insight does not.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top