- edited description
- changed title to Complete: add support for SObject.sObjectType
Complete: add support for SObject.sObjectType
It is possible to write SObject.sObjectType (e.g. Account.sObjectType, Opportunity.sObjectType) as a shorthand to obtain the concrete sObjectType.
IC does not support autocomplete on the sObjectType property. It tries to replace it with .getSObjectType() instead.
Comments (3)
-
reporter -
repo owner - changed status to resolved
Alexander, it'll actually complete
<SObjectType>.SObjectType
fine as aSchema.SObjectType
. The issue you're hitting is that you're using a leading lower-cased "s" so the closest match isgetSObjectType()
. Apex is obviously a case-insensitive language, but by default completions in IntelliJ IDEA are configured to use case-sensitive filtering. You can configure that under Settings>Editor>General>Code Completion by changing the value for Case sensitive completion to None. Please let me know if that doesn't give you the behavior you're wanting. -
reporter Scott, that did the trick. Thank you.
- Log in to comment