How to default to 'this' rather than 'self' when autocompleting method names without 'this' or 'self'?
When I type a method name without '$this->' or 'self::' suffix and press tab, it auto generates the required suffix but it defaults to 'self' if available but I want to change it to '$this' by default.
I.E:
// In Laravel tests
assertNull // press 'tab' for auto completion
self::assertNull(); //generated code
$this->assertNull(); // wanted code
Can't find the settings if exists. Any help would be appreciated. Thanks
请先登录再写评论。
Unfortunately you can't do that. The method in question is static and IDE uses this to decide between self and this. You can submit a feature request to our tracker for our developers to consider, similar to this: https://youtrack.jetbrains.com/issue/WI-32713
Thank you for your help. :)