I want to select the whole function (signature and body) by double clickng the space before it. What happens instead is that just the whitespace is selected:
Is there any setting or plugin to achieve it?
I remember it was there before, but I can't find this setting after I changed to a new computer.
You can toggle this behavior in the Advanced Settings with Select whitespace characters with 'Extend Selection':
Since the list of advanced settings is quite long, this one will be easier to find if you filter the list for any occurrences of "select" first.
Deactivate it to prevent the whitespace from being selected, so the entire function is selected instead.